adafruit / Adafruit_CircuitPython_RGB_Display

Drivers for RGB displays for Adafruit CircuitPython.
MIT License
133 stars 52 forks source link

can't get my screen to display info / can't run script #99

Closed bigguyjones closed 2 years ago

bigguyjones commented 2 years ago

I setup pi-hole on a pi zero w and that all works fine and is running properly. i just can't get the screen working yet.

I am NOT using the OLED kit, I'm using the Mini PiTFT.

I'm following the guide for the kit i bought here: https://learn.adafruit.com/pi-hole-ad-blocker-with-pi-zero-w?view=all

when i type the command "sudo python3 ~pi/stats.py" it just returns

Traceback (most recent call last): File "/home/pi/stats.py", line 16, in import adafruit_rgb_display.st7789 as st7789 ModuleNotFoundError: No module named 'adafruit_rgb_display'

I assume I must be missing a step but i don't know what. I would really appreciate the help I am new to the raspberry pi world

Melvo8 commented 2 years ago

I am having the same exact problem.

makermelissa commented 2 years ago

It sounds like you haven't installed the library. It states here that the guide assumes you have the library installed: https://learn.adafruit.com/pi-hole-ad-blocker-with-pi-zero-w/install-mini-pitft#python-setup-3049424-9

If you have already done that, it may need to be installed using sudo because of pihole needing increased privileges, which you can do by typing: sudo pip3 install adafruit-circuitpython-rgb-display. Looking at the guide, it requires you to run the script as sudo, so I'm pretty sure that's the solution.

makermelissa commented 2 years ago

Closing since there isn't anything to do here based on the error message. I added a warning to the guide.