theatrus/contribtastic — Issue #3: Upload doesn't work with non-ascii paths
Author: oltimus
Created: 2011-12-10 18:09:45+00:00
State: open

I have a cyrillic based system where username contains russian symbols. I noticed that contribtastic doesn't upload anything at all. I looked through the code and checked that my files passed all time checks but failed on this:

File "C:\Program Files (x86)\EVE-Central Contribtastic\library.zip\evec_upload\upload.py", line 161, in upload_data
UnicodeEncodeError: 'ascii' codec can't encode characters in position 3-7: ordinal not in range(128)

problem line is:

market_parser = evecache.MarketParser(str(item))

so I suppose that evecache.MarketParse which is written in/inherited from C++ and expect a simple ascii string and my paths becomes unicode strings due to cyrillic.

Renaming user helped to overcome the situation but more logically it will be to move to cache folder and list files from there which removes usage of the full path. However, the further actions are up to the author.