Skip to content

Polygon bundle issue #4

@Makosak

Description

@Makosak

Running into trouble with one of the new dependencies. I installed the Polygon package dependency successfully:

    pip install https://bitbucket.org/jraedler/polygon2/downloads/Polygon2-2.0.6.zip

to run the standard (upgraded) tutorial. When trying to import blobs though, I'm running into this error:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-4-fe6403f9a88f> in <module>()
      1 # Import required libraries and assign root directory of blobs to root
----> 2 import Polygon
      3 import blobs
      4 import numpy as np
      5 import pandas as pd

/Users/Makosak/anaconda/lib/python2.7/site-packages/Polygon/__init__.py in <module>()
      3 
      4 # import everything from cPolygon
----> 5 from cPolygon import *
      6 
      7 # keep namespace clean

ImportError: No module named cPolygon

This shouldn't be happening as I can see that Polygon was installed successfully (as Polygon2). Of course I've already tried swapping out "Polygon" with "Polygon2" but the same issue comes up. I'm running through troubleshooting now. Either need to add an additional build step, or may be an issue with the dependency (Polygon2 vs Polygon)?

Alternatively, maybe using pySAL to manage the polygons input/output, as we're already using the library?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions