rvbockhooven / i2c7segment

Automatically exported from code.google.com/p/i2c7segment
0 stars 0 forks source link

Package contents of i2c7segment-1.0.tar.gz not matching up with code in clock_example.py #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

1. Download and untar i2c7segment-1.0.tar.gz

2. Went through installation instructions just fine.
$ sudo apt-get install python-smbus
$ sudo apt-get install i2c-tools (usefull but not essential)
$ sudo modprobe i2c-dev
$ sudo modprobe i2c-bcm2708
$ sudo python setup.py install

3. Open clock_example.py and notice that the first line is:
import adafruit_7seg_backpack as display

But in the untar-ed folder, there is not really anything like 
adafruit_7_seg_backpack.py
And in fact, running clock_example.py ($python clock_example.py) results in 
this error:

Traceback (most recent call last):
  File "clock_example.py", line 1, in <module>
    import adafruit_7seg_backpack as display
ImportError: No module named adafruit_7seg_backpack

What version of the product are you using? On what operating system?
 i2c7segment-1.0.tar.gz (August 7, 2012 release) downloaded on Tue Jan 15
Running on a 512mb raspberry pi model B

Thanks up front!

Original issue reported on code.google.com by kitchene...@gmail.com on 16 Jan 2013 at 1:44

GoogleCodeExporter commented 8 years ago
Changing clock_example.py so that it refers to i2c7segment instead of 
adafruit_7seg_backpack fixes this problem.

Original comment by jji...@gmail.com on 11 May 2014 at 1:46