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 lib folder to Pico, I selected the menu of Upload 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.

thonny1 thonny2

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 24 (11 by maintainers)

Commits related to this issue

Most upvoted comments

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 -I switch and thus restoring the effect of PYTHONIOENCODING environment 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.

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:

  1. Put Thonny to debug mode (Tools => Options => General => Debug mode)
  2. Restart Thonny
  3. Select “Tools => Open Thonny data folder” and check that it contains frontend.log and backend.log
  4. Reproduce this error
  5. Close Thonny
  6. Send me the frontend.log and backend.log