Endless Uploading and error (No drive to deploy. exit status 1)

Hello

I was able to upload all of my files and everything was working fine 2 hours ago. Then something happened and every attempt I do to run code (Even just the basic Blink example) results in the error message below and an endless "uploading" message.

Failed uploading: uploading error: exit status 1

or

No drive to deploy.
Failed uploading: uploading error: exit status 1

The device is the Raspberry Pi Pico W, and the unofficial library was the one I was using before (When everything was working). Now, either the official library, or the unofficial one works.

Tried on both the current version of the IDE (2.0.3), and the older version of it (1.8.19) on Windows 11, and the current version on Windows 10. Neither works.

Tried a different Pico W (Brand new one), does not work.

Tried everything again but with the basic Blink example. Does not work.

Deleted the program and re-instaled it. Does not work.

Deleted the program, the arduino15 files, the documents files. Does not work.

Installed the program and all the boards/libraries on a different computer. Does not work.

And it was working perfectly fine a few hours ago, and I don't recall changing anything.

Installed things:

Boards
Arduino Mbed OS RP2040 Boards 3.5.1
Raspberry Pi Pico/RP2040 2.6.5
Additional boards manager URLs
https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json

Board is connected on COM7 (Confirmed via Window's Device Manager)

No other device is using the port (Downloaded the ProcessExplorer program and checked with Thonny as well).

Is something obviously wrong? Do I have the wrong version of something? This is really starting to drive me insane because it just suddenly started happening.

Thanks in advance for any help you can give

I have just been trying a bunch of random things, and now I am getting this error:

Fatal Python error: initfsencoding: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'
Current thread 0x000024e0 (most recent call first):
exit status 0xc0000409
Compilation error: exit status 0xc0000409

Any clue how to fix this one?


EDIT:

I removed all Python installations and the IDE, then reinstalled the IDE and Python 3.11.1 (And clicked the "Add to PATH" button).

System variables looks like this:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.