firebase / firebase/firebase-tools
Running "firebase init functions" (14.9.0) on Mac fails to install dependencies with log: ".../firebase/functions/venv/bin/activate: No such file or directory"
- Dominant language
- TypeScript
- Stars
- 4.5k
- Forks
- 1.3k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 84
Description
### [REQUIRED] Environment info
**firebase-tools:**
14.9.0
**Platform:**
ProductName: macOS
ProductVersion: 15.4.1
BuildVersion: 24E263
### [REQUIRED] Test case
N/A — issue happens during Firebase CLI initialization. No code or config written yet.
The problem is reproducible even in a blank directory.
### [REQUIRED] Steps to reproduce
do "firebase init functions"
choose python
choose "Y" for "yes, install dependencies now."
### [REQUIRED] Expected behavior
The firebase functions folder is created with correct contents including dependencies.
### [REQUIRED] Actual behavior
The install script logs that some path does not exist (see debug log), but also end with success message.
The resulting folder only contains requirements.txt and main.py. (no dependencies).
Also, strangely (perhaps related)... the firebase.json file in parent directory contains: "runtime": "python313" when the local version of python3 is 3.11.13... perhaps this is a parsing error with side effects? I dont know... it doesn't seem like that should resolve to that especially since documentation says resolved versions MUST 3.10 or 3.11 ...
Also... even if I manually install the dependencies and then attempt firebase deploy --only functions, it will not work correctly until I change the firebase.json to "python311" .. indicating a problem.
...
✔ What language would you like to use to write Cloud Functions? Python
✔ Wrote functions/requirements.txt
✔ Wrote functions/.gitignore
✔ Wrote functions/main.py
✔ Do you want to install dependencies now? Yes
[2025-07-08T07:53:30.239Z] Running command with virtualenv: command=., args=["\"/Users/dev2/Desktop/Current_Code_Projects/App2025/delete_this/functions/venv/bin/activate\"","&&","pip3","install","--upgrade","pip"]
/bin/sh: /Users/dev2/Desktop/Current_Code_Projects/App2025/delete_this/functions/venv/bin/activate: No such file or directory
[2025-07-08T07:53:30.251Z] Running command with virtualenv: command=., args=["\"/Users/dev2/Desktop/Current_Code_Projects/App2025/delete_this/functions/venv/bin/activate\"","&&","python3.13","-m","pip","install","-r","requirements.txt"]
/bin/sh: /Users/dev2/Desktop/Current_Code_Projects/App2025/delete_this/functions/venv/bin/activate: No such file or directory
✔ Wrote configuration info to firebase.json
✔ Wrote project information to .firebaserc
✔ Wrote .gitignore
✔ Firebase initialization complete!
Contributor guide
Assessment
This issue has not been assessed yet.