fbs
fbs copied to clipboard
Space in directory path causes error with `fbs startproject`
- Operating system(s): Ubuntu 22.04
- Python version: 3.6.13
- fbs version: 1.1.3
- PyInstaller version: 3.4
- PyQt version: 5.9.2
Error
when running fbs startproject in a directory path that has a space in the name (e.g. /home/me/Documents/Python Scripts/my_app/) I receive the error
bash: /home/me/Documents/Python Scripts/my_app/.venv/bin/fbs: "/home/me/Documents/Python: bad interpreter: No such file or directory
The problem is fixed if I run fbs startproject in a directory path without spaces (e.g. /home/me/Documents/python_scripts/my_app/).
I looked into this and have a feeling the cause of the bug lies in Python / pip, not fbs. I couldn't find an easy solution. But if someone has one, I would love to hear it.
As a workaround, you can do python -m fbs startproject instead of fbs startproject.