pyrevitlabs/pyRevit

PyRevitLoader - Error Loading pyRevit in 2023 and 2024[Bug]:

BundFang opened this issue · 6 comments

✈ Pre-Flight checks

  • I don't have SentinelOne antivirus installed (see above for the solution)
  • I have searched in the issues (open and closed) but couldn't find a similar issue
  • I have searched in the pyRevit Forum for similar issues
  • I already followed the installation troubleshooting guide thoroughly
  • I am using the latest pyRevit Version

🐞 Describe the bug

I uninstalled pyRevit and ran the pyRevit v4.8.16.24121. After restarting my computer and opening Revit 2023 and 2024, I got the attached error. Any fix?

image
2024-05-01 09_07_23-

⌨ Error/Debug Message

none

♻️ To Reproduce

No response

⏲️ Expected behavior

No response

🖥️ Hardware and Software Setup (please complete the following information)

Windows 10 Business

Additional context

No response

First you can try renaming the pyrevit.addin file appending a 0 to it so that it loads first.

/install-fix

Hi @BundFang, Try these steps:

  1. Uninstall pyRevit

  2. Delete C:\ProgramData and %AppData%\ pyRevit and pyrevit-master folders

  3. Move all Revit addins to a temporary location. Usual addins locations include:

    • %AppData%\Autodesk\Revit\Addins
    • %AppData%\Autodesk\ApplicationPlugins
    • %ProgramData%\Autodesk\Revit\Addins
    • %ProgramData%\Autodesk\ApplicationPlugins
  4. [Reboot computer]

  5. Reinstall pyRevit

  6. Started each version of Revit confirming pyRevit successfully compiled at startup.

  7. Move all Revit addins that were moved in step 3 back to their original location.
    You may want to add them one at a time and start a revit session everytime to figure out which ones are causing the issue.

Hi @BundFang, Try these steps:

  1. Uninstall pyRevit

  2. Delete C:\ProgramData and %AppData%\ pyRevit and pyrevit-master folders

  3. Move all Revit addins to a temporary location. Usual addins locations include:

    • %AppData%\Autodesk\Revit\Addins
    • %AppData%\Autodesk\ApplicationPlugins
    • %ProgramData%\Autodesk\Revit\Addins
    • %ProgramData%\Autodesk\ApplicationPlugins
  4. [Reboot computer]

  5. Reinstall pyRevit

  6. Started each version of Revit confirming pyRevit successfully compiled at startup.

  7. Move all Revit addins that were moved in step 3 back to their original location.
    You may want to add them one at a time and start a revit session everytime to figure out which ones are causing the issue.

Had the same issue and solved with all the steps you listed.
In my case I had no addins causing the issue.

PP

In my case I had no addins causing the issue

Many Revit functionalities are treated as addin in Revit.

Thank you everyone!
The below steps helped.

Hi @BundFang, Try these steps:

  1. Uninstall pyRevit

  2. Delete C:\ProgramData and %AppData%\ pyRevit and pyrevit-master folders

  3. Move all Revit addins to a temporary location. Usual addins locations include:

    • %AppData%\Autodesk\Revit\Addins
    • %AppData%\Autodesk\ApplicationPlugins
    • %ProgramData%\Autodesk\Revit\Addins
    • %ProgramData%\Autodesk\ApplicationPlugins
  4. [Reboot computer]

  5. Reinstall pyRevit

  6. Started each version of Revit confirming pyRevit successfully compiled at startup.

  7. Move all Revit addins that were moved in step 3 back to their original location.
    You may want to add them one at a time and start a revit session everytime to figure out which ones are causing the issue.