Jun-16-2025, 01:25 PM
I try to follow a book and also Pythons document page to get a venv to work.
The install works but when I want to get a library through pip and I think it
works so far but when I wont to use the library it do not work. I get an answer
that the module do not exist.
get the same "ModuleNotFoundError:". I have lookup in adafuit for the Crickit and it
all show how to install and go on but it is not working.
When I follow the install in Python's document it gets the same. Is it more that is wrong,
when the output writes this "line x, in <module>" on the rows? Is that wrong also?
What is wrong???
The install works but when I want to get a library through pip and I think it
works so far but when I wont to use the library it do not work. I get an answer
that the module do not exist.
Output:(robot-venv) danne@RPi-robot:~ $ which python
/home/danne/robot-venv/bin/python
(robot-venv) danne@RPi-robot:~ $ python
Python 3.11.2 (main, Apr 28 2025, 14:11:48) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from adafruit_crickit import crickit
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/danne/robot-venv/lib/python3.11/site-packages/adafruit_crickit.py", line 29, in <module>
import board
File "/home/danne/robot-venv/lib/python3.11/site-packages/board.py", line 48, in <module>
from adafruit_blinka.board.raspberrypi.raspi_4b import *
File "/home/danne/robot-venv/lib/python3.11/site-packages/adafruit_blinka/board/raspberrypi/raspi_4b.py", line 6, in <module>
from adafruit_blinka.microcontroller.bcm2711 import pin
File "/home/danne/robot-venv/lib/python3.11/site-packages/adafruit_blinka/microcontroller/bcm2711/pin.py", line 7, in <module>
from adafruit_blinka.microcontroller.generic_linux.rpi_gpio_pin import Pin
File "/home/danne/robot-venv/lib/python3.11/site-packages/adafruit_blinka/microcontroller/generic_linux/rpi_gpio_pin.py", line 6, in <module>
from RPi import GPIO
ModuleNotFoundError: No module named 'RPi'I have been reading and doing uninstall and install many times in different ways butget the same "ModuleNotFoundError:". I have lookup in adafuit for the Crickit and it
all show how to install and go on but it is not working.
When I follow the install in Python's document it gets the same. Is it more that is wrong,
when the output writes this "line x, in <module>" on the rows? Is that wrong also?
What is wrong???
