Traceback (most recent call last):
File "/home/pi/rpi_wordclock2/wordclock.py", line 8, in <module>
import wordclock_tools.wordclock_display as wcd
File "/home/pi/rpi_wordclock2/wordclock_tools/wordclock_display.py", line 15, in <module>
import wordclock_tools.wordclock_colors as wcc
File "/home/pi/rpi_wordclock2/wordclock_tools/wordclock_colors.py", line 6, in <module>
from GTKstrip import Color
File "/home/pi/rpi_wordclock2/wordclock_tools/GTKstrip.py", line 3, in <module>
import gtk
ImportError: No module named gtk
Some googling suggests running sudo apt-get install python-gtk2, which results in
Traceback (most recent call last):
File "/home/pi/rpi_wordclock2/wordclock.py", line 166, in <module>
word_clock = wordclock()
File "/home/pi/rpi_wordclock2/wordclock.py", line 54, in __init__
self.wcd = wcd.wordclock_display(self.config, self.wci)
File "/home/pi/rpi_wordclock2/wordclock_tools/wordclock_display.py", line 58, in __init__
self.strip.begin()
AttributeError: wordclock_display instance has no attribute 'strip'
Figured it out. Installing python-gtk2 was the correct move, my second error was related to not pulling my updated code which reflected the changes to the rpi_ws281x project.
New to python\raspberry pi's so sorry if this is a dumb question. I don't see anything in the instructions about a GTK module https://rpi-wordclock.readthedocs.io/en/master/
Some googling suggests running
sudo apt-get install python-gtk2
, which results inAny advice?