# Enviro+ One-line install script is broken

**URL:** <https://forums.pimoroni.com/t/enviro-one-line-install-script-is-broken/15860>\
**Category:** Support\
**Created:** [January 14, 2021, 11:13am UTC](https://forums.pimoroni.com/t/enviro-one-line-install-script-is-broken/15860 "2021-01-14T11:13:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ExperiMentor](https://avatars.discourse-cdn.com/v4/letter/e/f17d59/32.png) [@ExperiMentor](https://forums.pimoroni.com/u/ExperiMentor)\
**Post date:** [January 14, 2021, 11:13am UTC](https://forums.pimoroni.com/t/enviro-one-line-install-script-is-broken/15860/1 "2021-01-14T11:13:27Z")

</div>

It worked fine only yesterday, but today on a newly set up RPi, it no longer works.  
There’s been an update to the Raspbian OS, so that is probably the underlying cause, which seems to be absence of the required audio drivers.

Below is the output where the script fails - it carries on similarly, then says ‘completed’ but obviously it has not.

I realise this may take some time to fully fix, but any suggestions or a quick workaround to get most things working (eg: without the noise level detection…)

Checking for python-rpi.gpio  
Checking for libportaudio2  
Installing missing packages: python-cffi libportaudio2  
Reading package lists… Done  
Building dependency tree  
Reading state information… Done  
Package libportaudio2 is not available, but is referred to by another package.  
This may mean that the package is missing, has been obsoleted, or  
is only available from another source

Package python-cffi is not available, but is referred to by another package.  
This may mean that the package is missing, has been obsoleted, or  
is only available from another source  
However the following packages replace it:  
python-cffi-backend

E: Package ‘python-cffi’ has no installation candidate  
E: Package ‘libportaudio2’ has no installation candidate  
apt uninstall -y python-cffi libportaudio2  
zip\_safe flag not set; analyzing archive contents…  
Package libffi was not found in the pkg-config search path.  
Perhaps you should add the directory containing `libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc’  
to the PKG\_CONFIG\_PATH environment variable

---

<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:** [January 14, 2021, 12:14pm UTC](https://forums.pimoroni.com/t/enviro-one-line-install-script-is-broken/15860/2 "2021-01-14T12:14:21Z")

</div>

This run from terminal will get the display working.  
`curl https://get.pimoroni.com/st7735 | bash`

For the BME280 it’s  
`sudo pip install pimoroni-bme280 smbus`  
for Python 2 and or  
`sudo pip3 install pimoroni-bme280 smbus`  
for Python 3

For the LTR559 its  
`sudo pip install ltr559`  
for python 2 and or  
`sudo pip3 install ltr559`  
for python3

That will get most of it working.

---

<div class="post-metadata">

**Author:** ![ExperiMentor](https://avatars.discourse-cdn.com/v4/letter/e/f17d59/32.png) [@ExperiMentor](https://forums.pimoroni.com/u/ExperiMentor)\
**Post date:** [January 14, 2021, 10:34pm UTC](https://forums.pimoroni.com/t/enviro-one-line-install-script-is-broken/15860/3 "2021-01-14T22:34:05Z")

</div>

Thank you. Are there similar for UART and PMS5003 drivers?

Because of an unrelated problem, I ended up going back to a previous Raspberry OS build, which does not have this problem.

The script then throws an error for something that even I can see is mismatched parentheses:

file \_sounddevice.py (for module \_sounddevice) not found  
File “build/bdist.linux-armv7l/egg/sounddevice.py”, line 2377  
repr(list(conversion\_dict))) from e  
^  
SyntaxError: invalid syntax

---

<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:** [January 15, 2021, 10:02am UTC](https://forums.pimoroni.com/t/enviro-one-line-install-script-is-broken/15860/4 "2021-01-15T10:02:53Z")

</div>

I’m just going to the Breakout section of Pimoroni  
[Breakout Garden – Pimoroni](https://shop.pimoroni.com/collections/breakout-garden)  
And following the links of each individual item to its Github page. The Enviro+ installer just does them all for you in one go.

For the ADS its  
`sudo pip install ads1015`  
`sudo pip3 install ads1015`  
[pimoroni/ads1015-python: Python library for the Pimoroni ADS1015 breakout (github.com)](https://github.com/pimoroni/ads1015-python)

And for the PMS its  
`sudo pip install pms5003`  
`sudo pip3 install pms5003`  
[pimoroni/pms5003-python: Python library for the PMS5003 particulate sensor (github.com)](https://github.com/pimoroni/pms5003-python)

I don’t know if you need to do pip and pip 3, as far as I know doing both doesn’t hurt anything.
