From f11b08bde5fe8e578e908c4f665ca129cbb1f75b Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Thu, 30 May 2024 22:34:57 +0200 Subject: [PATCH] BIM: Fixed import in importSHP - fixes #14261 (#14385) --- src/Mod/BIM/importers/importSHP.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/BIM/importers/importSHP.py b/src/Mod/BIM/importers/importSHP.py index 8acd21e1ae..2fcb54416f 100644 --- a/src/Mod/BIM/importers/importSHP.py +++ b/src/Mod/BIM/importers/importSHP.py @@ -127,7 +127,7 @@ def checkShapeFileLibrary(): except Exception: url = "https://raw.githubusercontent.com/GeospatialPython/pyshp/master/shapefile.py" if FreeCAD.GuiUp: - import addonmanager_utilities + import urllib.request import FreeCADGui from PySide import QtGui reply = QtGui.QMessageBox.question(FreeCADGui.getMainWindow(), @@ -136,7 +136,7 @@ def checkShapeFileLibrary(): QtGui.QMessageBox.Yes | QtGui.QMessageBox.No, QtGui.QMessageBox.No) if reply == QtGui.QMessageBox.Yes: - u = addonmanager_utilities.urlopen(url) + u = urllib.request.urlopen(url) if not u: FreeCAD.Console.PrintError(translate("Arch","Error: Unable to download from %1").replace("%1",url)+"\n") return False