orangepi-xunlong / wiringOP-Python

GNU Lesser General Public License v3.0
57 stars 32 forks source link

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

Open Sheepy3 opened 9 months ago

Sheepy3 commented 9 months ago

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 commented 7 months ago

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

ArseniyZh commented 6 months ago

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

Sheepy3 commented 6 months ago

nope. still looking for one.

maximilianoteruel commented 5 months ago

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 commented 1 month ago

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