bk1285 / rpi_wordclock

Software to create a Raspberry Pi based wordclock
GNU General Public License v3.0
214 stars 106 forks source link

AttributeError: wordclock_display instance has no attribute 'strip' #181

Closed teletext78 closed 3 years ago

teletext78 commented 3 years ago

Hello,

When I run "sudo python wordclock.py", I get this message: Parsing /home/pi/rpi_wordclock/wordclock_config/wordclock_config.cfg Interface type set to gpio_low Wiring configuration WCA_WIDTH: 11 WCA_HEIGHT: 10 Num of LEDs: 114 Wiring layout: bernds_wiring WARNING: Default brightness value not set in config-file: To do so, add a "brightness" between 1..255 to the [wordclock_display]-section. Update deprecated external dependency rpi_ws281x. For details see also https://github.com/jgarff/rpi_ws281x/blob/master/python/README.md Traceback (most recent call last): File "rpi_wordclock/wordclock.py", line 166, in word_clock = wordclock() File "rpi_wordclock/wordclock.py", line 54, in init self.wcd = wcd.wordclock_display(self.config, self.wci) File "/home/pi/rpi_wordclock/wordclock_tools/wordclock_display.py", line 63, in init self.strip.begin() AttributeError: wordclock_display instance has no attribute 'strip'

What should I do? Regards

FrankX0 commented 3 years ago

Did you check issue #170 ? And especially https://github.com/bk1285/rpi_wordclock/issues/170#issuecomment-712172187

teletext78 commented 3 years ago

Thanks for your suggestion. I did something completely different: 1) I follow this https://github.com/phenze/rpi_wordclock/tree/master-python3, since I also had issues with flask-restplus/Werkzeug; 2) the only error message when I run the program was then: "ModuleNotFoundError: No module named 'RPi'", which was easily solved with: sudo apt update sudo apt install python3-rpi.gpio

Now, everything seems to work! I hope this could help somebody else as well.

Regards

phenze commented 3 years ago

Thanks @teletext78 . I have added the missing package in my Readme