-
Notifications
You must be signed in to change notification settings - Fork 102
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
Editing while reading #45
Conversation
Assuming I'm in the `demo` directory, unless I append '.' to my path, import fails.
That is very strange. I cannot reproduce this (import doesn't fail in ipython; using python2.7 and 3.5). I am testing in virtualenv, in Linux, but my thinking usually was that python can do 'import X' when X.py is in current directory. |
Yes, that's what I expect too. I'll check some more. J
|
@michwill the |
There may also be some system dependencies; on Debian, this will get the | ||
required packages:: | ||
|
||
$ sudo apt-get install python-pip python-dev libssl-dev libzmq-dev libffi-dev git python-virtualenv |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh. Why is zmq required? Somehow fails to build without it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, from #47:
vagrant@vagrant-ubuntu-trusty-64:~$ zerodb-manage initdb
[...]
ImportError: No module named ipython_genutils
[...]
vagrant@vagrant-ubuntu-trusty-64:~$ pip install --user jupyter
[...]
build/temp.linux-x86_64-2.7/scratch/vers.c:4:17: fatal error: zmq.h: No such file or directory
I guessed the version of IPython that I had was too old. It looks like just installing ipython_genutils
may also work:
ipython/ipython_genutils#3
Assuming I'm in the
demo
directory, unless I append '.' to my path,import fails.
This feels rather hacky, is there a better way?