-
-
Notifications
You must be signed in to change notification settings - Fork 799
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 Python 3.8+ on Windows when network drive is used #3417
Comments
|
no the machines have different user names
no, the names contain only characters from [A-Z] [a-z] and char \ from the domain Name. But Domainname is same on both maschines.
Do you mean the character encoding setting like UTF-8? In Visual Studio Code is it UTF-8 or you mean on the OS? |
Where did you get this Python 3.8? Could you try to uninstall it and install again the latest Python 3? Also, please remove .platformio/penv folder form user home folder. Restart VSCode. |
Hello, What did I do:
Conclusion: Translated with www.DeepL.com/Translator (free version) |
@Hofei90 could you provide a simple project ot reproduce this issue? |
This is the project where the problems were. |
I moved this issue to ESP8266 dev-platform. I tried in my VM and cannot reproduce it. @Hofei90 , could you open PlatformIO IDE Terminal and change directory to this project and run:
Could you provide a new output? It will show where it fails. |
Did you use Python 3.8.2 32bit too? Here is the output with
EDIT, add Output with verbose Option:
|
Could you try to move this project to |
Good eye, can you please make the path in your post unrecognizable and also remove it from the history If the folder is on C: it works. |
Sorry, done! So, I moved back this issue to PIO Core because it looks like a bug. What is a type of this drive? How can I create it? |
Hello, |
Hello, the network drive is provided by a QNAP NAS. Unfortunately I cannot provide any further information about this |
i had this issue on windows (local disk). I solved this by changing the following line: https://github.com/platformio/platformio-core/blob/develop/platformio/proc.py#L33 from : self._pipe_reader = os.fdopen(self._fd_read) to :
there are a couple of stackoverflow on this. |
@ivankravets look like it solved the issue i had |
I merged into the development branch. Let see what people report. |
Neither fix worked for me. The first one made it end up making the path within the mapped network drive, Seems it thinks that the space in the path that is mapped to the drive letter is a seperator because everything after that was created in the projects folder and had some things put into it as it was failing. the second one seemed to have all my work undone by downloading python over what I replaced it with when I pressed build. Begrudgingly moved my project onto the local drive just so I could build it. This is a showstopper for the use of platformio for me as I rely on my files being on a nas so they are accessible on all computers |
If it has problems with spaces in pathes, then clearly some parts of PlatformIO use inproper escaping for pathes. |
I think this is a wonderful project with lots of potential, but as long there's no fix for this issue I won't use it. |
Hi there, Sorry for the historical issue. It looks like we have finally fixed it. Please re-test with Does it work now without any issues? P.S.: Any Python 3.6 or above is OK now! |
You have already closed it. So apparently testing is already complete. |
Yes, it was tested internally and published to the |
Doesn't work in the "Terminal" tab in PlatformIO/Visual Studio Code. PlatformIO has automatically updated already on start but doesn't tell me the new version number or a changelog.
|
You can open PlatformIO Core CLI in VSCode and type
Restart VSCode. |
Using that thin, blue toolbar at the bottom I can compile a copy of the project stored on a mapped network drive from a path that contains spaces and a period. Looks like changing the checkbox "[X] use a development version" forgot to tell me that it needs me to exit and restart VS-code. |
The cause of the issue: https://bugs.python.org/issue37993
Solution 1
regedit.exe
Command Processor
atHKEY_CURRENT_USER\Software\Microsoft
DWORD (32-bit) Value
namedDisableUNCCheck
DisableUNCCheck
to1
(Hex)Solution 2
%HOMEPATH%/.platformio/python3
.%HOMEPATH%/.platformio/penv
folder.Configuration
Operating system:
Windows_NT x64 10.0.17763
PlatformIO Version (
platformio --version
):4.2.2b1
and
4.2.1
Python Version
3.8 32bit
Description of problem
During compilation I get the Python Traceback UnicodeDecodeError: 'charmap' codec can't decode byte.
Full Message:
If problems with PlatformIO Build System:
The content of
platformio.ini
:Additional info
On another PC with Python version 3.7 there are no problems compiling.
Here are the data of the PC where there is no problem:
Version: 1.43.0 (user setup)
Commit: 78a4c91400152c0f27ba4d363eb56d2835f9903a
Date: 2020-03-09T19:47:57.235Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.17763
PlatformIO: Core 4.2.1, Home 3.1.1
The text was updated successfully, but these errors were encountered: