0 python firebase google-cloud-functions
正如您从标题中可以理解的那样,我在使用 Firebase Functions Python 时遇到了问题。
我遇到以下错误。
Error: Failed to find the location of Firebase Functions SDK. Did you forget to run 'source /home/burak/projectFinale/functions/venv/bin/activate && python3.11 -m pip install -r requirements.txt'?
Run Code Online (Sandbox Code Playgroud)
而且,当我想做的时候firebase init functions,在它成为依赖项之前都可以。
发生以下错误:
? Do you want to install dependencies now? Yes
/bin/sh: 1: source: not found
/bin/sh: 1: source: not found
Run Code Online (Sandbox Code Playgroud)
我已经提出了上述建议,但错误仍然出现。
如果你能帮忙我会很高兴。提前致谢。
小智 5
我也遇到了这个错误,发现运行firebase deploy --only functions --debug到最后有以下错误日志:stderr: /bin/sh: 1: source: not found。
这个错误背后的原因是/bin/sh指向/bin/dash,它不支持source。要解决该问题,/bin/sh必须指向/bin/bash,可以通过以下方式完成:
sudo dpkg-reconfigure dashNo(参考:https://askubuntu.com/questions/1064773/how-can-i-make-bin-sh-point-to-bin-bash)
| 归档时间: |
|
| 查看次数: |
2076 次 |
| 最近记录: |