BIM: Pin upstream pyshp shapefile.py URL to version 2.4.1
This is the safest solution for now until someone can vet the upstream breaking changes (https://github.com/GeospatialPython/pyshp/blob/master/README.md#breaking-changes)
This commit is contained in:
@@ -127,7 +127,8 @@ def checkShapeFileLibrary():
|
||||
try:
|
||||
import shapefile
|
||||
except Exception:
|
||||
url = "https://raw.githubusercontent.com/GeospatialPython/pyshp/refs/heads/master/src/shapefile.py"
|
||||
# pinning to pyshp upstream v2.4.1 since in 3.0.0 the path to shapefile.py changes
|
||||
url = "https://raw.githubusercontent.com/GeospatialPython/pyshp/refs/tags/2.4.1/shapefile.py"
|
||||
if FreeCAD.GuiUp:
|
||||
import urllib.request
|
||||
import FreeCADGui
|
||||
|
||||
Reference in New Issue
Block a user