From ea08cb677687fca33eb426b87ccf5c7496c4918b Mon Sep 17 00:00:00 2001 From: luzpaz Date: Thu, 18 Sep 2025 16:43:18 -0400 Subject: [PATCH] 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) --- src/Mod/BIM/importers/importSHP.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/BIM/importers/importSHP.py b/src/Mod/BIM/importers/importSHP.py index 1aab574524..0bc7f7ec8f 100644 --- a/src/Mod/BIM/importers/importSHP.py +++ b/src/Mod/BIM/importers/importSHP.py @@ -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