jpeterbaker / maxfield

Code for maximizing the Ingress fields on a given set fo portals
GNU General Public License v3.0
165 stars 56 forks source link

Error - ImportError: No module named networkx #10

Closed luckyinva closed 10 years ago

luckyinva commented 10 years ago

I used Canopy and tried to execute. Please let me know if you require more info.

Glenns-MacBook-Pro:maxfield-master lucky$ python makePlan.py 4 EXAMPLE.csv out/ output.pkl Traceback (most recent call last): File "makePlan.py", line 43, in import networkx as nx ImportError: No module named networkx Glenns-MacBook-Pro:maxfield-master lucky$

Glenns-MacBook-Pro:maxfield-master lucky$ ls Glenns-MacBook-Pro:maxfield-master lucky$ python makePlan.py 4 EXAMPLE.csv out/ output.pkl Traceback (most recent call last): File "makePlan.py", line 43, in import networkx as nx ImportError: No module named networkx Glenns-MacBook-Pro:maxfield-master lucky$ ls EXAMPLE.csv README.txt lib makePlan.py Glenns-MacBook-Pro:maxfield-master lucky$ ls -ltr total 40 -rwxr-xr-x@ 1 lucky staff 5942 Feb 1 10:19 makePlan.py drwxr-xr-x@ 11 lucky staff 374 Feb 1 10:19 lib -rwxr-xr-x@ 1 lucky staff 5034 Feb 1 10:19 README.txt -rwxr-xr-x@ 1 lucky staff 1792 Feb 1 10:19 EXAMPLE.csv

jpeterbaker commented 10 years ago

It looks like your Python doesn't have Networkx. Are you sure you are running the Python that Canopy installed? Their website says Networkx is still included: https://www.enthought.com/products/canopy/package-index/

luckyinva commented 10 years ago

I needed that module and didn't know it. After installing it and restarting the shell it worked fine.

Regards,

Glenn On Mar 13, 2014 11:02 PM, "Jonathan Baker" notifications@github.com wrote:

It looks like your Python doesn't have Networkx. Are you sure you are running the Python that Canopy installed? Their website says Networkx is still included: https://www.enthought.com/products/canopy/package-index/

Reply to this email directly or view it on GitHubhttps://github.com/jpeterbaker/maxfield/issues/10#issuecomment-37612656 .