-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Whitespace in model path #54
Comments
Good find! However, I think this may now be moot in the latest versions, which don't need to use the command line utilities. Can you give it a try? Relatedly, I am working on improving freezing. I haven't tried cx_freeze, but I have had success with using winpython. |
Sorry for the late response. I can reproduce this in 2.1.0 as well, even without freezing:
Removing the above line in the Model __init__ method still fixes the issue for me. |
@evfredericksen Hmm, strange. Thanks for the report and retest! I will try to figure out what is causing it. |
No problem. I don't have context for why the line was added originally, but I would think that the quotation marks around the path are unnecessary as Python should be able to handle whitespace in paths without any extra logic. https://stackoverflow.com/questions/14852140/whitespaces-in-the-path-of-windows-filepath Sample script:
Result:
|
I'm running into the following error when I try to use a model that contains a whitespace in its path:
However, when I comment out the line
self.files_dict.update({ k: '"%s"' % v for (k, v) in self.files_dict.items() if v and ' ' in v })
in the Model constructor, everything works as expected.The text was updated successfully, but these errors were encountered: