-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gftools unable to handle folder names with spaces? #252
Comments
I reproduced this with macOS 10.15.7 / cPython 3.8.6 in a clone of your repo that includes a venv directory path with spaces. It definitely looks like the venv installed executables do not like spaces in directory paths. You might check the fontmake that you are using within the venv too. In my activated venv it looks like this is the system installed version of fontmake and not the venv installed version. That could be an important issue if you intend to fix the compiler version in your build workflow. A workaround for absolute paths with spaces is to use explicit relative file paths to the venv installed executable sources. This works for me and should support anyone who builds from a virtual environment directory that is named
|
Thanks, Chris, for the detailed answer.
Do you mean a venv included in the repository? I'm curious since there was one, but I deleted it as it is not the suggested practise to include it in the repository.
So, for clarification, the main source of conflict in this case would be the spaces in directory paths. It wouldn't matter if a new venv is created for the directory it would still have those, that's why in this case including the path to ../venv would be the best solution. Is that it?
Thanks, I'll try that and let you know the outcome :) |
I can totally reproduce this. Seems to me venv related. |
Which venv did you use? A locally generated one? |
You can add
It appears to be the spaces in the absolute directory path that John was using above the level of the repository directory. I tested it by adding a space in the repository directory name and, in a separate test, the venv directory name. It caused issues in both cases.
G/L! |
Users should always be creating their virtual environment locally. You don't want to commit your venv directory to your git version control. |
Agreed, it's what was suggested and done, to create it locally. Also why the
Thanks! This must be the reason then. |
Seems related: pypa/virtualenv#53 |
I don’t know if related, but I am also getting a permission error. This is running the latest merge of the build script from @vv-monsalve on Mac OS.
|
😆 From that thread. Life in 2020... |
Ugh... @vv-monsalve @tiroj I suggest trying a change of all of the
becomes
You'll find the full list of script names that correspond with gftools sub-command names in https://github.com/googlefonts/gftools/tree/master/bin |
Oh! I missed that! Sorry, my bad. I fixed it here TiroTypeworks/Castoro#22 |
As for the original question of the Issue
After we all reproduced it, it seems that the source of the problem was this indeed:
In these cases the workaround suggested by Chris: "to use explicit relative file paths to the venv installed executable sources" would be needed for the builds, it worked at the end! |
Yes, thank you very much everyone. |
I'm getting an error message when running the build script for the Castoro fonts, and I suspect this may be due to my local folder structure having a word space in one of the subfolders in the directory path:
Can someone confirm whether this is in fact the probably cause, and whether gftools could be updated to handle folder names containing spaces? I doubt if I am alone in having some folders with spaces in the name.
The text was updated successfully, but these errors were encountered: