Hi Monty,<div><br></div><div>Thanks for the response, performed the steps you recommended and pastes the output from run_tests.sh on pastebin:</div><div><br></div><div><a href="http://paste.openstack.org/show/4018/">http://paste.openstack.org/show/4018/</a></div>
<div><br></div><div>Let me know if this is useful.  Also, I'm going to try running on a "fresh" 11.10 install, I suspect there's some config on my existing laptop that's messing things up.</div><div>
<br></div><div>Thanks,</div><div>John<br><br><div class="gmail_quote">On Thu, Dec 29, 2011 at 1:10 PM, Monty Taylor <span dir="ltr"><<a href="mailto:mordred@inaugust.com">mordred@inaugust.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Well, we're running tests in Jenkins on 11.10, so there is certainly<br>
something that we're doing that you're not... let's see if we can track<br>
that down so that we can document it properly.<br>
<br>
Ensure that you have the following packages installed via apt:<br>
<br>
build-essential python-all-dev libssl-dev swig python-setuptools openssl<br>
<br>
And then re-build your venv.<br>
<br>
If that doesn't work, please take the entire traceback/log of what<br>
happens when you create the venv and put it somewhere<br>
(<a href="http://paste.openstack.org" target="_blank">paste.openstack.org</a> would work) and send it here so that we can take a<br>
look at where things might be going south for you.<br>
<br>
Sorry for the troubles, but that's for working with us to get it sorted!<br>
<br>
Monty<br>
<div><div class="h5"><br>
On 12/29/2011 08:27 AM, John Griffith wrote:<br>
> Hi,<br>
> I'm trying to learn how the testing framework is set up and write my own<br>
> unit tests for the driver I've been working on.  Unfortunately I'm not<br>
> making much progress, on my Ubuntu 11.10 system I keep running into<br>
> problems with M2Crypto.<br>
><br>
> I picked up the change to use apt-get instead of pip, but still no luck.<br>
><br>
> During virtualenv setup I recieved an error at install of M2Crypto that<br>
> the source couldn't be verified, so I ran 'sudo apt-get install -y<br>
> --force-yes python-m2crypto', deleted the .venv directory and ran<br>
> run_tests.sh again.<br>
><br>
> This time the environment setup completed, but again the tests fail for<br>
> 'ImportError: No module named M2Crypto'.<br>
><br>
> Running in the python cli I can do 'import M2Crypto' with no<br>
> ImportError.  I've spun up a VM for now with 11.04 and things are<br>
> working, but I would like to understand what's going on with 11.10 and<br>
> not have to use the VM if I don't have to.  Has anybody seen anything<br>
> along these lines?  There seems to be quite a bit on Google about 11.10<br>
> and M2Crypto, but not finding a resolution.<br>
><br>
> Thanks,<br>
> John<br>
><br>
> ``````````````````````````````````````````````````````````````````````````````````````````````````````<br>
><br>
>     Nova development environment setup is complete.<br>
><br>
>     Nova development uses virtualenv to track and manage Python dependencies<br>
>     while in development and testing.<br>
><br>
>     To activate the Nova virtualenv for the extent of your current shell<br>
>     session you can run:<br>
><br>
>     $ source .venv/bin/activate<br>
><br>
>     Or, if you prefer, you can run commands in the virtualenv on a case<br>
> by case<br>
>     basis by running:<br>
><br>
>     $ tools/with_venv.sh <your command><br>
><br>
>     Also, make test will automatically use the virtualenv.<br>
><br>
> ERROR<br>
><br>
> ======================================================================<br>
> ERROR: <nose.suite.ContextSuite context=nova.tests><br>
> ----------------------------------------------------------------------<br>
> Traceback (most recent call last):<br>
>   File<br>
> "/home/jdg/Projects/OpenStack/nova/.venv/local/lib/python2.7/site-packages/nose/suite.py",<br>
> line 208, in run<br>
>     self.setUp()<br>
>   File<br>
> "/home/jdg/Projects/OpenStack/nova/.venv/local/lib/python2.7/site-packages/nose/suite.py",<br>
> line 291, in setUp<br>
>     self.setupContext(ancestor)<br>
>   File<br>
</div></div>> "/home/jdg/Projects/OpenStack/nova/.venv/local/lib/python2.7/site-packages/nose/suite..py",<br>
<div><div class="h5">> line 314, in setupContext<br>
>     try_run(context, names)<br>
>   File<br>
> "/home/jdg/Projects/OpenStack/nova/.venv/local/lib/python2.7/site-packages/nose/util.py",<br>
> line 478, in try_run<br>
>     return func()<br>
>   File "/home/jdg/Projects/OpenStack/nova/nova/tests/__init__.py", line<br>
> 48, in setup<br>
>     from nova.tests import fake_flags<br>
>   File "/home/jdg/Projects/OpenStack/nova/nova/tests/fake_flags.py",<br>
> line 28, in <module><br>
>     flags.DECLARE('auth_driver', 'nova.auth.manager')<br>
>   File "/home/jdg/Projects/OpenStack/nova/nova/flags.py", line 224, in<br>
> DECLARE<br>
>     __import__(module_string, globals(), locals())<br>
>   File "/home/jdg/Projects/OpenStack/nova/nova/auth/manager.py", line<br>
> 34, in <module><br>
>     from nova import crypto<br>
>   File "/home/jdg/Projects/OpenStack/nova/nova/crypto.py", line 36, in<br>
> <module><br>
>     import M2Crypto<br>
> ImportError: No module named M2Crypto<br>
><br>
> ----------------------------------------------------------------------<br>
> Ran 0 tests in 0.002s<br>
><br>
> FAILED (errors=1)<br>
><br>
> jdg@grumpy ~/Projects/OpenStack/nova<br>
>  % cd /tmp<br>
><br>
> jdg@grumpy /tmp % python<br>
> Python 2.7.2+ (default, Oct  4 2011, 20:06:09)<br>
> [GCC 4.6.1] on linux2<br>
> Type "help", "copyright", "credits" or "license" for more information.<br>
>>>> import M2Crypto<br>
><br>
> jdg@grumpy /tmp %<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
> Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
> Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
> More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</blockquote></div><br></div>