[Buildroot] Python standard library problems
Pedro Sanchez
psanchez at fosstel.com
Thu Sep 1 14:18:11 UTC 2011
On 09/01/2011 03:50 AM, Thomas Petazzoni wrote:
> Le Wed, 31 Aug 2011 10:17:23 -0400,
> Pedro Sanchez<psanchez at fosstel.com> a écrit :
>
>> Tested loading the Python modules of my application. Only one module
>> fails to load now.
>>
>> $ python
>> Python 2.7.1 (r271:86832, Aug 31 2011, 09:38:18)
>> [GCC 4.5.2] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
>>
>> >>> import fcntl
>> >>> import os
>> >>> import sys
>> >>> import signal
>> >>> import socket
>> >>> import time
>> >>> import datetime
>> >>> from collections import deque
>> >>> from subprocess import Popen, PIPE
>> Traceback (most recent call last):
>> File "<stdin>", line 1, in<module>
>> File "/usr/lib/python2.7/subprocess.py", line 432, in<module>
>> File "/usr/lib/python2.7/pickle.py", line 1266, in<module>
>> ImportError: No module named binascii
>
> Strange, I've built Python for ARM with the latest git, and importing
> subprocess just works fine.
>
> Could you post the complete build log somewhere (not to the list but on
> some pastebin site) :
>
> make clean
> make 2>&1 | tee logfile
>
> and then post logfile.
>
> Thomas
Hi,
The log says:
Failed to build these modules:
binascii readline
And when building binascii it says:
Include/pyport.h:849:2: error: #error "LONG_BIT definition appears wrong
for platform (bad gcc/glibc config?)."
The fact that also readline fails to build explains why I can't use the
cursor keys when using the Python interpreter on my ARM board.
The full log is here (copy and paste to a local file):
http://pastebin.me/746c47fed3b257dbced48473b01ab27c
--
Pedro
More information about the buildroot
mailing list