Skip to content
This repository has been archived by the owner on Feb 6, 2021. It is now read-only.

No module named Adafruit_LED_Backpack #28

Closed
Thermo96 opened this issue Sep 22, 2018 · 2 comments
Closed

No module named Adafruit_LED_Backpack #28

Thermo96 opened this issue Sep 22, 2018 · 2 comments

Comments

@Thermo96
Copy link

Hello,

Recently, I just bought a 4 Digit-7Segment Display from Adafruit. After connecting the LED pack with my Raspberry Pi 2 I just wanted to start an example code, which is part of the official Code package. Unfortunately, I was not able to run the example Code due to an error, which I could not solve on my one. I would really appreciate, if someone give me a hint or an advise how I can handle this.

pi@raspberrypi ~ $ ls
Adafruit_Python_LED_Backpack Documents python_games Scratch
Desktop Downloads Schrott
pi@raspberrypi ~ $ cd Adafruit_Python_LED_Backpack
pi@raspberrypi ~/Adafruit_Python_LED_Backpack $ ls
Adafruit_LED_Backpack examples ez_setup.py LICENSE README.md setup.py
pi@raspberrypi ~/Adafruit_Python_LED_Backpack $ cd examples
pi@raspberrypi ~/Adafruit_Python_LED_Backpack/examples $ ls
alphanum4_test.py ex_7segment_clock.py sevensegment_test.py
bicolor_bargraph24_test.py matrix8x16_test.py
bicolor_matrix8x8_test.py matrix8x8_test.py
pi@raspberrypi ~/Adafruit_Python_LED_Backpack/examples $ sudo python ex_7segment_clock.py
Traceback (most recent call last):
File "ex_7segment_clock.py", line 6, in
from Adafruit_LED_Backpack import SevenSegment
ImportError: No module named Adafruit_LED_Backpack
pi@raspberrypi ~/Adafruit_Python_LED_Backpack/examples $ ^C

Thank you very much in advance!

@DieselDragon
Copy link

You probably want the Adafruit_LED_Backpack library (Different source tree) Here

Hope this helps! :-)

@ladyada
Copy link
Member

ladyada commented Nov 25, 2018

hiya - the best thing to do is actually use our new circuitpython library here!
https://github.com/adafruit/Adafruit_CircuitPython_HT16K33
you'll need to install Blinka support but then you can just pip3 that repo to install support
https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/i2c-sensors-and-devices

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants