-
Notifications
You must be signed in to change notification settings - Fork 23
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
Problem with path.open #68
Comments
Hi! Thanks for the report. Could you please share the whole stack? |
The whole stack trace was as follows:
|
Should be fixed in |
Initial testing has it working just fine. Thanks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm working with the syllabify script from hyphen-la repository and am running up against what appears to be a problem with Pyphen. The last lines of the stack trace read as follows:
This suggests to me that the path variable is being misinterpreted as a str rather than as a path to a file that can be opened. Doing some search online, I found a StackOverflow question which talks about this sort of error, but it's flagged for Python 2.7, not Python 3.*. Still, I took it as a starting point and came up with this diff.patch.
I'm not submitting this as a PR because it removes the attempted detection of encoding and instead relies on the input being in Unicode (the default assumption for Python). I couldn't find an encoding detection method that doesn't require importing a new package and I didn't want to add a dependency.
The text was updated successfully, but these errors were encountered: