Error loading pyRevit - Revit 2021.1.2
Recently updated to Revit 2021.1.2, and installed pyRevit 4.8.4 afterwards.
pyRevit seemed to install without issue. When I initially opened Revit afterwards, I got the typical security pop up asking me if I want the add-in to "Always Load" or "Do Not Load". After selecting "Always Load", I got the attached popup error window. I get the same popup error window every time I open Revit now. The pyRevit tab in the Revit ribbon does not load.
I tried pyrevit attach master 277 --installed in the command prompt, but it did not resolve the issue.
To Reproduce Steps to reproduce the behavior:
- Open "Revit 2021",
- Popup window "PyRevitLoader - Error Loading pyRevit" appears,
- Close popup window,
- pyRevit tab not loaded in Revit ribbon.
Expected behavior Revit opens (without popup error window). pyRevit tab available from Revit ribbon.
Screenshots

Desktop:
- OS: Windows 10 Version 20H2 (OS Build 19042.685)
- pyRevit Version: 4.8.4
- pyRevit Environment:
C:\Users\wafkt>pyrevit env
==> Registered Clones (full git repos)
==> Registered Clones (deployed from archive/image)
master | Deploy: "basepublic" | Branch: "master" | Version: "4.8.4" | Path: "C:\Users\wafkt\AppData\Roaming\pyRevit-Master"
==> Attachments
master | Product: "Autodesk Revit 2021" | Engine: 277 | Path: "C:\Users\wafkt\AppData\Roaming\pyRevit-Master" | Manifest: "C:\Users\wafkt\AppData\Roaming\Autodesk\Revit\Addins\2021\pyRevit.addin"
==> Installed Extensions
==> Default Extension Search Path
C:\Users\wafkt\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 2021 | Version: 21.1.20.44 | Build: 20201109_1530(x64) | Language: 1033 | Path: "Revit 2021\"
==> Running Revit Instances
Error: Object reference not set to an instance of an object.
Run with "--debug" option to see debug messages
Okay. Seems like pyRevit can not find its own runtime for some reason.
Close all revits and run pyrevit caches clear --all on the command line. This should clear all the caches. Run 2021 again and see if it loads.
Didn't fix the issue for me. I tried rolling back to 4.7.6, and it doesn't seem to work either. Nothing happens at all. No error messages.
@wafkthompson Okay launch pyRevit and let it crash. Then go to %appdata%/pyRevit/20XX and grab the pyRevit_20XX_***_PyRevitLabs.PyRevit.Runtime.log file and send to me please
v4.8.5 is published. Would you mind testing this? If it didn't work try attaching pyRevit using the custom IronPython engine pyrevit attach master default --installed
Hi.
I'm getting the old wpf error on ipy 2710, but it works with the default 277, but then I can't use the corporate addin which uses 2710. [image: image.png]
On Wed, Feb 3, 2021 at 12:53 AM Ehsan Iran-Nejad [email protected] wrote:
v4.8.5 is published. Would you mind testing this? If it didn't work try attaching pyRevit using the custom IronPython engine pyrevit attach master default --installed
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/eirannejad/pyRevit/issues/1106#issuecomment-772096385, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKVTL6OBL72ERXENMK7FV7LS5CF65ANCNFSM4VLJKMJQ .
@kollyboi Go to pyRevit settings and under Core, switch to "Custom Engine (2.7.11)" This should avoid all ipy conflicts
YES! ❤
On Wed, Feb 3, 2021 at 8:03 PM Ehsan Iran-Nejad [email protected] wrote:
@kollyboi https://github.com/kollyboi Go to pyRevit settings and under Core, switch to "Custom Engine (2.7.11)" This should avoid all ipy conflicts
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/eirannejad/pyRevit/issues/1106#issuecomment-772720149, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKVTL6KQ55H3Y3NPR2SIIN3S5GJPTANCNFSM4VLJKMJQ .
OMG that makes me soo happy!!! Closing this for now
Sorry for the late reply. I'm a college instructor. Busy times.
The log file has nothing in it - 0 KB.
I have a lot of add-ins installed - I know sometime they don't play nice with each other.
[image: image.png]
On Fri, Jan 22, 2021 at 8:59 PM Ehsan Iran-Nejad [email protected] wrote:
@wafkthompson https://github.com/wafkthompson Okay launch pyRevit and let it crash. Then go to %appdata%/pyRevit/20XX and grab the pyRevit_20XX_***_PyRevitLabs.PyRevit.Runtime.log file and send to me please
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/eirannejad/pyRevit/issues/1106#issuecomment-765860249, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASI5PVN32EQR2IL2SNEAYP3S3JCQ3ANCNFSM4VLJKMJQ .
I'm struggling with this issue as well. I have read that it is often fixed by uninstalling other add-ins but I am really hoping to keep them since I use all of my add-ins regularly
Has anybody found a solution yet?
We are a design firm with more than one hundred Revit users. We use VPN, VDI and local processing. With the latest version of pyRevit (pyRevit_4.8.12.22247_signed), the program will crash upon opening. Usually, a re-install will correct the problem, but we have some unsolved cases in Revit version 2022. Is there a solution that does not require coding? ~Allen Holland Boulder Associates
@wafkthompson Okay launch pyRevit and let it crash. Then go to
%appdata%/pyRevit/20XXand grab thepyRevit_20XX_***_PyRevitLabs.PyRevit.Runtime.logfile and send to me please pyRevit_2024_df2eec3d0c4a50a5_PyRevitLabs.PyRevit.Runtime.log