[Python-Dev] Import Fails in setup.py On Android

Cyd Haselton chaselton at gmail.com
Mon Feb 2 21:04:42 CET 2015


Update: While waiting for replies I made the change referenced here: https://bugs.python.org/review/5309/diff2/12811:12826/setup.py?context=3&column_width=80

specifically changing 
       importlib. _bootstrap._SpecMethods(spec).load()
to
       importlib._bootstrap.load(spec)

I no longer get a terminating 'undefined reference to dlopen' error, but I do get 'importing extensions failed' errors for each extension...like this:

*** WARNING: importing extension "_pickle" failed with <class 'AttributeError'>: 'module' object has no attribute 'load'

On February 2, 2015 1:36:29 PM CST, Cyd Haselton <chaselton at gmail.com> wrote:
>After fixing a segfault issue (many thanks Ryan) I'm back to the same
>issue I was having with Python 2.7.8; the newly built python throws an
>undefined reference to dlopen when running setup.py...specifically when
>importing just-built extensions
>
>I've managed to narrow the problem down to the following line:
>
>importlib._bootstrap._SpecMethods(spec).load()
>
>Googling this brings up a few hits from bugs.python.org and not much
>else.  I'm new to Python; any ideas what this does...or where I can
>read up on it for troubleshooting purposes?
>-- 
>Sent from my Android device with K-9 Mail. Please excuse my brevity.

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20150202/597f5e34/attachment.html>


More information about the Python-Dev mailing list