[Openstack] Nova not building on SID with python2.7

Thomas Goirand thomas at goirand.fr
Thu May 26 07:06:13 UTC 2011


On 05/20/2011 06:15 AM, Soren Hansen wrote:
> 2011/5/19 Thomas Goirand <thomas at goirand.fr>:
>> Since SID is using python2.7, there's loads of errors, and building Nova
>> simply doesn't work.
> 
> Can you be more specific? Ubuntu has been on Python 2.7 since Natty,
> so it most definitely should work.

Below is just an example. It does that all the time for the clean,
build, install, etc. targets of debian/rules.

   debian/rules override_dh_auto_clean
make[1]: Entering directory `/home/zigo/src/build/nova/nova-2011.2'
dh_auto_clean
Traceback (most recent call last):
  File "setup.py", line 37, in <module>
    from nova.utils import parse_mailmap, str_dict_replace
  File "/home/zigo/src/build/nova/nova-2011.2/nova/utils.py", line 42,
in <module>
    from eventlet import event
ImportError: No module named eventlet
dh_auto_clean: python2.7 setup.py clean -a returned exit code 1

>> Even the debian/rules clean target fails, not finding the Eventlet python module.
> 
> Eventlet probably just needs a no-change rebuild to pick up the new
> python versions in the archive. Bug the maintainers (*cough* Monty
> *cough*).

Maybe. But the issue is that I tried to rebuild it, and it doesn't build
anymore. It's well documented here already by Lucas Nussbaum:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=625137

Because of this, I've put the python-modules-team as Cc:, hoping that
the issue will get a higher priority, knowing that it is blocking
others. I believe that a patch to the package would help speed-up
solving the issue. Note that after rebuilding pyopenssl-0.10, it seems
that the error is not the same as what has been reported:

======================================================================
ERROR: Failure: ImportError
(/usr/lib/pymodules/python2.7/OpenSSL/SSL.so: undefined symbol:
SSLv2_method)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/nose/loader.py", line 390, in
loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/pymodules/python2.7/nose/importer.py", line 39, in
importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/pymodules/python2.7/nose/importer.py", line 86, in
importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File
"/home/zigo/src/rebuild/python-eventlet-0.9.14/eventlet/green/OpenSSL/__init__.py",
line 1, in <module>
    import rand, crypto, SSL, tsafe
  File
"/home/zigo/src/rebuild/python-eventlet-0.9.14/eventlet/green/OpenSSL/rand.py",
line 1, in <module>
    from OpenSSL.rand import *
  File "/usr/lib/pymodules/python2.7/OpenSSL/__init__.py", line 11, in
<module>
    import rand, crypto, SSL, tsafe
ImportError: /usr/lib/pymodules/python2.7/OpenSSL/SSL.so: undefined
symbol: SSLv2_method

Cheers,

Thomas Goirand (zigo)




More information about the Openstack mailing list