Cannot run or debug CircuitPython code on Raspberry Pi Pico with PyCharm.

I am trying to use PyCharm as IDE for Raspberry Pi Pico using Adafruit's CircuitPython libraries.
I already tried this method but for some reason I cannot update the code on the Pico, but only read what has already been uploaded trough either Thonny, Mu Editor or directly from the disk partition with the simple Windows Notepad.
When I try to run the code I get the following error:


Traceback (most recent call last):
  File "D:\code.py", line 2, in <module>
    import board
  File "C:\Users\miusr\MyProject\venv\Lib\site-packages\board.py", line 354, in <module>
    raise NotImplementedError(
NotImplementedError: 
        Adafruit-PlatformDetect version 3.47.0 was unable to identify the board and/or
        microcontroller running the Windows platform. Please be sure you
        have the latest packages running:
        'pip3 install --upgrade adafruit-blinka adafruit-platformdetect'

Yet I have already have these installed both global and in the virtual environment.
Also when I try to add a file to the directory I get the following message:

Clear Read-Only Status:
Failed to change read-only status for the following files: D:\

Error
Refactoring cannot be performed Directory D:\ is read-only.

I would like to use PyCharm as I find it better for debugging and for the good IntelliSense.
Thanks in advance.

1

Please sign in to leave a comment.