Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INSTALL.sh throws error from requirements.tx #116

Closed
ozarchie opened this issue Jun 27, 2017 · 1 comment
Closed

INSTALL.sh throws error from requirements.tx #116

ozarchie opened this issue Jun 27, 2017 · 1 comment

Comments

@ozarchie
Copy link
Contributor

I am updating my raspi3 version of smart_module and ran INSTALL.sh to check that all requirements were up-to-date.

Running INSTALL caused the following error which appears to be related to the following issue:
pypa/pip#4022

pi@raspberrypi:~/git/hapi/src/smart_module $ ./INSTALL.sh 
Requirement already satisfied (use --upgrade to upgrade): virtualenv in /usr/local/lib/python2.7/dist-packages
Cleaning up...
New python executable in /home/pi/git/hapi/src/smart_module/env/bin/python
Installing setuptools, pip, wheel...done.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
Collecting appdirs==1.4.3 (from -r requirements.txt (line 1))
  Using cached appdirs-1.4.3-py2.py3-none-any.whl
Collecting certifi==2017.4.17 (from -r requirements.txt (line 2))
  Using cached certifi-2017.4.17-py2.py3-none-any.whl
Collecting chardet==3.0.3 (from -r requirements.txt (line 3))
  Using cached chardet-3.0.3-py2.py3-none-any.whl
Collecting enum-compat==0.0.2 (from -r requirements.txt (line 4))
  Using cached enum-compat-0.0.2.tar.gz
Collecting enum34==1.1.6 (from -r requirements.txt (line 5))
  Using cached enum34-1.1.6-py2-none-any.whl
Collecting idna==2.5 (from -r requirements.txt (line 6))
  Using cached idna-2.5-py2.py3-none-any.whl
Collecting influxdb==4.1.0 (from -r requirements.txt (line 7))
  Using cached influxdb-4.1.0-py2.py3-none-any.whl
Collecting netifaces==0.10.4 (from -r requirements.txt (line 8))
  Using cached netifaces-0.10.4.tar.gz
Collecting packaging==16.8 (from -r requirements.txt (line 9))
  Using cached packaging-16.8-py2.py3-none-any.whl
Collecting paho-mqtt==1.2.3 (from -r requirements.txt (line 10))
  Using cached paho-mqtt-1.2.3.tar.gz

Collecting pkg-resources==0.0.0 (from -r requirements.txt (line 11))
Could not find a version that satisfies the requirement pkg-resources==0.0.0 (from -r requirements.txt (line 11)) (from versions: )
No matching distribution found for pkg-resources==0.0.0 (from -r requirements.txt (line 11))
--2017-06-27 17:50:39--

https://raw.githubusercontent.com/switchdoclabs/RTC_SDL_DS3231/master/SDL_DS3231.py
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.28.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.28.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8782 (8.6K) [text/plain]
Saving to: ‘SDL_DS3231.py.5’

SDL_DS3231.py.5                    100%[=================================================================>]   8.58K  --.-KB/s   in 0.007s 

2017-06-27 17:50:40 (1.13 MB/s) - ‘SDL_DS3231.py.5’ saved [8782/8782]

pi@raspberrypi:~/git/hapi/src/smart_module $ 

Commenting out the line allows the INSTALL to succeed, but at what cost?

pi@raspberrypi:~/git/hapi/src/smart_module $ ./INSTALL.sh 
Requirement already satisfied (use --upgrade to upgrade): virtualenv in /usr/local/lib/python2.7/dist-packages
Cleaning up...
New python executable in /home/pi/git/hapi/src/smart_module/env/bin/python
Installing setuptools, pip, wheel...done.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
Collecting appdirs==1.4.3 (from -r requirements.txt (line 1))
  Using cached appdirs-1.4.3-py2.py3-none-any.whl
Collecting certifi==2017.4.17 (from -r requirements.txt (line 2))
  Using cached certifi-2017.4.17-py2.py3-none-any.whl
Collecting chardet==3.0.3 (from -r requirements.txt (line 3))
  Using cached chardet-3.0.3-py2.py3-none-any.whl
Collecting enum-compat==0.0.2 (from -r requirements.txt (line 4))
  Using cached enum-compat-0.0.2.tar.gz
Collecting enum34==1.1.6 (from -r requirements.txt (line 5))
  Using cached enum34-1.1.6-py2-none-any.whl
Collecting idna==2.5 (from -r requirements.txt (line 6))
  Using cached idna-2.5-py2.py3-none-any.whl
Collecting influxdb==4.1.0 (from -r requirements.txt (line 7))
  Using cached influxdb-4.1.0-py2.py3-none-any.whl
Collecting netifaces==0.10.4 (from -r requirements.txt (line 8))
  Using cached netifaces-0.10.4.tar.gz
Collecting packaging==16.8 (from -r requirements.txt (line 9))
  Using cached packaging-16.8-py2.py3-none-any.whl
Collecting paho-mqtt==1.2.3 (from -r requirements.txt (line 10))
  Using cached paho-mqtt-1.2.3.tar.gz
Collecting psutil==5.2.2 (from -r requirements.txt (line 12))
  Downloading psutil-5.2.2.tar.gz (348kB)
    100% |████████████████████████████████| 358kB 461kB/s 
Collecting pyparsing==2.2.0 (from -r requirements.txt (line 13))
  Downloading pyparsing-2.2.0-py2.py3-none-any.whl (56kB)
    100% |████████████████████████████████| 61kB 1.1MB/s 
Collecting python-dateutil==2.6.0 (from -r requirements.txt (line 14))
  Downloading python_dateutil-2.6.0-py2.py3-none-any.whl (194kB)
    100% |████████████████████████████████| 194kB 33kB/s 
Collecting pytz==2017.2 (from -r requirements.txt (line 15))
  Downloading pytz-2017.2-py2.py3-none-any.whl (484kB)
    100% |████████████████████████████████| 491kB 440kB/s 
Collecting requests==2.16.5 (from -r requirements.txt (line 16))
  Downloading requests-2.16.5-py2.py3-none-any.whl (87kB)
    100% |████████████████████████████████| 92kB 1.1MB/s 
Collecting RPi.GPIO==0.6.3 (from -r requirements.txt (line 17))
  Downloading RPi.GPIO-0.6.3.tar.gz
Collecting schedule==0.4.2 (from -r requirements.txt (line 18))
  Downloading schedule-0.4.2-py2.py3-none-any.whl
Collecting six==1.10.0 (from -r requirements.txt (line 19))
  Downloading six-1.10.0-py2.py3-none-any.whl
Collecting urllib3==1.21.1 (from -r requirements.txt (line 20))
  Downloading urllib3-1.21.1-py2.py3-none-any.whl (131kB)
    100% |████████████████████████████████| 133kB 1.0MB/s 
Collecting zeroconf==0.19.0 (from -r requirements.txt (line 21))
  Downloading zeroconf-0.19.0-py2.py3-none-any.whl
Building wheels for collected packages: enum-compat, netifaces, paho-mqtt, psutil, RPi.GPIO
  Running setup.py bdist_wheel for enum-compat ... done
  Stored in directory: /home/pi/.cache/pip/wheels/cb/f2/00/7616514d23c84bf58b7e9d034cdb7ff92f1b93c08b6a21ca8b
  Running setup.py bdist_wheel for netifaces ... done
  Stored in directory: /home/pi/.cache/pip/wheels/42/b4/d9/cd4ae93303efc2ba3441a21e2f2d74a49e07a5be9012d01520
  Running setup.py bdist_wheel for paho-mqtt ... done
  Stored in directory: /home/pi/.cache/pip/wheels/f3/c1/ac/0d44a83f4672267263cd26d9efba6babebff13b7a5593e1fb7
  Running setup.py bdist_wheel for psutil ... done
  Stored in directory: /home/pi/.cache/pip/wheels/65/e8/6f/b3fa73e0b422fab906cd67e8446901b27c2769a29890151135
  Running setup.py bdist_wheel for RPi.GPIO ... done
  Stored in directory: /home/pi/.cache/pip/wheels/ae/4d/3b/e924997dbf06810adf3b2e37f1d9627b2327eb9cbb285949c9
Successfully built enum-compat netifaces paho-mqtt psutil RPi.GPIO
Installing collected packages: appdirs, certifi, chardet, enum34, enum-compat, idna, pytz, urllib3, requests, six, python-dateutil, influxdb, netifaces, pyparsing, packaging, paho-mqtt, psutil, RPi.GPIO, schedule, zeroconf
Successfully installed RPi.GPIO-0.6.3 appdirs-1.4.3 certifi-2017.4.17 chardet-3.0.3 enum-compat-0.0.2 enum34-1.1.6 idna-2.5 influxdb-4.1.0 netifaces-0.10.4 packaging-16.8 paho-mqtt-1.2.3 psutil-5.2.2 pyparsing-2.2.0 python-dateutil-2.6.0 pytz-2017.2 requests-2.16.5 schedule-0.4.2 six-1.10.0 urllib3-1.21.1 zeroconf-0.19.0
--2017-06-27 17:56:43--  https://raw.githubusercontent.com/switchdoclabs/RTC_SDL_DS3231/master/SDL_DS3231.py
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.28.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.28.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8782 (8.6K) [text/plain]
Saving to: ‘SDL_DS3231.py.6’

SDL_DS3231.py.6                    100%[=================================================================>]   8.58K  --.-KB/s   in 0.002s 

2017-06-27 17:56:43 (5.41 MB/s) - ‘SDL_DS3231.py.6’ saved [8782/8782]

@PedroSFreitas
Copy link
Contributor

PedroSFreitas commented Jun 27, 2017

Indeed, Archie.

I've noticed this behavior as well. If you check the dev branch, which will be merged into master by this weekend, you'll noticed it's already commented: https://github.com/mayaculpa/hapi/blob/dev/src/smart_module/requirements.txt

I would recommend you Archie to pull branch dev if you want to test something. It has the latest code running. I'm gonna push a few more changes by Friday night though.

The more "direct to the point" information I found about his was: https://stackoverflow.com/a/40167445. Saying that it shouldn't be a problem at all.

Since dev already has that line commented, I believe we can close this Issue, @ozarchie ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants