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

Unable to install dependencies #2

Open
engkad opened this issue Jul 20, 2021 · 4 comments
Open

Unable to install dependencies #2

engkad opened this issue Jul 20, 2021 · 4 comments

Comments

@engkad
Copy link

engkad commented Jul 20, 2021

I was able to get everything up to nodered by following the guide with Raspbian Jessie:

  • Used "python2.7" package
  • Found from this guide that php works when set to "5", also using raspi-config to enable camera
  • The nodered script returns a new script that seems to not support Jessie anymore.

I tried with Buster in case it might work but:

  • Adafruit GPIO gives invalid syntax error

Any help getting this to work would be greatly appreciated!

@engkad
Copy link
Author

engkad commented Aug 5, 2021

Have tried a few times with fresh installed Jessie and can't seem to get anything working, I've found that you need to install setuptools==44.1.1 as it was the last version supported in python 2.7, but I haven't been able to get Adafruit GPIO working with that, getting this error:

Adafruit GPIO Library
Works best with Python 2.7
THIS INSTALL SCRIPT MAY REQUIRE ROOT/ADMIN PERMISSIONS
Especially if you installed python for "all users" on Windows

try the following in your systems terminal if ensurepip is not sufficient:
$ python -m ensurepip --upgrade
$ python -m pip install --upgrade pip setuptools
running install
running bdist_egg
running egg_info
writing requirements to Adafruit_GPIO.egg-info/requires.txt
writing Adafruit_GPIO.egg-info/PKG-INFO
writing top-level names to Adafruit_GPIO.egg-info/top_level.txt
writing dependency_links to Adafruit_GPIO.egg-info/dependency_links.txt
reading manifest file 'Adafruit_GPIO.egg-info/SOURCES.txt'
writing manifest file 'Adafruit_GPIO.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv6l/egg
running install_lib
running build_py
creating build/bdist.linux-armv6l/egg
creating build/bdist.linux-armv6l/egg/tests
copying build/lib.linux-armv6l-2.7/tests/test_Platform.py -> build/bdist.linux-armv6l/egg/tests
copying build/lib.linux-armv6l-2.7/tests/test_SPI.py -> build/bdist.linux-armv6l/egg/tests
copying build/lib.linux-armv6l-2.7/tests/test_I2C.py -> build/bdist.linux-armv6l/egg/tests
copying build/lib.linux-armv6l-2.7/tests/MockGPIO.py -> build/bdist.linux-armv6l/egg/tests
copying build/lib.linux-armv6l-2.7/tests/test_PWM.py -> build/bdist.linux-armv6l/egg/tests
copying build/lib.linux-armv6l-2.7/tests/test_GPIO.py -> build/bdist.linux-armv6l/egg/tests
copying build/lib.linux-armv6l-2.7/tests/__init__.py -> build/bdist.linux-armv6l/egg/tests
creating build/bdist.linux-armv6l/egg/Adafruit_GPIO
copying build/lib.linux-armv6l-2.7/Adafruit_GPIO/MCP230xx.py -> build/bdist.linux-armv6l/egg/Adafruit_GPIO
copying build/lib.linux-armv6l-2.7/Adafruit_GPIO/PCF8574.py -> build/bdist.linux-armv6l/egg/Adafruit_GPIO
copying build/lib.linux-armv6l-2.7/Adafruit_GPIO/SPI.py -> build/bdist.linux-armv6l/egg/Adafruit_GPIO
copying build/lib.linux-armv6l-2.7/Adafruit_GPIO/GPIO.py -> build/bdist.linux-armv6l/egg/Adafruit_GPIO
copying build/lib.linux-armv6l-2.7/Adafruit_GPIO/FT232H.py -> build/bdist.linux-armv6l/egg/Adafruit_GPIO
copying build/lib.linux-armv6l-2.7/Adafruit_GPIO/Platform.py -> build/bdist.linux-armv6l/egg/Adafruit_GPIO
copying build/lib.linux-armv6l-2.7/Adafruit_GPIO/PCA95xx.py -> build/bdist.linux-armv6l/egg/Adafruit_GPIO
copying build/lib.linux-armv6l-2.7/Adafruit_GPIO/PWM.py -> build/bdist.linux-armv6l/egg/Adafruit_GPIO
copying build/lib.linux-armv6l-2.7/Adafruit_GPIO/__init__.py -> build/bdist.linux-armv6l/egg/Adafruit_GPIO
copying build/lib.linux-armv6l-2.7/Adafruit_GPIO/I2C.py -> build/bdist.linux-armv6l/egg/Adafruit_GPIO
byte-compiling build/bdist.linux-armv6l/egg/tests/test_Platform.py to test_Platform.pyc
byte-compiling build/bdist.linux-armv6l/egg/tests/test_SPI.py to test_SPI.pyc
byte-compiling build/bdist.linux-armv6l/egg/tests/test_I2C.py to test_I2C.pyc
byte-compiling build/bdist.linux-armv6l/egg/tests/MockGPIO.py to MockGPIO.pyc
byte-compiling build/bdist.linux-armv6l/egg/tests/test_PWM.py to test_PWM.pyc
byte-compiling build/bdist.linux-armv6l/egg/tests/test_GPIO.py to test_GPIO.pyc
byte-compiling build/bdist.linux-armv6l/egg/tests/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-armv6l/egg/Adafruit_GPIO/MCP230xx.py to MCP230xx.pyc
byte-compiling build/bdist.linux-armv6l/egg/Adafruit_GPIO/PCF8574.py to PCF8574.pyc
byte-compiling build/bdist.linux-armv6l/egg/Adafruit_GPIO/SPI.py to SPI.pyc
byte-compiling build/bdist.linux-armv6l/egg/Adafruit_GPIO/GPIO.py to GPIO.pyc
byte-compiling build/bdist.linux-armv6l/egg/Adafruit_GPIO/FT232H.py to FT232H.pyc
byte-compiling build/bdist.linux-armv6l/egg/Adafruit_GPIO/Platform.py to Platform.pyc
byte-compiling build/bdist.linux-armv6l/egg/Adafruit_GPIO/PCA95xx.py to PCA95xx.pyc
byte-compiling build/bdist.linux-armv6l/egg/Adafruit_GPIO/PWM.py to PWM.pyc
byte-compiling build/bdist.linux-armv6l/egg/Adafruit_GPIO/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-armv6l/egg/Adafruit_GPIO/I2C.py to I2C.pyc
creating build/bdist.linux-armv6l/egg/EGG-INFO
copying Adafruit_GPIO.egg-info/PKG-INFO -> build/bdist.linux-armv6l/egg/EGG-INFO
copying Adafruit_GPIO.egg-info/SOURCES.txt -> build/bdist.linux-armv6l/egg/EGG-INFO
copying Adafruit_GPIO.egg-info/dependency_links.txt -> build/bdist.linux-armv6l/egg/EGG-INFO
copying Adafruit_GPIO.egg-info/requires.txt -> build/bdist.linux-armv6l/egg/EGG-INFO
copying Adafruit_GPIO.egg-info/top_level.txt -> build/bdist.linux-armv6l/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/Adafruit_GPIO-1.0.4-py2.7.egg' and adding 'build/bdist.linux-armv6l/egg' to it
removing 'build/bdist.linux-armv6l/egg' (and everything under it)
Processing Adafruit_GPIO-1.0.4-py2.7.egg
Removing /usr/local/lib/python2.7/dist-packages/Adafruit_GPIO-1.0.4-py2.7.egg
Copying Adafruit_GPIO-1.0.4-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adafruit-GPIO 1.0.4 is already the active version in easy-install.pth

Installed /usr/local/lib/python2.7/dist-packages/Adafruit_GPIO-1.0.4-py2.7.egg
Processing dependencies for Adafruit-GPIO==1.0.4
Searching for adafruit-pureio
Reading https://pypi.org/simple/adafruit-pureio/
Downloading https://files.pythonhosted.org/packages/df/ca/9162d4648669d12af16d5a66d808bdef6967eb684cbed9b1a3ebc19b361a/Adafruit_PureIO-1.1.9.tar.gz#sha256=2caf22fb07c7f771d83267f331a76cde314723f884a9570ea6f768730c87a879
Best match: Adafruit-PureIO 1.1.9
Processing Adafruit_PureIO-1.1.9.tar.gz
Writing /tmp/easy_install-6CoKeV/Adafruit_PureIO-1.1.9/setup.cfg
Running Adafruit_PureIO-1.1.9/setup.py -q bdist_egg --dist-dir /tmp/easy_install-6CoKeV/Adafruit_PureIO-1.1.9/egg-dist-tmp-wYX7C8

Usage:   
  /usr/bin/python -m pip <command> [options]

no such option: --disable-pip-version-check
error: Command '['/usr/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/easy_install-6CoKeV/Adafruit_PureIO-1.1.9/temp/tmpgewQQP', '--quiet', 'setuptools_scm']' returned non-zero exit status 2

@BPouet
Copy link

BPouet commented Oct 27, 2021

I confirm.
I tried with Buster and get the same adafruit GPIO problem (invalid syntax)
With adafruit Blinka same thing.
Except that everything seems ok.
I'll let you know if I find a workaround.

@engkad
Copy link
Author

engkad commented Oct 29, 2021

Sounds good. I wish I knew enough to get this working with more recent libraries but I have no clue.

@BPouet
Copy link

BPouet commented Oct 29, 2021

I did lots of test with Jessie and I tried multiple version of python (2.7.X) and was not able to make it works.
You really need a very specific old version to make it happen.
With Buster I was able to make everything works except the BMP280.
The last thing I had to do was finding a python 3 that would work with the correct library and ajdust it.
You could try that. Look at the bottom for python with PI

https://learn.adafruit.com/adafruit-bme280-humidity-barometric-pressure-temperature-sensor-breakout?view=all

Also, this guy made an more up to date version but more expensive.
https://github.com/johnjones4/white-vest

Cheers!

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