Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install py-elevator if PyZMQ isn't already installed #50

Open
k4nar opened this issue May 10, 2014 · 0 comments
Open

Can't install py-elevator if PyZMQ isn't already installed #50

k4nar opened this issue May 10, 2014 · 0 comments

Comments

@k4nar
Copy link

k4nar commented May 10, 2014

I just got this error on Travis :

Downloading/unpacking git+git://github.com/onitu/py-elevator.git@onitu (from -r /home/travis/build/onitu/onitu/requirements.txt (line 2))

Cloning git://github.com/onitu/py-elevator.git (to onitu) to /tmp/pip-_snIZL-build

Running setup.py (path:/tmp/pip-_snIZL-build/setup.py) egg_info for package from git+git://github.com/onitu/py-elevator.git@onitu

Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip-_snIZL-build/setup.py", line 9, in <module>
version = __import__('pyelevator').__version__
File "pyelevator/__init__.py", line 15, in <module>
from .client import Elevator
File "pyelevator/client.py", line 7, in <module>
from .base import Client
File "pyelevator/base.py", line 11, in <module>
import zmq
ImportError: No module named zmq
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip-_snIZL-build/setup.py", line 9, in <module>
version = __import__('pyelevator').__version__
File "pyelevator/__init__.py", line 15, in <module>
from .client import Elevator
File "pyelevator/client.py", line 7, in <module>
from .base import Client
File "pyelevator/base.py", line 11, in <module>
import zmq
ImportError: No module named zmq

We should not use an import to get the current version.

k4nar added a commit to onitu/py-elevator that referenced this issue May 14, 2014
In order to get the current version, the setup was importing
py-elevator. This was causing an issue as the depencencies were
not installed yet.
Now the version is in its own file, and is imported in __init__.py
and setup.py.
k4nar added a commit to onitu/py-elevator that referenced this issue May 14, 2014
In order to get the current version, the setup was importing
py-elevator. This was causing an issue as the depencencies were
not installed yet.
Now the version is in its own file, and is imported in __init__.py
and setup.py.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant