pyrevitlabs / pyRevit

Rapid Application Development (RAD) Environment for Autodesk Revit®
http://wiki.pyrevitlabs.io
GNU General Public License v3.0
1.29k stars 331 forks source link

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

Closed BundFang closed 5 months ago

BundFang commented 5 months ago

✈ Pre-Flight checks

🐞 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

jmcouffin commented 5 months ago

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

jmcouffin commented 5 months ago

/install-fix

github-actions[bot] commented 5 months ago

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.

pippo-82 commented 5 months ago

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

jmcouffin commented 5 months ago

In my case I had no addins causing the issue

Many Revit functionalities are treated as addin in Revit.

BundFang commented 5 months ago

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.