caesar0301 / s2g

(S)hapefile to(2) (G)raph/network converter in Python
https://pypi.python.org/pypi/s2g
MIT License
24 stars 8 forks source link

ImportError: No module named 'shapegraph' #3

Closed oztalha closed 7 years ago

oztalha commented 7 years ago
In [1]: from s2g import ShapeGraph
   ...: 
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-a9021cd38b6c> in <module>()
----> 1 from s2g import ShapeGraph

/usr/local/lib/python3.5/site-packages/s2g/__init__.py in <module>()
----> 1 from shapegraph import *
      2 from bonus import *

ImportError: No module named 'shapegraph'
oztalha commented 7 years ago

Identified the problem: . is missing in your __init__.py file in your latest pypi version (0.2.5.1), i.e. it should be from .shapegraph import * instead of from shapegraph import *. Your github repo looks OK, this worked: pip install --upgrade https://github.com/caesar0301/s2g/tarball/master