Skip to content

cannot import name 'asPolygon' from 'shapely.geometry' #4

Description

@p91g

Hi there,

I have the latest version of shapely and it doesn't seem to recognise 'asPolygon'. Has this been depreciated from shapely?

import spacv
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\x\Documents\spopt_venv\lib\site-packages\spacv_init_.py", line 5, in
from .spacv import *
File "C:\Users\x\Documents\spopt_venv\lib\site-packages\spacv\spacv.py", line 7, in
from .grid_builder import construct_blocks, assign_pt_to_grid
File "C:\Users\x\Documents\spopt_venv\lib\site-packages\spacv\grid_builder.py", line 3, in
from shapely.geometry import Polygon, asPolygon
ImportError: cannot import name 'asPolygon' from 'shapely.geometry' (C:\Users\x\Documents\spopt_venv\lib\site-packages\shapely\geometry_init_.py)

Any recommendations would be greatly appreciated :)

P

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions