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:
luzpaz
2025-09-18 16:43:18 -04:00
committed by Yorik van Havre
parent d9124497d3
commit ea08cb6776

View File

@@ -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