You are not logged in.

#1 2021-12-14 23:52:25

unkn8wn
Member
Registered: 2021-12-14
Posts: 2

[SOLVED] Python3 and pip error

Hello,
I am working from a fresh arch linux install however I am cannot seem to install any python3 packages through pip. It does not matter if I am using a venv or the system installation, the same error persists. Any help would be appreciated.

python3 --version 3.10.1
pip --version 21.3.1

output of command - python3 -m pip install --user RPi.GPIO
https://pastebin.com/3aLQ7zHn

Last edited by unkn8wn (2021-12-15 00:22:06)

Offline

#2 2021-12-14 23:58:31

zpg443
Member
Registered: 2016-12-03
Posts: 303

Re: [SOLVED] Python3 and pip error

[deleted]

Last edited by zpg443 (2021-12-15 00:09:38)

Offline

#3 2021-12-15 00:06:13

loqs
Member
Registered: 2014-03-06
Posts: 18,645

Re: [SOLVED] Python3 and pip error

https://sourceforge.net/p/raspberry-gpi … 50/#diff-1 so you need 0.7.1a2 alpha pre-release or newer.  No stable release with the fix has been released.

Offline

#4 2021-12-15 00:20:34

unkn8wn
Member
Registered: 2021-12-14
Posts: 2

Re: [SOLVED] Python3 and pip error

Thank you Ioqs, I will mark this problem as solved. In the interest of learning to solve problems myself I wonder if you might enlighten me as to how you where able to analyze and solve the problem especially in such a timely manner!

Offline

#5 2021-12-15 00:31:21

loqs
Member
Registered: 2014-03-06
Posts: 18,645

Re: [SOLVED] Python3 and pip error

From the log you provided

  /usr/bin/ld: build/temp.linux-x86_64-3.10/source/constants.o:/tmp/pip-install-lkj2l815/rpi-gpio_c99af3706ec347e28f204db5e39fb43d/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-x86_64-3.10/source/common.o:/tmp/pip-install-lkj2l815/rpi-gpio_c99af3706ec347e28f204db5e39fb43d/source/common.h:41: first defined here

I know that is an issue caused by a change of defaults with gcc 10.  A search engine query for "gcc error 'multiple definition of'" produces results that should lead you to discover that as well.
https://pypi.org/project/RPi.GPIO/ -> https://sourceforge.net/projects/raspberry-gpio-python/ -> code -> history and find a commit helpfully labeled 'Fix build using GCC 10'.

Offline

Board footer

Powered by FluxBB