Skip to content
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

Ugly error message when opening file with ascii characters in name #371

Closed
quicklizard99 opened this issue Oct 26, 2016 · 2 comments
Closed
Assignees
Labels

Comments

@quicklizard99
Copy link
Member

Traceback (most recent call last):
  File "inselect/gui/utils.py", line 113, in wrapper
  File "inselect/gui/main_window.py", line 280, in open_file
  File "site-packages/pathlib.py", line 936, in __new__
  File "site-packages/pathlib.py", line 613, in _from_parts
  File "site-packages/pathlib.py", line 606, in _parse_args
  File "site-packages/pathlib.py", line 75, in parse_parts
  File "site-packages/pathlib.py", line 58, in _py2_fsencode
UnicodeEncodeError: 'ascii' codec can't encode character u'\u030a' in position 77: ordinal not in range(128)
@quicklizard99 quicklizard99 self-assigned this Oct 26, 2016
@quicklizard99
Copy link
Member Author

pathlib does not play nicely with unicode on Python 2. Revisit this once we have moved to Python 3 (#95 #339 )

@quicklizard99 quicklizard99 changed the title Ugly error message when opening file with non-latin characters in name Ugly error message when opening file with ascii characters in name Dec 12, 2016
quicklizard99 added a commit that referenced this issue Dec 12, 2016
@quicklizard99
Copy link
Member Author

#403 fixes this for Mac OS X and Linux. Remains broken for Windows due to defect in OpenCV. See opencv/opencv#4242 and opencv/opencv#4292

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant