adafruit_shell on Rasp pi

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
pir8ped
 
Posts: 2
Joined: Tue Feb 07, 2023 6:01 am

adafruit_shell on Rasp pi

Post by pir8ped »

Hi,

I'm trying to install the adafruit-python-shell on my Rasp Pi 3.

It seems to install OK, but then trying to run raspi-blinka.py, I get a message telling me that 'adafruit_shell' was not found.

Code: Select all

pi@raspberrypi:~ $ sudo pip3 install --upgrade adafruit-python-shell
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: adafruit-python-shell in /usr/local/lib/python3.9/dist-packages (1.6.0)
Collecting adafruit-python-shell
  Using cached https://www.piwheels.org/simple/adafruit-python-shell/adafruit_python_shell-1.6.0-py3-none-any.whl (8.0 kB)
  Using cached https://www.piwheels.org/simple/adafruit-python-shell/adafruit_python_shell-1.5.0-py3-none-any.whl (7.7 kB)
Requirement already satisfied: Adafruit-PlatformDetect in /usr/local/lib/python3.9/dist-packages (from adafruit-python-shell) (3.40.2)
Requirement already satisfied: clint in /usr/local/lib/python3.9/dist-packages (from adafruit-python-shell) (0.5.1)
Requirement already satisfied: args in /usr/local/lib/python3.9/dist-packages (from clint->adafruit-python-shell) (0.1.0)
pi@raspberrypi:~ $ sudo python raspi-blinka.py
Traceback (most recent call last):
  File "raspi-blinka.py", line 11, in <module>
    raise RuntimeError("The library 'adafruit_shell' was not found. To install, try typing: sudo pip3 install adafruit-python-shell")
RuntimeError: The library 'adafruit_shell' was not found. To install, try typing: sudo pip3 install adafruit-python-shell
Tried rebooting, tried updating everything. Stuck..

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: adafruit_shell on Rasp pi

Post by mikeysklar »

Which version of Pi OS are you running?

Is it up to date?

Does this work?

Code: Select all

python3 raspi-blinka.py

User avatar
pir8ped
 
Posts: 2
Joined: Tue Feb 07, 2023 6:01 am

Re: adafruit_shell on Rasp pi

Post by pir8ped »

Running Bullseye, and yes, it's up to date.

Ahhh!

python3 raspi-blinka.py

worked fine. I'd forgotten the '3' - it's been a while since I've messed with the pi and python.

Stupid mistake - thanks very much!

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: adafruit_shell on Rasp pi

Post by mikeysklar »

Yeah, the python3 is critical, but also be careful of when to use sudo. On full system installs like you have done sudo is fine, but on user installs running the scripts with sudo python3 will also fail to find the necessary libraries.

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”