Enviro pHAT installation error

Good afternoon,

After confirmation from Sandy a wider audience is perhaps needed for this one.

Any guidance is appreciated. Thanks

Background, it’s a fresh install of Jessie, updated as of today on a Pi Zero 1.3 fitted with the Enviro pHAT

After following the below command it falls over toward the end.

curl https://get.pimoroni.com/envirophat | bash

It’s all fine until the end:

pi@raspberrypi:~ $ sudo curl -sS https://get.pimoroni.com/envirophat | bash
This script will install everything needed to use
Enviro pHAT
--- Warning ---
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 -sS get.pimoroni.com/envirophat
Note: Enviro pHAT requires I2C communication
Do you wish to continue? [y/N] y
Checking hardware requirements...
I2C Already Enabled
Done!
Checking install requirements...
Done!
Checking for Python 2 library...
Found!
Python 2 module found. Reinstall/Update? [y/N] y
Collecting envirophat
Installing collected packages: envirophat
Successfully installed envirophat-0.0.4
Done!
Checking for Python 3 library...
Traceback (most recent call last):
  File "/usr/bin/pip3", line 9, in <module>
    load_entry_point('pip==1.5.6', 'console_scripts', 'pip3')()
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 356, in load_entr                                                                                                                                                             y_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2476, in load_ent                                                                                                                                                             ry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2190, in load
    ['__name__'])
  File "/usr/lib/python3/dist-packages/pip/__init__.py", line 74, in <module>
    from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File "/usr/lib/python3/dist-packages/pip/vcs/mercurial.py", line 9, in <module                                                                                                                                                             >
    from pip.download import path_to_url
  File "/usr/lib/python3/dist-packages/pip/download.py", line 25, in <module>
    from requests.compat import IncompleteRead
ImportError: cannot import name 'IncompleteRead'
Installing Enviro pHAT library for Python 3...
Traceback (most recent call last):
  File "/usr/bin/pip3", line 9, in <module>
    load_entry_point('pip==1.5.6', 'console_scripts', 'pip3')()
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 356, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2476, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2190, in load
    ['__name__'])
  File "/usr/lib/python3/dist-packages/pip/__init__.py", line 74, in <module>
    from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File "/usr/lib/python3/dist-packages/pip/vcs/mercurial.py", line 9, in <module>
    from pip.download import path_to_url
  File "/usr/lib/python3/dist-packages/pip/download.py", line 25, in <module>
    from requests.compat import IncompleteRead
ImportError: cannot import name 'IncompleteRead'
Python 3 library install failed!
If problems persist, visit forums.pimoroni.com for support
pi@raspberrypi:~ $

I suspected that you’d be the one who could help Pete out, @RogueM!

1 Like

that sounds very much like a temporary glitch with the PyPi repo.

… you should be able to use python 2 in the interim, though I suspect none of the examples were copied, so I’d try again in an hour or so and hopefully all will be fine then.

Hi @RogueM, thanks for the reply.

I’ll try again later on. i copied down the repo’s and the 3 examples do work so it seems so far it’s all working.

I also did the same for the blinkt install, though again it hung up on the installation of the python3 stuff.

Thanks.
Pete

yes, not happening here right now, but it could very well be location dependent… I’ve had that sort of problems myself before, unfortunately it’s out of our control :(

No worries, thanks for having a gander and hopefully it is just down to 3rd party problems.

Will try again, if and when it works i’ll post my findings.

Cheers.

PyPi seems to be having a bad day, I keep getting server errors when I push new packages, and the website takes an age to load.

1 Like

Seems it’s still not working when i try and run the install scripts.

Having fun using it though.

Have got it spitting out the temperature to my Xively account now to.

Out of interest has anyone found there to be a lot of ambient heat around the sensor? I’m going to fit a 20 pin ribbon cable to extend the distance to see what figure it gives me.

Also ordered some TMP36’s to add an analogue temperature reading too.