2.1.0 warning: some compiled extensions could not be loaded (SOLVED)
Jari Aalto
jari.aalto at cante.net
Thu Mar 11 12:50:59 GMT 2010
Martin Pool <mbp at canonical.com> writes:
>> Mon 2010-03-08 15:35:26 +0200
>> 2.571 bazaar version: 2.1.0
>> 2.584 bzr arguments: [u'--version']
>> * 5.180 failed to load compiled extension: No module named _static_tuple_c
>> * 5.398 failed to load compiled extension: cannot import name _btree_serializer_pyx
>> 6.005 encoding stdout as sys.stdout encoding 'UTF-8'
>> 8.019 Transferred: 0KiB (0.0K/s r:0K w:0K)
>> 8.019 return code 0
>> [ 4400] 2010-03-08 15:35:34.961 WARNING: bzr: warning: some compiled
>> extensions could not be loaded; see
>> <https://answers.launchpad.net/bzr/+faq/703>
>>
>> In the installer package that I'm making, the archive (after running
>> setup.py) contains:
>>
>> tar -jtvf bzr-2.1.0-1.tar.bz2 | grep -E 'static_tuple|btree_serializer'
>> -rwxr-xr-x mervi/users 1964 2010-02-16 19:00 usr/lib/python2.5/site-packages/bzrlib/static_tuple.py
>> -rw-r--r-- mervi/users 1579 2010-03-06 01:44 usr/lib/python2.5/site-packages/bzrlib/static_tuple.pyc
>> -rwxr-xr-x mervi/users 25378 2010-02-16 19:00 usr/lib/python2.5/site-packages/bzrlib/tests/test__static_tuple.py
>> -rw-r--r-- mervi/users 24471 2010-03-06 01:44 usr/lib/python2.5/site-packages/bzrlib/tests/test__static_tuple.pyc
>> -rwxr-xr-x mervi/users 2894 2010-02-16 19:00 usr/lib/python2.5/site-packages/bzrlib/_btree_serializer_py.py
>> -rw-r--r-- mervi/users 1906 2010-03-06 01:44 usr/lib/python2.5/site-packages/bzrlib/_btree_serializer_py.pyc
>> -rwxr-xr-x mervi/users 31744 2010-03-06 06:30 usr/lib/python2.5/site-packages/bzrlib/_btree_serializer_pyx.dll
>> -rwxr-xr-x mervi/users 18432 2010-03-06 06:31 usr/lib/python2.5/site-packages/bzrlib/_static_tuple_c.dll
>> -rwxr-xr-x mervi/users 2767 2010-02-16 19:00 usr/lib/python2.5/site-packages/bzrlib/_static_tuple_py.py
>> -rw-r--r-- mervi/users 2510 2010-03-06 01:44 usr/lib/python2.5/site-packages/bzrlib/_static_tuple_py.pyc
>>
>> http://cante.net/~jaalto/tmp/tmp/bzr-2.1.0-1.tar.bz2
>>
>> What am I missing?
>
> Well they seem to exist but not to be loaded. Perhaps you're using a
> different python? My next step would be to run 'python -c "import
> bzrlib._status_tuple_c"' and see what that says.
$ type -a python
python is /usr/bin/python
$ file /usr/bin/python
/usr/bin/python: PE32 executable for MS Windows (console) Intel 80386 32-bit
$ /usr/bin/python -V
Python 2.5.2
$ python -c "import bzrlib._status_tuple_c"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named _status_tuple_c
Hm, the package contain "bzrlib/static_tuple.py", not "status"?
$ python -c "import bzrlib._static_tuple_c"
<succeeds, no display>
$ bzr --version
Bazaar (bzr) 2.1.0
Python interpreter: /usr/bin/python 2.5.2
Python standard library: /usr/lib/python2.5
Platform: CYGWIN_NT-5.1-1.7.1-0.218-5-3-i686-32bit
bzrlib: /usr/lib/python2.5/site-packages/bzrlib
Bazaar configuration: /home/jaalto/.bazaar
Bazaar log file: /home/jaalto/.bzr.log
Strange. I updated latest packages from Cygwin.com, and the problem
vanished. Perhaps it was something with the python installation.
Thanks,
Jari
More information about the bazaar
mailing list