Ask Your Question
0

quantum-2012.1~e2 ImportError: No module named server

asked 2012-01-05 08:09:42 -0600

gandalf100 gravatar image

After installing using the following commands:

tar zxvf quantum-2012.1~e2.tar.gz

cd quantum-2012.1~e2.

pip install -r tools/pip-requires

python setup.py install

quantum-server

I get the following error:

Traceback (most recent call last): File "/usr/local/bin/quantum-server", line 9, in <module> load_entry_point('quantum-server==2012.1dev', 'console_scripts', 'quantum-server')() File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 337, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2279, in load_entry_point return ep.load() File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 1989, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) ImportError: No module named server

edit retag flag offensive close merge delete

12 answers

Sort by » oldest newest most voted
0

answered 2012-01-12 07:48:04 -0600

gandalf100 gravatar image

Thanks Deepak,

Installed and tried again but still the same.

edit flag offensive delete link more
0

answered 2012-01-11 19:48:33 -0600

danwent gravatar image

can you send the whole output of you running the commands above (feel free to use paste-bin).

Thanks.

edit flag offensive delete link more
0

answered 2012-01-12 13:41:02 -0600

gandalf100 gravatar image

I created a directory named plugins under /usr/local/lib/python2.7/dist-packages/quantum_server-2012.1dev-py2.7.egg/quantum and copied sample/* to this directory.

Now quantum-server is running.

edit flag offensive delete link more
0

answered 2012-01-12 06:48:30 -0600

gandalf100 gravatar image

Here it is:

http://pastebin.com/FQFGVkbn

Thanks

edit flag offensive delete link more
0

answered 2012-01-12 07:10:13 -0600

HI Gandalf,

instead of libxslt try installing libxslt-dev Thats the package for the headers and that is what I had done and it worked for me. This dependency is also is a problem in nova sometimes.

edit flag offensive delete link more
0

answered 2012-01-05 18:15:10 -0600

bgh gravatar image

There is definitely a bug in the current setup.py -- this will be replaced pretty soon (there is a change in code review right now to move us to a real setup.py). In the meantime, you can work around this by doing the following:

for x in client server common; do python setup_${x}.py build; done python setup.py install

Then run quantum-server

edit flag offensive delete link more
0

answered 2012-01-09 17:30:59 -0600

I have got the same error. Waiting for the fix. Thanks

edit flag offensive delete link more
0

answered 2012-01-09 18:29:23 -0600

danwent gravatar image

Hi deepak. Does brad's work around not work for you?

edit flag offensive delete link more
0

answered 2012-01-09 18:55:56 -0600

HI Dan, I didn't try Brad's work-around.
I then tried a fresh setup uisng QuantumDevstack but again landed up in a similar error: https://answers.launchpad.net/quantum/+question/184183 (https://answers.launchpad.net/quantum...)

It was then that I saw this post.

edit flag offensive delete link more
0

answered 2012-01-09 20:36:36 -0600

danwent gravatar image

Sorry Deepak, its not clear to me, are you still having a problem after trying:

sudo apt-get install python-pip libxslt python-setuptools python-lxml python-virtualenv tar xzf quantum.tar.gz cd quantum sudo pip install -r tools/pip-requires for x in client server common; do python setup_${x}.py build; done sudo python setup.py install

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-01-05 08:09:42 -0600

Seen: 433 times

Last updated: Jan 12 '12