openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #06451
Re: Problems with run_tests.sh on 11.10
On Mon, 2012-01-02 at 12:50 +0100, Soren Hansen wrote:
> 2011/12/30 John Griffith <john.griffith@xxxxxxxxxxxxx>:
> > Oops, sorry about that. Forgot to check it in the venv, which reveals the
> > issue:
> >
> > % tools/with_venv.sh
> > jdg@grumpy ~/Projects/OpenStack/nova
> > % python
> > Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
> > [GCC 4.6.1] on linux2
> > Type "help", "copyright", "credits" or "license" for more information.
> >>>> import M2Crypto
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in <module>
> > File "/usr/local/lib/python2.7/dist-packages/M2Crypto/__init__.py", line
> > 22, in <module>
> > import __m2crypto
> > ImportError: /usr/local/lib/python2.7/dist-packages/M2Crypto/__m2crypto.so:
> > undefined symbol: SSLv2_method
> >>>>
>
> Ah, yes. That's because M2Crypto hasn't kept up wit the removal of
> SSLv2 from OpenSSL.
>
> It's fixed in the Ubuntu packages, so if you remove the M2Crypto line
> from pip-requires and put this instead:
>
> -e bzr+http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/precise/m2crypto/precise/#egg=M2Crypto
>
> You should be fine. (Yes, the line in pip-requires should start with
> "-e")
In Nova, install_venv.py just uses the system M2Crypto package on Fedora
rather than pip installing it.
I think that makes most sense - consider it a system library which we
prefer to use from the underlying distro rather than from PyPi.
Cheers,
Mark.
Follow ups
References