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

Installation failiure when running sudo python3 setup.py install #16

Open
Sheepy3 opened this issue Dec 7, 2023 · 7 comments
Open

Installation failiure when running sudo python3 setup.py install #16

Sheepy3 opened this issue Dec 7, 2023 · 7 comments

Comments

@Sheepy3
Copy link

Sheepy3 commented Dec 7, 2023

sudo python3 setup.py install returns

/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:146: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running bdist_egg
running egg_info
creating wiringpi.egg-info
writing wiringpi.egg-info/PKG-INFO
writing dependency_links to wiringpi.egg-info/dependency_links.txt
writing top-level names to wiringpi.egg-info/top_level.txt
writing manifest file 'wiringpi.egg-info/SOURCES.txt'
file wiringpi.py (for module wiringpi) not found
reading manifest file 'wiringpi.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'wiringpi.py'
warning: no files found matching 'wiringpi_wrap.c'
adding license file 'LICENSE.txt'
writing manifest file 'wiringpi.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-aarch64/egg
running install_lib
running build_py
running build_ext
building '_wiringpi' extension
swigging wiringpi.i to wiringpi_wrap.c
swig -python -threads -o wiringpi_wrap.c wiringpi.i
creating build
creating build/temp.linux-aarch64-cpython-311
creating build/temp.linux-aarch64-cpython-311/wiringOP
creating build/temp.linux-aarch64-cpython-311/wiringOP/devLib
creating build/temp.linux-aarch64-cpython-311/wiringOP/wiringPi
aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -IwiringOP -IwiringOP/wiringPi -IwiringOP/devLib -I/usr/include/python3.11 -c fixUndefFunc.c -o build/temp.linux-aarch64-cpython-311/fixUndefFunc.o "" -DCONFIG_ORANGEPI
aarch64-linux-gnu-gcc: warning: : linker input file unused because linking not done
aarch64-linux-gnu-gcc: error: : linker input file not found: No such file or directory
error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1```
@faab-dev
Copy link

faab-dev commented Feb 1, 2024

Same problem Orange Pi Zero 3 (Orange Pi 1.0.2 Jammy with Linux 6.1.31-sun50iw)

@ArseniyZh
Copy link

Exactly the same. Have you found a solution?
@Sheepy3

@Sheepy3
Copy link
Author

Sheepy3 commented Feb 22, 2024

nope. still looking for one.

@maximilianoteruel
Copy link

I found the solution... It is necessary fix board name on the setup.py... a quick fix is to add this line:

BOARD = "orangepizero2-h616"

The orange pi zero 3 has the same pinout as the orange pi zero 2

@alkopit
Copy link

alkopit commented Jul 30, 2024

Exactly the same.
root@DietPi:~/wiringOP-Python# sudo python3 setup.py install running install /usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( /usr/lib/python3/dist-packages/setuptools/command/easy_install.py:146: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. warnings.warn( running bdist_egg running egg_info writing wiringpi.egg-info/PKG-INFO writing dependency_links to wiringpi.egg-info/dependency_links.txt writing top-level names to wiringpi.egg-info/top_level.txt reading manifest file 'wiringpi.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE.txt' writing manifest file 'wiringpi.egg-info/SOURCES.txt' installing library code to build/bdist.linux-aarch64/egg running install_lib running build_py running build_ext building '_wiringpi' extension swigging wiringpi.i to wiringpi_wrap.c swig -python -threads -o wiringpi_wrap.c wiringpi.i aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -IwiringOP -IwiringOP/wiringPi -IwiringOP/devLib -I/usr/include/python3.11 -c fixUndefFunc.c -o build/temp.linux-aarch64-cpython-311/fixUndefFunc.o "" -DCONFIG_ORANGEPI aarch64-linux-gnu-gcc: warning: : linker input file unused because linking not done aarch64-linux-gnu-gcc: error: : linker input file not found: No such file or directory error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1

@init-zey
Copy link

init-zey commented Oct 8, 2024

for orangepi zero3, add line EXTRA_CFLAGS = "-DCONFIG_ORANGEPI_ZERO2"

@Crazy-Child
Copy link

same problem for zero 2w. how can you solve?

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

7 participants