Skip to content

uf2conv.py fails on Linux Mint 20.2 #420

@cbrewer314

Description

@cbrewer314

I'm attempting to build RP2040 code using the Arduino framework by following the instructions at https://www.tomshardware.com/how-to/program-raspberry-pi-pico-with-arduino-ide .

When I attempt to build an executable I receive the following error:

Traceback (most recent call last):
Resetting /dev/ttyACM0
Converting to uf2, output size: 131584, start address: 0x2000
File "/home/chris/.arduino15/packages/rp2040/hardware/rp2040/1.9.13/tools/uf2conv.py", line 380, in
main()
File "/home/chris/.arduino15/packages/rp2040/hardware/rp2040/1.9.13/tools/uf2conv.py", line 360, in main
drives = get_drives()
File "/home/chris/.arduino15/packages/rp2040/hardware/rp2040/1.9.13/tools/uf2conv.py", line 250, in get_drives
for d in os.listdir(rootpath):
FileNotFoundError: [Errno 2] No such file or directory: '/opt/media'
FileNotFoundError: [Errno 2] No such file or directory: '/opt/media'

For what it's worth this version of Linux Mint provides Arduino IDE version 1.8.19 and Python 3.8.10, both installed via the synaptic package manager.

I did look at get_drives(), line 240, before posting this issue. It first checks for /media, which does exist on my system (a normal directory with permissions drwxr-xr-x, root/root), but os.path.isdir(rootpath) returns false.

Also, /media/chris (which I think it should be ultimately using?) exists, but is an empty directory on my system, and I'm not sure what uf2conv.py expects to find there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions