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

Editing while reading #45

Merged
merged 5 commits into from
Jul 24, 2016
Merged

Editing while reading #45

merged 5 commits into from
Jul 24, 2016

Conversation

jean
Copy link
Contributor

@jean jean commented Jul 14, 2016

Assuming I'm in the demo directory, unless I append '.' to my path,
import fails.

This feels rather hacky, is there a better way?

Assuming I'm in the `demo` directory, unless I append '.' to my path,
import fails.
@michwill
Copy link
Contributor

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.

@jean
Copy link
Contributor Author

jean commented Jul 14, 2016

Yes, that's what I expect too. I'll check some more.

J
On 14 Jul 2016 11:53 am, "Michael Egorov" [email protected] wrote:

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.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#45 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AAFLQNuZyk99IwHsAKqFRPHSYVjPWI7fks5qVcCsgaJpZM4JMFAL
.

@jean jean changed the title Fix import models Editing while reading Jul 17, 2016
@jean
Copy link
Contributor Author

jean commented Jul 17, 2016

@michwill the sys.path issue only shows up when trying to execute the example while in the zerodb-manage console. I've updated the PR.

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
Copy link
Contributor

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?

Copy link
Contributor Author

@jean jean Jul 18, 2016

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

@michwill michwill merged commit 298cac4 into nucypher:master Jul 24, 2016
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

Successfully merging this pull request may close these issues.

2 participants