pyskell / slouchy

Slouchy uses your webcam to check if you're slouching and alert you if you are.
GNU General Public License v3.0
797 stars 47 forks source link

Installation issues on Mint #4

Closed r0fls closed 8 years ago

r0fls commented 8 years ago

I get the following error when following the installation instructions on Mint:

r0fls@platformpi ~/Desktop/code/slouchy $ pip install -r requirements.txt
Downloading/unpacking configobj==5.0.6 (from -r requirements.txt (line 1))
Downloading configobj-5.0.6.tar.gz
Running setup.py (path:/tmp/pip_build_r0fls/configobj/setup.py) egg_info for package configobj

Downloading/unpacking configparser==3.3.0.post2 (from -r requirements.txt (line 2))
Could not find a version that satisfies the requirement configparser==3.3.0.post2 (from -r requirements.txt (line 2)) (from versions: 3.2.0r1, 3.2.0r2, 3.2.0r3, 3.3.0r1, 3.3.0r2, 3.5.0b1, 3.5.0b2)
Cleaning up...
No distributions matching the version for configparser==3.3.0.post2 (from -r requirements.txt (line 2))
Storing debug log for failure in /tmp/tmp2PxbD7

I tried changing configparser==3.3.0.post2 to configparser>=3.3.0 and it got further but still failed. What am I doing wrong? I'm on Mint 17.1.

pyskell commented 8 years ago

Are you using Python 2.7? I've targeted it because it's what OpenCV2 uses.

Python 3 won't work.

This is a bug in the README though, will fix to specify 2.7. On Oct 12, 2015 7:44 PM, "Raphael" notifications@github.com wrote:

I get the following error when following the installation instructions on Mint:

r0fls@platformpi ~/Desktop/code/slouchy $ pip install -r requirements.txt Downloading/unpacking configobj==5.0.6 (from -r requirements.txt (line 1)) Downloading configobj-5.0.6.tar.gz Running setup.py (path:/tmp/pip_build_r0fls/configobj/setup.py) egg_info for package configobj

Downloading/unpacking configparser==3.3.0.post2 (from -r requirements.txt (line 2)) Could not find a version that satisfies the requirement configparser==3.3.0.post2 (from -r requirements.txt (line 2)) (from versions: 3.2.0r1, 3.2.0r2, 3.2.0r3, 3.3.0r1, 3.3.0r2, 3.5.0b1, 3.5.0b2) Cleaning up... No distributions matching the version for configparser==3.3.0.post2 (from -r requirements.txt (line 2)) Storing debug log for failure in /tmp/tmp2PxbD7

I tried changing configparser==3.3.0.post2 to configparser>=3.3.0 and it got further but still failed. What am I doing wrong? I'm on Mint 17.1.

— Reply to this email directly or view it on GitHub https://github.com/pyskell/slouchy/issues/4.

r0fls commented 8 years ago

Turns out I am using Python 2.7 and pip for 2.7, so I'm still not sure why it won't install...

r0fls@platformpi ~ $ pip -V
pip 1.5.4 from /usr/lib/python2.7/dist-packages (python 2.7)
...
r0fls@platformpi ~ $ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 
r0fls commented 8 years ago

Hmm. OK, I explicitly installed cv2 using sudo pip install cv2. It still didn't work, but then I changed configparser==3.3.0.post2 to configparser>=3.3.0 and it installed after all that. Not sure why...

pyskell commented 8 years ago

That's odd, perhaps that version is gone.

Will test and adjust requirements.txt for this. On Oct 12, 2015 8:10 PM, "Raphael" notifications@github.com wrote:

Hmm. OK, I explicitly installed cv2 using sudo pip install cv2. It still didn't work, but then I changed configparser==3.3.0.post2 to configparser>=3.3.0 and it installed after all that. Not sure why...

— Reply to this email directly or view it on GitHub https://github.com/pyskell/slouchy/issues/4#issuecomment-147553585.

13rac1 commented 8 years ago

configparser==3.3.0.post2 Doesn't exist any more. I just had the same issue.

r0fls commented 8 years ago

:100:

pyskell commented 8 years ago

Adjusted to use most recent version of configparser.