ConPaaS-team / conpaas

ConPaaS: integrated runtime environment for elastic cloud applications
http://www.conpaas.eu
BSD 3-Clause "New" or "Revised" License
14 stars 3 forks source link

Installation of cps-tools incomplete? #5

Closed engbert closed 10 years ago

engbert commented 10 years ago

After installing cps-tools according to #4 something seems to be incomplete: I get errors/tracebacks:

(root)root@conpaas-FE-DIR:~/1.4.1-rc1/cps-tools-1.4.0# cps-user get_certificate
Traceback (most recent call last):
  File "/usr/local/bin/cps-user", line 4, in 
    from cps_tools.user import main
ImportError: No module named cps_tools.user

and

(root)root@conpaas-FE-DIR:~/1.4.1-rc1/cps-tools-1.4.0# cps-tools user get_certificate
Traceback (most recent call last):
  File "/usr/local/bin/cps-tools", line 4, in 
    from cps_tools.cps_tools import main
ImportError: No module named cps_tools.cps_tools

and I have not (yet) been able to find the cause.

gtato commented 10 years ago

I tried this and it did not give me this error.

engbert commented 10 years ago

Genc,

It looks like it has something to do with the virtualenv. I set up my virtualenv with default settings (Not having access to global site-packages is now the default behavior.), Now when being in my virtualenv, installing cps-tools put them in /usr/local/lib/python2.7/site-packages/cps_tools in stead of in the virtualenv lib /root/src/virtualenv-1.11.4/ve/lib/python2.7/cps_tools

BTW, I am running this on OS debian 6.0.7 (if that matters)

engbert commented 10 years ago

It turns out that setting up virtualenv with Python2.7 has to be done in a very specific order, with very specific commands. I will add those to the documentation.

gpierre42 commented 10 years ago

Hi @engbert ,

Did you already add this to the documentation? If so, then please close the issue in github. Thanks!

engbert commented 10 years ago

docs/installation.rst Added to documentation in dev branch on 2014-05-19