CloudOpting / cloudopting-crane

Build dockerized applications with puppet and deploy anywhere.
MIT License
4 stars 5 forks source link

Execution faliure: No mudule named urllib.parse #2

Closed gioppoluca closed 9 years ago

gioppoluca commented 9 years ago

Have this ImportError in the execution any hints?

j-fuentes commented 9 years ago

I tried in a new clean environment. With pip install -r install/requirements.txt and python commander/commander.py it runs.

I need some more indications to reproduce the error. Could you explain with detail the steps you have followed?.

Which version of python are you using?

gioppoluca commented 9 years ago

I have python 2.7.5 on CentOS 7 Followed the instructions in the GIT

gioppoluca commented 9 years ago

[root@localhost cloudopting-crane]# python commander/commander.py Traceback (most recent call last): File "commander/commander.py", line 9, in from controllers.builder import builderOps File "/home/gioppo/git/cloudopting-crane/commander/controllers/builder/builderOps.py", line 9, in from toolbox import docker File "/home/gioppo/git/cloudopting-crane/commander/toolbox/docker.py", line 26, in dockerpy = import_non_local('docker', 'dockerpy') File "/home/gioppo/git/cloudopting-crane/commander/toolbox/docker.py", line 20, in import_non_local module = imp.load_module(custom_name, f, pathname, desc) File "/usr/lib/python2.7/site-packages/docker/init.py", line 20, in from .client import Client, AutoVersionClient # flake8: noqa File "/usr/lib/python2.7/site-packages/docker/client.py", line 37, in import websocket File "/usr/lib/python2.7/site-packages/websocket/init.py", line 22, in from ._core import File "/usr/lib/python2.7/site-packages/websocket/_core.py", line 41, in from ._url import File "/usr/lib/python2.7/site-packages/websocket/_url.py", line 23, in from six.moves.urllib.parse import urlparse ImportError: No module named urllib.parse

gioppoluca commented 9 years ago

Using the home repo not branches

j-fuentes commented 9 years ago

I have been recreating all the installation process in a virtual machine with centos7 from scratch.

In the step 'Install pip', I had problems because by default python-pip is not in the yum repositories. I changed the installation method in the readme. Now it is installed with curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" and python get-pip.py.

Could you check if you achieved to install pip? With pip -V for example.

j-fuentes commented 9 years ago

I achieved to run the program just following the steps.

I start from a centos7 x64 clean vagrant box: https://github.com/holms/vagrant-centos7-box/releases/download/7.1.1503.001/CentOS-7.1.1503-x86_64-netboot.box

gioppoluca commented 9 years ago

I have pip version 1.5.6. All installation stated to be correct no errors anywhere

j-fuentes commented 9 years ago

I have pip 7.1.0.

Try installing a newer pip version and reinstalling the dependences with pip install -r install/requirements.txt

PD: remove pip and install it with curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" and python get-pip.py

gioppoluca commented 9 years ago

Fixed with pip install --upgrade six Sure it was not needed this dependency?

j-fuentes commented 9 years ago

six is included by default. It seems that you had an obsolete version or something.

Anyway, I am going to include a note in the readme.

Thanks you. This is good to improve.