I have geoalchemy2 on my machine. If I import geoalchemy2 and run geoalchemy2.shape
, I got: AttributeError: module 'geoalchemy2' has no attribute 'shape'
. But if I run geoalchemy2.shape.to_shape()
, it can find the method... I am confused on the differences between the two usage of geoalchemy2.shape. Why the differences happen?
Asked
Active
Viewed 129 times
0

Quan Zhou
- 307
- 1
- 12
-
Please provide a [reprex]. – Andrew Fan Jun 19 '19 at 01:45
-
I am going to remove my question since I cannot reliably reproduce my problem either.. I just tried two times. One reproduced the problem, the other didn't.... Thanks for your reply! – Quan Zhou Jun 20 '19 at 03:05
1 Answers
0
For me this happened if shapely is not installed in the environment, got it when dockerizing an app.

Cristian Garcia
- 9,630
- 6
- 54
- 75