thonny: `Upload to /` menu doesn't work
I have been using Thonny 4.0.2 with Windows 10 (64-bit). There haven’t been any problem in uploading files or directory to Raspberry Pi Pico.
But as soon as I upgraded to Thonny 4.1.1, it cannot upload files to Pico. The following is the trouble:
- Trying to upload
libfolder to Pico, I selected the menu ofUpload to / - Popup window says “Starting”, but it won’t finish forever (it can be cancelled).
Does somebody know how to fix this ? For a moment, I’ve downgraded the Thonny back to 4.0.2 and workarounded the problem.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 24 (11 by maintainers)
Commits related to this issue
- More conservative back-end isolation, #2016, #2851, #2864 `-I` invalidated PYTIONIOENCODING, which is required in certain cases. — committed to thonny/thonny by aivarannamaa a year ago
I was now able to reproduce the problem as indicated by the logs from @wilare – in this case the problem was related to non-ascii characters in the source file paths. I could solve it by getting rid of the
-Iswitch and thus restoring the effect ofPYTHONIOENCODINGenvironment variable.I still can’t explain the logs submitted by @yamamotomas – there are no error messages, but only 10 of the submitted 14 files were uploaded and the process seemed to block after this.
Anyway, I’ll release the fix soon, so that you all can more easily check if the problem gets solved in your case.
Please test https://github.com/thonny/thonny/releases/tag/v4.1.2
Thank you for the report!
Unfortunately I can’t reproduce this in my Windows 11 machine.
How large is this folder? Can you upload single file? Can you use the Shell without problems? Can you save files via editor without problems?
You could help like this: