-
Notifications
You must be signed in to change notification settings - Fork 4
No module named 'adafruit_ds2413' #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Try running Python without sudo. |
pi@raspberrypi:~ $ python3 /home/pi/OneWireGPIO.py the same result. |
Do you get the same thing if you just try an import via REPL:
|
pi@raspberrypi:~ $ python3
yes :-( |
Did you get any errors when you ran this?
Maybe just try forcing a re-install:
|
That was the solution. Now version adafruit-circuitpython-ds2413 1.1.6 is installed and version 1.1.1 is uninstalled. Successfully uninstalled adafruit-circuitpython-ds2413-1.1.1 here the result.
perfect!! |
OK, glad that fixed it. If you run into a complaint about onewire, just install it manually. When I was testing your issue I noticed the requirement is missing from the PyPi setup, so won't get installed automatically via pip when installing this library. See #17 |
hi btw - @caternuson one wire blinka stuff wont work cause of the different subsystem on linux |
I installed adafruit-circuitpython-ds2413 OK on Raspberry Pi Zero (pip3 install adafruit-circuitpython-ds2413) and (sudo pip3 install adafruit-circuitpython-ds2413). But when I ran the Example from this side.
sudo python3 /home/pi/OneWireGPIO.py
Traceback (most recent call last):
File "/home/pi/OneWireGPIO.py", line 7, in
import adafruit_ds2413
ModuleNotFoundError: No module named 'adafruit_ds2413'
/usr/local/lib/python3.7/dist-packages $ ls
adafruit_blinka
analogio.py
pyftdi-0.42.2.dist-info
Adafruit_Blinka-3.3.6.dist-info
bitbangio.py
pyusb-1.0.2.dist-info
adafruit_bus_device
board.py
rpi_ws281x
adafruit_circuitpython_busdevice-4.1.1.dist-info
busio.py
rpi_ws281x-4.2.2.dist-info
adafruit_circuitpython_ds2413-1.1.1.dist-info
digitalio.py
_rpi_ws281x.cpython-37m-arm-linux-gnueabihf.so
adafruit_circuitpython_onewire-1.1.3.dist-info
microcontroller
spidev-3.4.dist-info
adafruit_onewire
micropython.py
spidev.cpython-37m-arm-linux-gnueabihf.so
adafruit_platformdetect
neopixel_write.py sysv_ipc-1.0.1.dist-info
Adafruit_PlatformDetect-1.4.1.dist-info
pulseio.py
sysv_ipc.cpython-37m-arm-linux-gnueabihf.so
Adafruit_PureIO
pycache
usb
Adafruit_PureIO-1.0.4.dist-info
pyftdi
Can someone help me please
Thank you
The text was updated successfully, but these errors were encountered: