pyRevit icon indicating copy to clipboard operation
pyRevit copied to clipboard

Error loading pyRevit - Revit 2021.1.2

Open wafkthompson opened this issue 5 years ago • 13 comments

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:

  1. Open "Revit 2021",
  2. Popup window "PyRevitLoader - Error Loading pyRevit" appears,
  3. Close popup window,
  4. pyRevit tab not loaded in Revit ribbon.

Expected behavior Revit opens (without popup error window). pyRevit tab available from Revit ribbon.

Screenshots image

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

wafkthompson avatar Dec 27 '20 23:12 wafkthompson

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.

eirannejad avatar Jan 15 '21 22:01 eirannejad

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 avatar Jan 16 '21 22:01 wafkthompson

@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

eirannejad avatar Jan 23 '21 03:01 eirannejad

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

eirannejad avatar Feb 02 '21 23:02 eirannejad

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 avatar Feb 03 '21 07:02 kollyboi

@kollyboi Go to pyRevit settings and under Core, switch to "Custom Engine (2.7.11)" This should avoid all ipy conflicts

eirannejad avatar Feb 03 '21 18:02 eirannejad

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 .

kollyboi avatar Feb 05 '21 07:02 kollyboi

OMG that makes me soo happy!!! Closing this for now

eirannejad avatar Feb 05 '21 16:02 eirannejad

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 .

wafkthompson avatar Feb 06 '21 04:02 wafkthompson

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

Luis-B-A avatar May 21 '21 15:05 Luis-B-A

Has anybody found a solution yet?

HArchitekt avatar Aug 02 '21 15:08 HArchitekt

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

ajayholland avatar Mar 02 '23 22:03 ajayholland

@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 pyRevit_2024_df2eec3d0c4a50a5_PyRevitLabs.PyRevit.Runtime.log

Avinash-Verma-26 avatar Aug 30 '23 13:08 Avinash-Verma-26