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

networkx needed #76

Open
idning opened this issue May 14, 2014 · 2 comments
Open

networkx needed #76

idning opened this issue May 14, 2014 · 2 comments

Comments

@idning
Copy link

idning commented May 14, 2014

$ python a.py
/home/ning/.pythonbrew/pythons/Python-2.7.3/lib/python2.7/site-packages/d3py-0.2.3-py2.7.egg/d3py/figure.py:19: UserWarning: Module argparse was already imported from /home/ning/.pythonbrew/pythons/Python-2.7.3/lib/python2.7/argparse.pyc, but /home/ning/.pythonbrew/pythons/Python-2.7.3/lib/python2.7/site-packages is being added to sys.path
from pkg_resources import resource_string
Traceback (most recent call last):
File "a.py", line 1, in
import d3py
File "/home/ning/.pythonbrew/pythons/Python-2.7.3/lib/python2.7/site-packages/d3py-0.2.3-py2.7.egg/d3py/init.py", line 2, in
from networkx_figure import *
File "/home/ning/.pythonbrew/pythons/Python-2.7.3/lib/python2.7/site-packages/d3py-0.2.3-py2.7.egg/d3py/networkx_figure.py", line 3, in
from networkx.readwrite import json_graph
ImportError: No module named networkx.readwrite

@adrian-em
Copy link
Contributor

Hello, you can solve that by installing networkx
pip install networkx

Edit: I just sent a pull request to add it: #77

@samthetechie
Copy link

this helped me. In fact I would suggest:

sudo easy_install https://github.com/mikedewar/d3py/tarball/master

sudo pip install -r requirements.txt

requirements.txt:

pandas

numpy

ipython

networkx

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

3 participants