Raspi OS upgrade today to the latest. Pi5. Never coded in python before. Using it now to get a faster grip on the Pico since there are so many examples out there in micro python. There are IDEs, yes, but I clearly prefer console-driven interfaces and had no problem at all in Xubuntu using rshell. To which I will go back meanwhile. Although I'd liek to make the Pi5 the main development unit.
The first error shown below is the same when trying to install mpremote.
I tried to install rshell :
I've installed rshell on the main computer which is Xubuntu 22.04 no problem.
I tried installing rshell from git. It executes but when trying to get a Pico ID it does :
How can I get both rshell and mpremote installed in a freshly upgraded Raspi OS on a Pi5 ?
Cheers.
The first error shown below is the same when trying to install mpremote.
I tried to install rshell :
Code:
% pip3 install rshellerror: externally-managed-environment× This environment is externally managed╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install. If you wish to install a non-Debian-packaged Python package, create a virtual environment using python3 -m venv path/to/venv. Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make sure you have python3-full installed. I tried installing rshell from git. It executes but when trying to get a Pico ID it does :
Code:
Connecting to /dev/ttyACM0 (buffer-size 32)...Trying to connect to REPL connectedRetrieving sysname ... Traceback (most recent call last): File "/usr/local/bin/r.py", line 5, in <module> main.main() File "/usr/local/bin/rshell/main.py", line 3203, in main real_main() File "/usr/local/bin/rshell/main.py", line 3169, in real_main autoscan() File "/usr/local/bin/rshell/main.py", line 348, in autoscan connect_serial(port[0]) File "/usr/local/bin/rshell/main.py", line 1459, in connect_serial dev = DeviceSerial(port, baud, wait) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/bin/rshell/main.py", line 1796, in __init__ Device.__init__(self, pyb) File "/usr/local/bin/rshell/main.py", line 1543, in __init__ self.sysname = self.remote_eval(sysname) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/bin/rshell/main.py", line 1682, in remote_eval return eval(self.remote(func, *args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/bin/rshell/main.py", line 1660, in remote self.pyb.enter_raw_repl() File "/usr/local/bin/rshell/pyboard.py", line 200, in enter_raw_repl data = self.read_until(1, b'soft reboot\r\n') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/bin/rshell/pyboard.py", line 171, in read_until elif self.serial.inWaiting() > 0: ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 594, in inWaiting return self.in_waiting ^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 549, in in_waiting s = fcntl.ioctl(self.fd, TIOCINQ, TIOCM_zero_str) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^OSError: [Errno 5] Input/output errorCheers.
Statistics: Posted by mevla — Tue Mar 04, 2025 3:11 pm