Error building python packages that uses setuptools
Hi,
I'm trying to build python-serial and python-pymysql, both of them use setuptools to install.
After running make the build fails with the following error:
Quoted 1 line
Quoted 1 line
Quoted 1 line
python-pymysql 0.7.2 Installing to target
(cd /home/dev/buildroot/output/build/python-pymysql-0.7.2//; PATH="/home/dev/buildroot/output/host/bin:/home/dev/buildroot/output/host/sbin:/home/dev/buildroot/output/host/usr/bin:/home/dev/buildroot/output/host/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games" PYTHONPATH="/home/dev/buildroot/output/target/usr/lib/python2.7/sysconfigdata/:/home/dev/buildroot/output/target/usr/lib/python2.7/site-packages/" _python_sysroot=/home/dev/buildroot/output/host/usr/arm-buildroot-linux-gnueabi/sysroot
_python_prefix=/usr _python_exec_prefix=/usr/home/dev/buildroot/output/host/usr/bin/python setup.py install --no-compile
--prefix=/home/dev/buildroot/output/target/usr --executable=/usr/bin/python
--single-version-externally-managed --root=/ )
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: option --executable not recognized package/pkg-generic.mk:282: fallo en las instrucciones para el objetivo '/home/dev/buildroot/output/build/python-pymysql-0.7.2/.stamp_target_installed'
make: *** [/home/dev/buildroot/output/build/python-pymysql-0.7.2/.stamp_target_installed] Error 1
I searched for the files related to setuptools installation and none of the path containing those files are passed as arguments
to the packages failing to build.
I think that either the host-python-setup installation went wrong or that the arguments used for the built are wrong.
I'm no expert in buildroot, so I ask for help.
$ find output/ -name 'install_scripts.*' output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/python2.7/distutils/command/install_scripts.py output/host/usr/lib/python2.7/distutils/command/install_scripts.py output/host/usr/lib/python2.7/distutils/command/install_scripts.pyc output/build/host-python-2.7.12/Lib/distutils/command/install_scripts.py output/build/host-python-2.7.12/Lib/distutils/command/install_scripts.pyc *output/build/host-python-setuptools-18.7.1/setuptools/command/install_scripts.py output/build/host-python-setuptools-18.7.1/setuptools/command/install_scripts.pyc output/build/host-python-setuptools-18.7.1/build/lib/setuptools/command/install_scripts.py* output/build/python-2.7.12/Lib/distutils/command/install_scripts.py output/build/python-2.7.12/Lib/distutils/command/install_scripts.pyc output/target/usr/lib/python2.7/distutils/command/install_scripts.py
--
View this message in context: http://buildroot-busybox.2317881.n4.nabble.com/Error-building-python-packages-that-uses-setuptools-tp145834.html
Sent from the Buildroot (busybox) mailing list archive at Nabble.com.
Hi,
Quoted 35 lines · totoxa
Hi,
I'm trying to build python-serial and python-pymysql, both of them use setuptools to install.
After running make the build fails with the following error:Quoted 1 line
Quoted 1 line
Quoted 1 line
python-pymysql 0.7.2 Installing to target
(cd
/home/dev/buildroot/output/build/python-pymysql-0.7.2//; PATH="/home/dev/buildroot/output/host/bin:/home/dev/buildroot/output/host/sbin:/home/dev/buildroot/output/host/usr/bin:/home/dev/buildroot/output/host/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games" PYTHONPATH="/home/dev/buildroot/output/target/usr/lib/python2.7/sysconfigdata/:/home/dev/buildroot/output/target/usr/lib/python2.7/site-packages/" _python_sysroot=/home/dev/buildroot/output/host/usr/arm-buildroot-linux-gnueabi/sysroot
_python_prefix=/usr _python_exec_prefix=/usr/home/dev/buildroot/output/host/usr/bin/pythonsetup.pyinstall --no-compile
--prefix=/home/dev/buildroot/output/target/usr --executable=/usr/bin/python
--single-version-externally-managed --root=/ )
usage:setup.py[global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or:setup.py--help [cmd1 cmd2 ...]
or:setup.py--help-commands
or:setup.pycmd --helperror: option --executable not recognized
package/pkg-generic.mk:282: fallo en las instrucciones para el objetivo '/home/dev/buildroot/output/build/python-pymysql-0.7.2/.stamp_target_installed'
make: *** [/home/dev/buildroot/output/build/python-pymysql-0.7.2/.stamp_target_installed] Error 1I searched for the files related to setuptools installation and none of the path containing those files are passed as arguments
to the packages failing to build.
I think that either the host-python-setup installation went wrong or that the arguments used for the built are wrong.
I'm no expert in buildroot, so I ask for help.
Quoted 12 lines
$ find output/ -name 'install_scripts.*' output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/python2.7/distutils/command/install_scripts.py output/host/usr/lib/python2.7/distutils/command/install_scripts.py output/host/usr/lib/python2.7/distutils/command/install_scripts.pyc output/build/host-python-2.7.12/Lib/distutils/command/install_scripts.py output/build/host-python-2.7.12/Lib/distutils/command/install_scripts.pyc *output/build/host-python-setuptools-18.7.1/setuptools/command/install_scripts.py output/build/host-python-setuptools-18.7.1/setuptools/command/install_scripts.pyc output/build/host-python-setuptools-18.7.1/build/lib/setuptools/command/install_scripts.py* output/build/python-2.7.12/Lib/distutils/command/install_scripts.py output/build/python-2.7.12/Lib/distutils/command/install_scripts.pyc output/target/usr/lib/python2.7/distutils/command/install_scripts.py
Have you already tried:
make clean && make
What BR version are you using?
Yegor
It was a version cloned about 2 hours ago (commit id ba16a7a...), just to try pulled the new commits with no results
Yes, while trying to fix the build I ran 'make clean' several times.
PD: I'm running Debian testing
El viernes, 23 de septiembre de 2016, Yegor Yefremov < [email protected]> escribi?:
Quoted 68 lines
Hi,
Quoted 9 lines · On Fri, Sep 23, 2016 at 7:38 AM, totoxa <[email protected]…
Hi,
I'm trying to build python-serial and python-pymysql, both of them use setuptools to install.
After running make the build fails with the following error:Quoted 1 line
Quoted 1 line
Quoted 1 line
python-pymysql 0.7.2 Installing to target
(cd
/home/dev/buildroot/output/build/python-pymysql-0.7.2//; PATH="/home/dev/buildroot/output/host/bin:/home/dev/buildroot/output/host/sbin:/home/dev/buildroot/output/ host/usr/bin:/home/dev/buildroot/output/host/usr/ sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
Quoted 1 line
PYTHONPATH="/home/dev/buildroot/output/target/usr/
lib/python2.7/sysconfigdata/:/home/dev/buildroot/output/ target/usr/lib/python2.7/site-packages/"
Quoted 1 line
_python_sysroot=/home/dev/buildroot/output/host/usr/arm-
buildroot-linux-gnueabi/sysroot
Quoted 2 lines
_python_prefix=/usr _python_exec_prefix=/usr
/home/dev/buildroot/output/host/usr/bin/pythonsetup.pyinstall--no-compile
Quoted 1 line
--prefix=/home/dev/buildroot/output/target/usr
--executable=/usr/bin/python
Quoted 9 lines
--single-version-externally-managed --root=/ )
usage:setup.py[global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or:setup.py--help [cmd1 cmd2 ...]
or:setup.py--help-commands
or:setup.pycmd --helperror: option --executable not recognized
package/pkg-generic.mk:282: fallo en las instrucciones para el objetivo '/home/dev/buildroot/output/build/python-pymysql-0.7.2/.
stamp_target_installed'Quoted 2 lines
make: *** [
/home/dev/buildroot/output/build/python-pymysql-0.7.2/.
stamp_target_installed]Quoted 4 lines
Error 1
I searched for the files related to setuptools installation and none of
the
Quoted 8 lines
path containing those files are passed as arguments
to the packages failing to build.
I think that either the host-python-setup installation went wrong or that the arguments used for the built are wrong.
I'm no expert in buildroot, so I ask for help.$ find output/ -name 'install_scripts.*' output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/
python2.7/distutils/command/install_scripts.pyQuoted 4 lines
output/host/usr/lib/python2.7/distutils/command/install_scripts.pyoutput/host/usr/lib/python2.7/distutils/command/install_scripts.pycoutput/build/host-python-2.7.12/Lib/distutils/command/install_scripts.pyoutput/build/host-python-2.7.12/Lib/distutils/command/install_scripts.pyc
Quoted 1 line
*output/build/host-python-setuptools-18.7.1/setuptools/
command/install_scripts.pyQuoted 1 line
output/build/host-python-setuptools-18.7.1/setuptools/
command/install_scripts.pyc
Quoted 1 line
output/build/host-python-setuptools-18.7.1/build/lib/
setuptools/command/install_scripts.py*
Quoted 3 lines
output/build/python-2.7.12/Lib/distutils/command/install_scripts.pyoutput/build/python-2.7.12/Lib/distutils/command/install_scripts.pycoutput/target/usr/lib/python2.7/distutils/command/install_scripts.py
Quoted 8 lines
Have you already tried:
make clean && make
What BR version are you using?
Yegor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160923/c639aea5/attachment.html>
I'm on Debian 9 too. Here is my defconfig, that is working:
BR2_arm=y
BR2_cortex_a8=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_PACKAGE_PYTHON=y
BR2_PACKAGE_PYTHON_PYMYSQL=y
Quoted 81 lines · Fabi?n Inostroza
It was a version cloned about 2 hours ago (commit id ba16a7a...), just to try pulled the new commits with no results
Yes, while trying to fix the build I ran 'make clean' several times.PD: I'm running Debian testing
El viernes, 23 de septiembre de 2016, Yegor Yefremov <[email protected]> escribi?:
Quoted 73 lines
Hi,
Quoted 53 lines · totoxa
Hi,
I'm trying to build python-serial and python-pymysql, both of them use setuptools to install.
After running make the build fails with the following error:Quoted 1 line
Quoted 1 line
Quoted 1 line
python-pymysql 0.7.2 Installing to target
(cd
/home/dev/buildroot/output/build/python-pymysql-0.7.2//;PATH="/home/dev/buildroot/output/host/bin:/home/dev/buildroot/output/host/sbin:/home/dev/buildroot/output/host/usr/bin:/home/dev/buildroot/output/host/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
PYTHONPATH="/home/dev/buildroot/output/target/usr/lib/python2.7/sysconfigdata/:/home/dev/buildroot/output/target/usr/lib/python2.7/site-packages/"
_python_sysroot=/home/dev/buildroot/output/host/usr/arm-buildroot-linux-gnueabi/sysroot _python_prefix=/usr _python_exec_prefix=/usr
/home/dev/buildroot/output/host/usr/bin/pythonsetup.pyinstall --no-compile
--prefix=/home/dev/buildroot/output/target/usr --executable=/usr/bin/python
--single-version-externally-managed --root=/ )
usage:setup.py[global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or:setup.py--help [cmd1 cmd2 ...]
or:setup.py--help-commands
or:setup.pycmd --helperror: option --executable not recognized
package/pkg-generic.mk:282: fallo en las instrucciones para el objetivo'
/home/dev/buildroot/output/build/python-pymysql-0.7.2/.stamp_target_installed'
make: ***[
/home/dev/buildroot/output/build/python-pymysql-0.7.2/.stamp_target_installed] Error 1I searched for the files related to setuptools installation and none of the
path containing those files are passed as arguments
to the packages failing to build.
I think that either the host-python-setup installation went wrong or that
the arguments used for the built are wrong.
I'm no expert in buildroot, so I ask for help.$ find output/ -name 'install_scripts.*'
output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/python2.7/distutils/command/install_scripts.pyoutput/host/usr/lib/python2.7/distutils/command/install_scripts.pyoutput/host/usr/lib/python2.7/distutils/command/install_scripts.pycoutput/build/host-python-2.7.12/Lib/distutils/command/install_scripts.pyoutput/build/host-python-2.7.12/Lib/distutils/command/install_scripts.pyc
Quoted 8 lines
*output/build/host-python-setuptools-18.7.1/setuptools/command/install_scripts.pyoutput/build/host-python-setuptools-18.7.1/setuptools/command/install_scripts.pyc
output/build/host-python-setuptools-18.7.1/build/lib/setuptools/command/install_scripts.py*
output/build/python-2.7.12/Lib/distutils/command/install_scripts.pyoutput/build/python-2.7.12/Lib/distutils/command/install_scripts.pycoutput/target/usr/lib/python2.7/distutils/command/install_scripts.pyHave you already tried:
make clean && make
What BR version are you using?
Yegor
Hi,
Got it working. I tough that the installation process was loading the setuptools module from my system, because the files related to the setuptools under the buildroot path were patched to include the additional options, so I tried uninstalling python-setuptools from my system and now it completes the build.
This must be a bug, what do you think?
PD: I accidentally sent this message to another thread, yes, I'm a moron
2016-09-23 4:11 GMT-03:00 Yegor Yefremov <[email protected]>:
Quoted 89 lines
I'm on Debian 9 too. Here is my defconfig, that is working:
BR2_arm=y
BR2_cortex_a8=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_PACKAGE_PYTHON=y
BR2_PACKAGE_PYTHON_PYMYSQL=yQuoted 12 lines · Fabi?n Inostroza
It was a version cloned about 2 hours ago (commit id ba16a7a...), just to try pulled the new commits with no results
Yes, while trying to fix the build I ran 'make clean' several times.PD: I'm running Debian testing
El viernes, 23 de septiembre de 2016, Yegor Yefremov <[email protected]> escribi?:
Quoted 4 lines
Hi,
On Fri, Sep 23, 2016 at 7:38 AM, totoxa <[email protected]>
Quoted 10 lines · wrote:
Quoted 10 lines
Quoted 10 lines
Hi,
I'm trying to build python-serial and python-pymysql, both of them use setuptools to install.
After running make the build fails with the following error:Quoted 1 line
Quoted 1 line
Quoted 1 line
python-pymysql 0.7.2 Installing to target
(cd
/home/dev/buildroot/output/build/python-pymysql-0.7.2//;PATH="/home/dev/buildroot/output/host/bin:/home/dev/
buildroot/output/host/sbin:/home/dev/buildroot/output/ host/usr/bin:/home/dev/buildroot/output/host/usr/ sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
PYTHONPATH="/home/dev/buildroot/output/target/usr/
lib/python2.7/sysconfigdata/:/home/dev/buildroot/output/ target/usr/lib/python2.7/site-packages/"
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
_python_sysroot=/home/dev/buildroot/output/host/usr/arm-
buildroot-linux-gnueabi/sysroot
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
_python_prefix=/usr _python_exec_prefix=/usr
/home/dev/buildroot/output/host/usr/bin/pythonsetup.pyinstall --no-compile --prefix=/home/dev/buildroot/output/target/usr --executable=/usr/bin/python --single-version-externally-managed --root=/ )
usage:setup.py[global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or:setup.py--help [cmd1 cmd2 ...]
or:setup.py--help-commands
or:setup.pycmd --helpQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
error: option --executable not recognized
package/pkg-generic.mk:282: fallo en las instrucciones para elobjetivo
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
'
/home/dev/buildroot/output/build/python-pymysql-0.7.2/.
stamp_target_installed'Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
make: ***
[
/home/dev/buildroot/output/build/python-pymysql-0.7.2/.
stamp_target_installed]Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Error 1
I searched for the files related to setuptools installation and none
of
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
the
path containing those files are passed as arguments
to the packages failing to build.
I think that either the host-python-setup installation went wrong or that
the arguments used for the built are wrong.
I'm no expert in buildroot, so I ask for help.$ find output/ -name 'install_scripts.*'output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/
python2.7/distutils/command/install_scripts.pyQuoted 3 lines
Quoted 3 lines
Quoted 3 lines
output/host/usr/lib/python2.7/distutils/command/install_scripts.pyoutput/host/usr/lib/python2.7/distutils/command/install_scripts.pyc output/build/host-python-2.7.12/Lib/distutils/command/
install_scripts.pyQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
output/build/host-python-2.7.12/Lib/distutils/command/
install_scripts.pyc
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 20 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
*output/build/host-python-setuptools-18.7.1/setuptools/
command/install_scripts.pyQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
output/build/host-python-setuptools-18.7.1/setuptools/
command/install_scripts.pyc
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
output/build/host-python-setuptools-18.7.1/build/lib/
setuptools/command/install_scripts.py*
Quoted 11 lines
Quoted 11 lines
Quoted 3 lines
output/build/python-2.7.12/Lib/distutils/command/install_scripts.pyoutput/build/python-2.7.12/Lib/distutils/command/install_scripts.pycoutput/target/usr/lib/python2.7/distutils/command/install_scripts.pyHave you already tried:
make clean && make
What BR version are you using?
Yegor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160924/2dc85408/attachment.html>