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

Unicode issue with python2 #45

Open
alasdaircr opened this issue Feb 26, 2017 · 2 comments
Open

Unicode issue with python2 #45

alasdaircr opened this issue Feb 26, 2017 · 2 comments

Comments

@alasdaircr
Copy link

When running under python2.7 you crash when encountering a filename with a unicode symbol in it.

Exception in thread DownloadManager:                | ETA:  --:--:--   0.00 B/s
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.7/dist-packages/putiosync/download_manager.py", line 224, in run
    success = download.perform_download(self._token)
  File "/usr/local/lib/python2.7/dist-packages/putiosync/download_manager.py", line 101, in perform_download
    download_path = "{}.part".format(final_path)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0301' in position 112: ordinal not in range(128)
mihaerzen added a commit to mihaerzen/putio-sync that referenced this issue Sep 1, 2017
This fixes an issue with unicode characters in the final path name.
@mihaerzen
Copy link
Contributor

I created a pull request which fixes this issue. #47

posborne added a commit that referenced this issue Jan 15, 2018
@joshkerr
Copy link
Contributor

Was this issue released to the version on PIP? I seem to still be getting this error.

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

No branches or pull requests

3 participants