-
-
Notifications
You must be signed in to change notification settings - Fork 785
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
"UnicodeDecodeError: 'ascii' codec can't decode byte" #143
Comments
We can fix this issue within PlatformIO source code, but problem still exists within SCons source code. SolutionTo avoid this issue please re-define PlatformIO home_dir in your project configuration file platformio.ini or set global PLATFORMIO_HOME_DIR system environment variable. PlatformIO uses user's home directory by default, which can contain "non-latin" characters. The easy way is to set platformio.ini [platformio]
home_dir = C:\.platformio
[env:your_env_here]
.... NOTICE: All PlatformIO based commands should be executed within that project directory, where |
@ivankravets This error is also triggered by storing project in path containing non-latin characters. The workaround is (obviously) to store projects elsewhere or creating symlink (directory junction) so that PlatformIO does not have to deal with non-latin paths. PS in my case it was 'utf8' codec, not 'ascii'. |
Please open PlatformIO IDE Terminal and type
Restart VSCode. Does it work now? |
Problem occurs under Windows OS and for environment where configurable encoding is used (non UTF-8 paths).
https://docs.python.org/2/howto/unicode.html#unicode-filenames
Try this hook for
platformio.util.get_home_dir
:How to reproduce? Just create account with "non-UTF-8" chars (Cyrillic is good candidate).
The text was updated successfully, but these errors were encountered: