pyRevit
pyRevit copied to clipboard
Cannot import name ManagementObjectSearcher / AttributeError: 'module' object has no attribute 'engine'
Describe the bug I get theses errors when clicking almost any button in the Pyrevit ribbons: Either:
IronPython Traceback:
Traceback (most recent call last):
File "C:\Users\...\AppData\Roaming\pyRevit-Master\extensions\pyRevitTools.extension\pyRevit.tab\Drawing Set.panel\Sheets.pulldown\Select Sheets.pushbutton\script.py", line 3, in <module>
File "C:\Users\...\AppData\Roaming\pyRevit-Master\pyrevitlib\pyrevit\__init__.py", line 74, in <module>
AttributeError: 'module' object has no attribute 'engine'
or:
Cannot import name ManagementObjectSearcher
Desktop (please complete the following information):
- OS: Win10
- pyRevit Version [4.8.10]
- pyRevit Environment:
==> Registered Clones (full git repos)
==> Registered Clones (deployed from archive/image)
master | Deploy: "basepublic" | Branch: "master" | Version: "4.8.10.22040+1743" | Path: "C:\Users\...\AppData\Roaming\pyRevit-Master"
==> Attachments
master | Product: "Autodesk Revit 2023" | Engine: IPY277 (277) | Path: "C:\Users\...\AppData\Roaming\pyRevit-Master"
master | Product: "Autodesk Revit 2022" | Engine: IPY277 (277) | Path: "C:\Users\...\AppData\Roaming\pyRevit-Master"
master | Product: "Autodesk Revit 2021" | Engine: IPY277 (277) | Path: "C:\Users\...\AppData\Roaming\pyRevit-Master"
master | Product: "2020.2.1 (New Install)" | Engine: IPY277 (277) | Path: "C:\Users\...\AppData\Roaming\pyRevit-Master"
master | Product: "2019.2.2 Hotfix" | Engine: IPY277 (277) | Path: "C:\Users\...\AppData\Roaming\pyRevit-Master"
==> Installed Extensions
BetterTools | Type: Unknown | Repo: "" | Installed: "C:\Users\...\AppData\Roaming\pyRevit\Extensions\BetterTools.extension"
EF-Tools | Type: UIExtension | Repo: "https://github.com/ErikFrits/EF-Tools.git" | Installed: "C:\Users\...\AppData\Roaming\pyRevit\Extensions\EF-Tools.extension"
PyRevitMEP | Type: UIExtension | Repo: "https://github.com/CyrilWaechter/pyRevitMEP.git" | Installed: "C:\Users\...\AppData\Roaming\pyRevit\Extensions\PyRevitMEP.extension"
==> Default Extension Search Path
C:\Users\...\AppData\Roaming\pyRevit\Extensions
==> Extension Search Paths
C:\Users\...\AppData\Roaming\pyRevit-Master
C:\Users\...\AppData\Roaming\pyRevit\Extensions
==> Extension Sources - Default
https://github.com/eirannejad/pyRevit/raw/master/extensions/extensions.json
==> Extension Sources - Additional
==> Installed Revits
Autodesk Revit 2023 | Version: 23.0.1.318 | Build: 20220304_1515(x64) | Language: 1033 | Path: "C:\Programme\Autodesk\Revit 2023\"
Autodesk Revit 2022 | Version: 22.1.21.13 | Build: 20220123_1515(x64) | Language: 1033 | Path: "C:\Programme\Autodesk\Revit 2022\"
Autodesk Revit 2021 | Version: 21.1.60.25 | Build: 20220123_1515(x64) | Language: 1033 | Path: "C:\Programme\Autodesk\Revit 2021\"
2020.2.1 (New Install) | Version: 20.2.12.1 | Build: 20200210_1400(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2020\"
2019.2.2 Hotfix | Version: 19.2.20.24 | Build: 20190808_0900(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2019\"
==> Running Revit Instances
Error: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
Run with "--debug" option to see debug messages
Seems like System.Management.dll
is missing for some reason