# Errors with fresh enviroplus-python install + blank LCD

**URL:** <https://forums.pimoroni.com/t/errors-with-fresh-enviroplus-python-install-blank-lcd/13425>\
**Category:** Support\
**Created:** [March 29, 2020, 9:48am UTC](https://forums.pimoroni.com/t/errors-with-fresh-enviroplus-python-install-blank-lcd/13425 "2020-03-29T09:48:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dknappett](https://avatars.discourse-cdn.com/v4/letter/d/7c8e57/32.png) [@dknappett](https://forums.pimoroni.com/u/dknappett)\
**Post date:** [March 29, 2020, 9:48am UTC](https://forums.pimoroni.com/t/errors-with-fresh-enviroplus-python-install-blank-lcd/13425/1 "2020-03-29T09:48:05Z")

</div>

Trying to do a fresh install of enviroplus-python to a RPi Zero, I followed the steps here: [https://learn.pimoroni.com/tutorial/sandyj/getting-started-with-enviro-plus](https://learn.pimoroni.com/tutorial/sandyj/getting-started-with-enviro-plus). I’m using the latest ‘Raspbian Buster with desktop and recommended software’ image as suggested, but during the install the following error is thrown:

pi@raspberrypi:~/enviroplus-python $ sudo ./install.sh  
Checking for python-configparser  
enviroplus 0.0.3 Python Library: Installer

Installing for Python 2…  
Checking for python-pip  
Checking for python-numpy  
Checking for python-smbus  
Checking for python-pil  
Checking for python-spidev  
Checking for python-rpi.gpio  
Checking for libportaudio2  
zip\_safe flag not set; analyzing archive contents…  
package init file ‘src/doc/ **init**.py’ not found (or not a regular file)  
package init file ‘src/test/ **init**.py’ not found (or not a regular file)  
File “build/bdist.linux-armv6l/egg/astral/geocoder.py”, line 428  
def database() -\> LocationDatabase:  
^  
SyntaxError: invalid syntax

File “build/bdist.linux-armv6l/egg/astral/ **main**.py”, line 38  
kwargs: Dict[str, Any] = {}  
^  
SyntaxError: invalid syntax

File “build/bdist.linux-armv6l/egg/astral/location.py”, line 23  
def **init** (self, info: Optional[LocationInfo] = None):  
^  
SyntaxError: invalid syntax

File “build/bdist.linux-armv6l/egg/astral/moon.py”, line 11  
def \_phase\_asfloat(date: datetime.date) -\> float:  
^  
SyntaxError: invalid syntax

File “build/bdist.linux-armv6l/egg/astral/ **init**.py”, line 78  
def now(tzinfo: datetime.tzinfo = pytz.utc) -\> datetime.datetime:  
^  
SyntaxError: invalid syntax

File “build/bdist.linux-armv6l/egg/astral/sun.py”, line 47  
def proper\_angle(value: float) -\> float:  
^  
SyntaxError: invalid syntax

File “build/bdist.linux-armv6l/egg/test/almost\_equal.py”, line 6  
def datetime\_almost\_equal(datetime1: datetime, datetime2: datetime, seconds: int = 60):  
^  
SyntaxError: invalid syntax

File “build/bdist.linux-armv6l/egg/test/test\_norway.py”, line 10  
def \_next\_event(obs: astral.Observer, dt: datetime, event: str):  
^  
SyntaxError: invalid syntax

File “build/bdist.linux-armv6l/egg/test/test\_sun\_calc.py”, line 18  
def test\_JulianDay(day: datetime.date, jd: float):  
^  
SyntaxError: invalid syntax

File “build/bdist.linux-armv6l/egg/test/conftest.py”, line 9  
def test\_database() -\> LocationDatabase:  
^  
SyntaxError: invalid syntax

zip\_safe flag not set; analyzing archive contents…  
Done!

Installing for Python 3…  
Checking for python3-pip  
Checking for python3-numpy  
Checking for python3-smbus  
Checking for python3-pil  
Checking for python3-spidev  
Checking for python3-rpi.gpio  
Checking for libportaudio2  
zip\_safe flag not set; analyzing archive contents…  
Done!

Setting up i2c and SPI…  
Backing up /boot/config.txt to /boot/config.preinstall-enviroplus-2020-28-29-10-28-23.txt

Setting up serial for PMS5003…  
Adding dtoverlay=pi3-miniuart-bt to /boot/config.txt

Adding dtoverlay=adau7002-simple to /boot/config.txt

Would you like to copy examples to /home/pi/Pimoroni/enviroplus? [y/N] y  
Copying examples to /home/pi/Pimoroni/enviroplus

All done!  
If this is your first time installing you should reboot for hardware changes to take effect.

Find uninstall steps in /home/pi/Pimoroni/enviroplus/uninstall.sh

pi@raspberrypi:~/enviroplus-python $ sudo reboot

Running python lcd.py and python all-in-one.py I can see the LCD turn on and light up, but it’s just blank. I ran sudo apt-get update and sudo apt-get upgrade before and after install, but I’ve also tried not doing that. When I run python all-in-one.py I DO get the temperature print out in the console window.

Is there something obvious I’m missing?

I’ve also tried using curl -sSL [https://get.pimoroni.com/enviroplus](https://get.pimoroni.com/enviroplus) | bash, which installed without error, but when I run a couple of the examples that use the LCD, I get:

pi@raspberrypi:~/Pimoroni/st7735/examples $ python image.py cat.jpg

image.py - Display an image on the LCD.

If you’re using Breakout Garden, plug the 0.96" LCD (SPI)  
breakout into the rear slot.

Traceback (most recent call last):  
File “image.py”, line 46, in   
spi\_speed\_hz=4000000  
File “/usr/local/lib/python2.7/dist-packages/ST7735/ **init**.py”, line 156, in **init**  
self.\_spi = spidev.SpiDev(port, cs)  
IOError: [Errno 2] No such file or directory  
pi@raspberrypi:~/Pimoroni/st7735/examples python scrolling-text.py Traceback (most recent call last): File "scrolling-text.py", line 18, in \<module\> spi\_speed\_hz=10000000 File "/usr/local/lib/python2.7/dist-packages/ST7735/\_\_init\_\_.py", line 156, in \_\_init\_\_ self.\_spi = spidev.SpiDev(port, cs) IOError: [Errno 2] No such file or directory pi@raspberrypi:~/Pimoroni/st7735/examples

Thanks in advance for any help.

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [March 29, 2020, 11:23am UTC](https://forums.pimoroni.com/t/errors-with-fresh-enviroplus-python-install-blank-lcd/13425/2 "2020-03-29T11:23:25Z")

</div>

Try this instead of the clone  
`curl -sSL https://get.pimoroni.com/enviroplus | bash`

---

<div class="post-metadata">

**Author:** ![dknappett](https://avatars.discourse-cdn.com/v4/letter/d/7c8e57/32.png) [@dknappett](https://forums.pimoroni.com/u/dknappett)\
**Post date:** [March 29, 2020, 11:38am UTC](https://forums.pimoroni.com/t/errors-with-fresh-enviroplus-python-install-blank-lcd/13425/3 "2020-03-29T11:38:04Z")

</div>

Thanks, but I tried that too already (2nd half of my message above) - installs without error, but the LCD comes on just blank

> [@dknappett](#):
>
> I’ve also tried using curl -sSL [https://get.pimoroni.com/enviroplus](https://get.pimoroni.com/enviroplus) | bash, which installed without error, but when I run a couple of the examples that use the LCD, I get:

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [March 29, 2020, 11:51am UTC](https://forums.pimoroni.com/t/errors-with-fresh-enviroplus-python-install-blank-lcd/13425/4 "2020-03-29T11:51:01Z")

</div>

Ok, I missed that somehow, ops.  
Double check that SPI is enabled in Raspberry Pi Configuration, or run raspi-config from terminal to do it if your running Buster Lite.

EDIT: This is my thread on getting that LCD to work. The one used by the Enviro + is the smaller 0.96" colour LCD (160x80). Still might help though.

> [@1.3 color tft LCD on btreakout garden pHat, SPI i2c](https://forums.pimoroni.com/t/1-3-color-tft-lcd-on-btreakout-garden-phat-spi-i2c/13033):
>
> I’m trying to get my 1.3" SPI Colour LCD (240x240) Breakout working with a Breakout Garden pHat The Breakout garden Installer didn’t find it, I had to do the manual install from here Running the scrolling-test.py example from idle3 got me a no module named st7789. Running sudo pip3 install st7789 fixed that but gets me a new error message that I think is because its plugged into the breakout garden? Traceback (most recent call last): File “/home/pi/Color LCD/scrolling-text.py”, …

---

<div class="post-metadata">

**Author:** ![dknappett](https://avatars.discourse-cdn.com/v4/letter/d/7c8e57/32.png) [@dknappett](https://forums.pimoroni.com/u/dknappett)\
**Post date:** [March 29, 2020, 2:29pm UTC](https://forums.pimoroni.com/t/errors-with-fresh-enviroplus-python-install-blank-lcd/13425/5 "2020-03-29T14:29:47Z")

</div>

Same thing unfortunately :(

I also did a fresh install with the full desktop with recommended software, then using the curl command the same syntax error comes up part way through. I also checked that SPI was enabled through sudo raspi-config and rebooted. I’m out of ideas :)

pi@raspberrypi:~ $ curl -sSL [https://get.pimoroni.com/enviroplus](https://get.pimoroni.com/enviroplus) | bash

This script will install everything needed to use  
Enviro+

Always be careful when running scripts and commands copied  
from the internet. Ensure they are from a trusted source.

If you want to see what this script does before running it,  
you should run: ‘curl [https://get.pimoroni.com/enviroplus-python](https://get.pimoroni.com/enviroplus-python)’

Do you wish to continue? [y/N] y

Checking environment…  
Updating apt indexes…  
…

Checking hardware requirements…

Checking for dependencies…

Cloning Github repo locally…  
Cloning into ‘enviroplus-python’…  
remote: Enumerating objects: 51, done.  
remote: Counting objects: 100% (51/51), done.  
remote: Compressing objects: 100% (39/39), done.  
remote: Total 51 (delta 14), reused 22 (delta 9), pack-reused 0  
Unpacking objects: 100% (51/51), done.

Finalising Install…

Checking for python-configparser  
enviroplus 0.0.3 Python Library: Installer

Installing for Python 2…  
Checking for python-pip  
Checking for python-numpy  
Checking for python-smbus  
Checking for python-pil  
Checking for python-spidev  
Checking for python-rpi.gpio  
Checking for libportaudio2  
zip\_safe flag not set; analyzing archive contents…  
package init file ‘src/doc/ **init**.py’ not found (or not a regular file)  
package init file ‘src/test/ **init**.py’ not found (or not a regular file)  
File “build/bdist.linux-armv6l/egg/astral/geocoder.py”, line 428  
def database() -\> LocationDatabase:  
^  
SyntaxError: invalid syntax

File “build/bdist.linux-armv6l/egg/astral/ **main**.py”, line 38  
kwargs: Dict[str, Any] = {}  
^  
SyntaxError: invalid syntax

File “build/bdist.linux-armv6l/egg/astral/location.py”, line 23  
def **init** (self, info: Optional[LocationInfo] = None):  
^  
SyntaxError: invalid syntax

File “build/bdist.linux-armv6l/egg/astral/moon.py”, line 11  
def \_phase\_asfloat(date: datetime.date) -\> float:  
^  
SyntaxError: invalid syntax

File “build/bdist.linux-armv6l/egg/astral/ **init**.py”, line 78  
def now(tzinfo: datetime.tzinfo = pytz.utc) -\> datetime.datetime:  
^  
SyntaxError: invalid syntax

File “build/bdist.linux-armv6l/egg/astral/sun.py”, line 47  
def proper\_angle(value: float) -\> float:  
^  
SyntaxError: invalid syntax

File “build/bdist.linux-armv6l/egg/test/almost\_equal.py”, line 6  
def datetime\_almost\_equal(datetime1: datetime, datetime2: datetime, seconds: int = 60):  
^  
SyntaxError: invalid syntax

File “build/bdist.linux-armv6l/egg/test/test\_norway.py”, line 10  
def \_next\_event(obs: astral.Observer, dt: datetime, event: str):  
^  
SyntaxError: invalid syntax

File “build/bdist.linux-armv6l/egg/test/test\_sun\_calc.py”, line 18  
def test\_JulianDay(day: datetime.date, jd: float):  
^  
SyntaxError: invalid syntax

File “build/bdist.linux-armv6l/egg/test/conftest.py”, line 9  
def test\_database() -\> LocationDatabase:  
^  
SyntaxError: invalid syntax

zip\_safe flag not set; analyzing archive contents…  
Done!

Installing for Python 3…  
Checking for python3-pip  
Checking for python3-numpy  
Checking for python3-smbus  
Checking for python3-pil  
Checking for python3-spidev  
Checking for python3-rpi.gpio  
Checking for libportaudio2  
zip\_safe flag not set; analyzing archive contents…  
Done!

Setting up i2c and SPI…  
Backing up /boot/config.txt to /boot/config.preinstall-enviroplus-2020-14-29-15-14-33.txt

Setting up serial for PMS5003…  
Adding dtoverlay=pi3-miniuart-bt to /boot/config.txt

Adding dtoverlay=adau7002-simple to /boot/config.txt

Would you like to copy examples to /home/pi/Pimoroni/enviroplus? [y/N] y  
Copying examples to /home/pi/Pimoroni/enviroplus

All done!  
If this is your first time installing you should reboot for hardware changes to take effect.

Find uninstall steps in /home/pi/Pimoroni/enviroplus/uninstall.sh

Some changes made to your system require  
your computer to reboot to take effect.

Would you like to reboot now? [y/N] N

pi@raspberrypi:~ $

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [March 29, 2020, 2:54pm UTC](https://forums.pimoroni.com/t/errors-with-fresh-enviroplus-python-install-blank-lcd/13425/6 "2020-03-29T14:54:10Z")

</div>

I’m no expert on this but it kind of sounds like the github repo is corrupted?  
I think I would contact Pimoroni about it via this link  
[https://shop.pimoroni.com/pages/contact-us](https://shop.pimoroni.com/pages/contact-us)  
I would put a link to this thread in that e-mail.

---

<div class="post-metadata">

**Author:** ![dknappett](https://avatars.discourse-cdn.com/v4/letter/d/7c8e57/32.png) [@dknappett](https://forums.pimoroni.com/u/dknappett)\
**Post date:** [April 12, 2020, 4:23pm UTC](https://forums.pimoroni.com/t/errors-with-fresh-enviroplus-python-install-blank-lcd/13425/7 "2020-04-12T16:23:10Z")

</div>

Turns out it was a faulty LCD on the board - Pimoroni were great at shipping me a replacement which works as expected :)

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [April 12, 2020, 5:44pm UTC](https://forums.pimoroni.com/t/errors-with-fresh-enviroplus-python-install-blank-lcd/13425/8 "2020-04-12T17:44:57Z")

</div>

Top Notch, that’s great to hear. Now you can enjoy your new tech and have some fun. =)
