Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] Issue adding subprocess32 python package to buildroot
Date: Sat, 9 Sep 2017 18:14:01 +0200	[thread overview]
Message-ID: <20170909161401.GC2850@scaer> (raw)
In-Reply-To: <CAP3D3ge8ZXFXuB4_V5eSxnKAN=5hKWwYcxT2xRqM6HUOp39pUg@mail.gmail.com>

Paul, All,

On 2017-09-08 15:18 +0100, Paul Gildea spake thusly:
> I am trying to install subprocess32 with my python 2.7 installation via
> buildroot. It's an older version of buildroot and doesn't have
> python-package,

python-package was introduced in December 2013, so appeared in Buildroot
2014.02. This means you are using  version that is almost 4 years old
now.

And below, we can see that you are using the GENTARGETS infrastructure.
This was removed in July 2012, now more than 5 years ago...

We can't help on such an old version.

I would suggest that you upgrade to at least our first LTS version,
2017.02, or to the latest release, 2017.08.

Regards,
Yann E. MORIN.

> subprocess32 appeared to install correctly but when I
> import it on the embedded system I get an error:
> 
> >>> import subprocess32/usr/lib/python2.7/site-
> packages/subprocess32.py:472: RuntimeWarning: The _posixsubprocess module is not being used. Child process reliability may suffer if your pro
> gram uses threads.  "program uses threads.", RuntimeWarning)
> Following this path I tried to import _posixsubprocess
> 
> 
> 
> >>>import _posixsubprocessTraceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: dynamic module does not define init function (init_posixsubprocess)
> 
> ?_posixsubprocess does have init_posixsubprocess?
> [1]https://github.com/google/python-
> subprocess32/blob/master/_posixsubprocess.c#L879
> 
> I can use subprocess32 otherwise, I tested out it's basic functionality.It seems to me like something in my build system is not doing the right thing, any ideas?
> 
> 
> 
> Output from building:
> 
> ^[[7m>>> python-subprocess32 3.2.7 Extracting^[[27m
> ^[[7m>>> python-subprocess32 3.2.7 Patching package/python-subprocess32^[[
> 27m^[[7m>>> python-subprocess32 3.2.7 Configuring^[[27m
> ^[[7m>>> python-subprocess32 3.2.7 Building^[[27m
> (cd /media/vmpart/5.1.0_x86/buildroot/output/build/python-
> subprocess32-3.2.7; /media/vmpart/5.1.0_x86/
> buildroot/output/host/usr/bin/python setup.py build)
> running buildrunning build_pycreating build
> creating build/lib.linux-x86_64-2.7copying subprocess32.py -> build/lib.linux-x86_64-2.7
> running build_extbuilding '_posixsubprocess' extension
> creating build/temp.linux-x86_64-2.7copying subprocess32.py -> build/lib.linux-x86_64-2.7
> running build_extbuilding '_posixsubprocess' extension
> creating build/temp.linux-x86_64-2.7/media/vmpart/5.1.0_x86/
> buildroot/output/host/usr/bin/ccache /usr/bin/gcc -pthread -fno-strict-aliasing -O2 -I/media/vmpart/5.1.0_x86/
> buildroot/output/host/include -I/media/vmpart/5.1.0_x86/
> buildroot/output/host/usr/include -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/media/vmpart/5.1.0_x86/
> buildroot/output/host/usr/include/python2.7 -c _posixsubprocess.c -o build/temp.linux-x86_64-2.7/_
> posixsubprocess.o/media/vmpart/5.1.0_x86/
> buildroot/output/host/usr/bin/ccache /usr/bin/gcc -pthread -shared -L/media/vmpart/5.1.0_x86/
> buildroot/output/host/lib -L/media/vmpart/5.1.0_x86/
> buildroot/output/host/usr/lib -Wl,-rpath,/media/vmpart/5.1.
> 0_x86/buildroot/output/host/usr/lib build/temp.linux-x86_64-2.7/_
> posixsubprocess.o -L/media/vmpart/5.1.0_x86/
> buildroot/output/host/usr/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/_
> posixsubprocess.so^[[7m>>> python-subprocess32 3.2.7 Installing to target^[[27m
> (cd /media/vmpart/5.1.0_x86/buildroot/output/build/python-
> subprocess32-3.2.7; /media/vmpart/5.1.0_x86/
> buildroot/output/host/usr/bin/python setup.py install --prefix=/media/vmpart/5.1.0_
> x86/buildroot/output/target/usr)running install
> running buildrunning build_pyrunning build_ext
> running install_libcopying build/lib.linux-x86_64-2.7/_
> posixsubprocess.so -> /media/vmpart/5.1.0_x86/
> buildroot/output/target/usr/lib/python2.7/site-packages
> running install_egg_infoRemoving /media/vmpart/5.1.0_x86/
> buildroot/output/target/usr/lib/python2.7/site-packages/
> subprocess32-3.2.7-py2.7.egg-infoWriting /media/vmpart/5.1.0_x86/
> buildroot/output/target/usr/lib/python2.7/site-packages/
> subprocess32-3.2.7-py2.7.egg-info
> 
> 
> 
> 
> 
> My makefile:
> 
> 
> 
> ############################################################
> ### Subprocess32 module for python###############################
> ###############################PYTHON_SUBPROCESS32_VERSION = 3.2.7
> PYTHON_SUBPROCESS32_SOURCE = subprocess32-$(PYTHON_
> SUBPROCESS32_VERSION).tar.gzPYTHON_SUBPROCESS32_SITE =
> [2]https://pypi.python.org/pypi/subprocess32
> PYTHON_SUBPROCESS32_DEPENDENCIES = python
> define PYTHON_SUBPROCESS32_BUILD_CMDS        (cd $(@D); $(HOST_DIR)/usr/bin/python setup.py build)
> endefdefine PYTHON_SUBPROCESS32_INSTALL_
> TARGET_CMDS        (cd $(@D); $(HOST_DIR)/usr/bin/python setup.py install --prefix=$(TARGET_DIR)/usr)
> endef$(eval $(call GENTARGETS,package,python-
> subprocess32))
> 
> Links:
> 1. https://github.com/google/python-subprocess32/blob/master/_posixsubprocess.c#L879
> 2. https://pypi.python.org/pypi/subprocess32

> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot


-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

  reply	other threads:[~2017-09-09 16:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-08 14:18 [Buildroot] Issue adding subprocess32 python package to buildroot Paul Gildea
2017-09-09 16:14 ` Yann E. MORIN [this message]
2017-09-09 18:53   ` Thomas Petazzoni
2017-09-09 19:03   ` Paul Gildea
2017-09-11 23:07 ` Arnout Vandecappelle
2017-09-14 15:22   ` Paul Gildea

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170909161401.GC2850@scaer \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox