node-red / node-red/node-red-nodes

node-red-node-pi-gpio debian GPIO package install error

Open
#837 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
612
Avg merge
13h 57m
Merged PRs (30d)
3

Description

Which node are you reporting an issue on?

node-red-node-pi-gpio

What are the steps to reproduce?

Installing Gpio package (debian11):
sudo apt-get install python-pip python-dev
sudo pip install RPi.GPIO

What happens?

I get error message at command: 'sudo pip install RPi.GPIO' :
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop sup port for Python 2.7 in January 2021. More details about Python 2 support in pip c an be found at https://pip.pypa.io/en/latest/development/release-process/#python- 2-support pip 21.0 will remove support for this functionality.
Collecting RPi.GPIO
Using cached RPi.GPIO-0.7.0.tar.gz (30 kB)
Building wheels for collected packages: RPi.GPIO
Building wheel for RPi.GPIO (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python2 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-azn2eG/rpi-gpio/setup.py'"'"'; file='"'"'/tmp/pip-in stall-azn2eG/rpi-gpio/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(f ile);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile ..............

What do you expect to happen?

Run install without error

Please tell us about your environment:
  • Node-RED version: 2.0.6
  • node.js version: 16.10.0
  • npm version: 7.24.1
  • Platform/OS: debian 11 (bullseye)
  • Browser: Chome

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the node-red-node-pi-gpio installation on Debian 11 with the listed apt-get and pip commands. Capture the complete RPi.GPIO setup.py error, since the report truncates the failure and names no source file or test. Done means the GPIO package installs without error in the reported environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, python
Domain
cli, embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.