Open idning opened 10 years ago
Hello, you can solve that by installing networkx
pip install networkx
Edit: I just sent a pull request to add it: #77
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
$ 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