You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was able to reproduce your error. We did have unit tests for this usecase that created a writer, but the error only happens when trying to add the first shape which we didn't do in the test. Will get this fixed for the next release, though if you're able to submit a PR that will be faster.
w = shapefile.Writer(shp="/path/tofile.shp")
as per the documentation
throws
ShapefileException: No file-like object available.
when trying to write a polygon
w.poly(geometry)
The text was updated successfully, but these errors were encountered: