-
Notifications
You must be signed in to change notification settings - Fork 175
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
Windows issue with NamedTemporaryFile #21
Comments
I do not have a windows machine to test it... But few stuff you can do:
|
I'm having the same issue. The command will fail if there are spaces in any of the paths to begin with, but even without I meet the same error as @snowzhangy:
(breaks added for readability) Running that identical command in CLI but on another text file works without issues. |
I guess something is wrong with |
Indeed from Python doc they say: Whether the name can be used to open the file a second time, while the named temporary file is still open, varies across platforms (it can be so used on Unix; it cannot on Windows NT or later). I'm working on a fix. |
I pushed a commit in the branch issue21. As I said I do not have Windows so I cannot check myself. Could you please test if the bug is fixed on that branch and let me know? Thanks. |
The idea is to use |
Yep, that fixes it 👍 |
Thanks, merged into master |
when i run phonemize on windows 10 , python 3.6 i still have issue. it looks the temp file doesn't created at all. (the backslash issue fixed i can see)
The text was updated successfully, but these errors were encountered: