Issue Importing Subprocess32
I am trying to install subprocess32 with my python 2.7 installation via buildroot. It appeared to install correctly but when I import it on the embedded system I get an error: >
Solution 1:
I'm not sure which Buildroot version you're using, but if it's still a version that uses the GENTARGETS
macro and that doesn't have the python-package
infrastructure, then it must be a really, really, really old version. Please upgrade first, as many, many fixes have been made in recent years in the Python support.
Solution 2:
The issue was that distutils
was using the wrong compiler for building shared objects (other objects used the right compiler). Setting the below LDSHARED
variable during the build phase solved the issue:
LDSHARED="$(TARGET_CC) -pthread -shared"
Post a Comment for "Issue Importing Subprocess32"