Closed Miriapod closed 1 year ago
Fyi, I got this similar error when firing up Revit 2024.1 and I've both pyRevit_CLI_4.8.14.23304_admin_signed.exe and pyRevit_4.8.14.23304_admin_signed.exe installed.
@Miriapod please run the command pyrevit attach master 277 --installed --debug
and report the output here
@jmcouffin, here's my report that I just ran.
Microsoft Windows [Version 10.0.19045.3570]
(c) Microsoft Corporation. All rights reserved.
C:\Users\rob.cross>pyrevit attach master 277 --installed --debug
This is it
@Miriapod please run the command
pyrevit attach master 277 --installed --debug
and report the output here
I did, this long sausage is what i got :)) I hope its spicy and maybe find the problem inside. thanks a lot in advance
Got the same problem on Revit 2022 but on 2021 and 2020 there is no problem and Pyrevit work correctly. Tried also to check is pyrevit is correctly attached. Don't know if it is possible to have some addins conflit.
I don't understand why, but I was able to get beyond this error by removing all 3rd party Revit add-ins except pyRevit. Once I restarted Revit and pyRevit loaded successfully, I was able to add back all the 3rd party add-ins and everything works fine.
It sounds like you've identified a classic case of DLL Hell within the context of Revit and its add-ins. The key issues appear to be version conflicts among the DLLs used by different add-ins, as well as conflicts with the DLL versions that Revit itself relies on.
Multiple add-ins reference common DLLs, but they may have different versions of these DLLs. This can lead to conflicts, as Revit prioritizes its own DLL versions, and compatibility issues arise when add-ins expect a different version.
Revit, as the host application, tends to prioritize its own DLL versions. When conflicts arise with add-in DLLs, this can lead to instability or crashes, especially if the add-ins are not compatible with the versions Revit expects.
Disabling or removing add-ins, except for pyRevit, resolves the issues, indicating that the conflicts are likely caused by the combination of DLLs from different add-ins. However, re-enabling them doesn't work consistently, suggesting that simply enabling an add-in doesn't ensure a clean resolution of DLL conflicts.
Please try one of the installers in the artifacts section of this page
https://github.com/eirannejad/pyRevit/actions/runs/6962280865
These are WIP installers and implements changes that could fix the issues
I installed the first pyrevit exe from the artifact, it woooorked, i am PUMPED , thank you dear internet magic man people :)
internet magic man people
my new title ☝️ :)
Also on another pc , i tried the same sollution but with no succes, i also did the debug report, i hope you guys have the time to take a look, i asume this happens to a lot more users. Thank you in advance, best regards !
C:\Users\xburt>pyrevit attach master 277 --installed --debug
Hello, i I had the same problem again with version 4.14. But i tried to uninstall all plugins and then first installed pyrevit then the others plugins and now there is no error messages. I choose to install version 4.13 to test and it worked.
Describe the bug Py revit loader : ERROR loading pyrevit.
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
C:\Users\xburt>pyrevit env ==> Registered Clones (full git repos) ==> Registered Clones (deployed from archive/image) master | Deploy: "basepublic" | Branch: "master" | Version: "4.8.13.23182+2215" | Path: "C:\Program Files\pyRevit-Master" ==> Attachments master | Product: "Autodesk Revit 2024" | Engine: IPY277 (277) | Path: "C:\Program Files\pyRevit-Master" | AllUsers ==> Installed Extensions ==> Default Extension Search Path C:\Users\xburt\AppData\Roaming\pyRevit\Extensions ==> Extension Search Paths ==> Extension Sources - Default https://github.com/eirannejad/pyRevit/raw/master/extensions/extensions.json ==> Extension Sources - Additional ==> Installed Revits Autodesk Revit 2024 | Version: 24.1.11.26 | Build: 20230911_1230(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2024\" ==> Running Revit Instances Error: Object reference not set to an instance of an object. Run with "--debug" option to see debug messages
Additional context
this is the console commands i additionaly used: `C:\Windows\system32>pyrevit attach master 277 --installed
` THIS ARE THE ERRORS I AM TALKING ABOUT :