Adsense HTML/JavaScript

Saturday, March 19, 2022

Fix "RuntimeError: None data for /?", in CircuitPython on Arduino Nano RP2040 Connect

To install CircuitPython on Arduino Nano RP2040 Connect, it's straightforward to following instruction in Adafruit document  "CircuitPython on the Arduino Nano RP2040 Connect > Install CircuitPython".

After CircuitPython 7.2.3 was installed on Arduino Nano RP2040 Connect, I can run REPL. BUT...I can't access CircuitPython device (named "?"), Problem when handling 'get_dirs_children_info_response' with "RuntimeError: None data for /?"!

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/thonny/workbench.py", line 1711, in event_generate
    handler(event)
  File "/usr/lib/python3/dist-packages/thonny/base_file_browser.py", line 1001, in update_dir_data
    self.render_children_from_cache(msg["node_id"])
  File "/usr/lib/python3/dist-packages/thonny/base_file_browser.py", line 430, in render_children_from_cache
    raise RuntimeError("None data for %s" % path)
RuntimeError: None data for /?



Solution in my case:

I follow "To erase CIRCUITPY" section in CircuitPython on the Arduino Nano RP2040 Connect > Troubleshooting.

Enter in CircuitPython REPL:
>>> import storage
>>> storage.erase_filesystem()

Then, the problem fixed.


No comments:

Post a Comment