nova development environment

asked 2012-08-29 07:23:53 -0600

when I operate according by developer guide. After I create the virtual environment, I run the next command "python -m pdb ./bin/nova-api". The next is the result:

Traceback (most recent call last): File "/usr/lib/python2.7/pdb.py", line 1314, in main pdb._runscript(mainpyfile) File "/usr/lib/python2.7/pdb.py", line 1233, in _runscript self.run(statement) File "/usr/lib/python2.7/bdb.py", line 387, in run exec cmd in globals, locals File "<string>", line 1, in <module> File "./bin/nova-api", line 41, in <module> from nova import service File "/home/zxj/nova/nova/service.py", line 34, in <module> from nova import context File "/home/zxj/nova/nova/context.py", line 27, in <module> from nova import utils File "/home/zxj/nova/nova/utils.py", line 49, in <module> import lockfile ImportError: No module named lockfile Uncaught exception. Entering post mortem debugging Running 'cont' or 'step' will restart the program

When I add "./.venv/lib/python2.7/site-packages" directory to sys.path, some problems like this still exist. How can I solve this problems?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-08-30 01:23:48 -0600

This problem I have solved it yesterday. We need execute environment script before execute exact command. Thanks!

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-08-29 07:23:53 -0600

Seen: 22 times

Last updated: Aug 30 '12