mikedewar / d3py

a plottling library for python, based on D3
1.42k stars 202 forks source link

networkx needed #76

Open idning opened 10 years ago

idning commented 10 years ago

$ 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 commented 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

samthetechie commented 10 years ago

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