pyrevitlabs / pyRevit

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

I need help because pyRevit v4.8.13.23182 doesn't work on Revit 2024 #2132

Closed rebuenogan closed 6 months ago

rebuenogan commented 8 months ago

🚧 If you have SentinelOne installed as an antivirus, look no further. You will need to create exceptions for Revit and pyRevit, both on the software and the %appdata% folders.

SentinelOne is not installed

✈ Pre-Flight checks

We did the following troubleshooting steps:

  1. Uninstalled Pyrevit version 4.8.14
  2. Removed %appdata%/pyrevit and %appdata%/pyrevit-master folder
  3. We went to C:\ProgramData\Autodesk\Revit\Addins\
  4. Moved Revit add-ins to a temporary location
  5. Restarted his computer
  6. Installed Pyrevit version 4.8.13
  7. Started Revit 2024 for a few minutes and then closed it
  8. Brought back the Revit add-ins from the temporary location to C:\ProgramData\Autodesk\Revit\
  9. Started Revit 2024
  10. Pyrevit version 4.8.13 did not show up

🐞 Describe the bug

pyRevit v4.8.13.23182 add-in doesn't show up in Revit 2024

⏲️ Expected behavior

pyRevit v4.8.13.23182 add-in should show up in Revit 2024

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

Windows 11 Professional Edition (64-bit) pyRevit v4.8.13.23182

92482_pyrevit_env

Additional context

We also uninstalled Visual Studio 2022 but that did not fix the missing pyRevit v4.8.13.23182 add-in in Revit 2024

jmcouffin commented 8 months ago

The version installed is not the latest release, I would start with that.

then try this command line and report please

pyrevit attach master 2711 --installed --allusers

if nothing works try these https://pyrevitlabs.notion.site/Installation-issues-f6495adb56254e9e8021f8a68e3b2ab7?pvs=74

rebuenogan commented 8 months ago

The version installed is not the latest release, I would start with that.

then try this command line and report please

pyrevit attach master 2711 --installed --allusers

if nothing works try these https://pyrevitlabs.notion.site/Installation-issues-f6495adb56254e9e8021f8a68e3b2ab7?pvs=74

Hi @jmcouffin these were the steps that we did today:

1.) Ran CMD as an admin and then entered the command line: pyrevit attach master 2711 --installed --allusers image

2.) Opened Revit 2024 and we encountered this loading error image

3.) Closed the loading error screen and Revit 2024

4.) Entered the command line: pyrevit attached

5.) Entered the command line: pyrevit attach master 2711 --installed
image

6.) Opened Revit 2024 and we still encountered this loading error image

The loading error screen doesn't look like the "Error dynamically compiling pyRevit runtime" that is shown in your link: https://pyrevitlabs.notion.site/Installation-issues-f6495adb56254e9e8021f8a68e3b2ab7

jmcouffin commented 8 months ago

The loading error screen doesn't look like the "Error dynamically compiling pyRevit runtime" that is shown in your link: https://pyrevitlabs.notion.site/Installation-issues-f6495adb56254e9e8021f8a68e3b2ab7

Even though this is not the same exact error message, the solutions in the article do work for this. Please do try them one at a time thoroughly.

rebuenogan commented 8 months ago

The loading error screen doesn't look like the "Error dynamically compiling pyRevit runtime" that is shown in your link: https://pyrevitlabs.notion.site/Installation-issues-f6495adb56254e9e8021f8a68e3b2ab7

Even though this is not the same exact error message, the solutions in the article do work for this. Please do try them one at a time thoroughly.

Hi @jmcouffin we followed those steps today but the Pyrevit add-in is still not showing up image

jmcouffin commented 7 months ago

/install-fix

github-actions[bot] commented 7 months ago

Hi @rebuenogan, 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.

guusgooskens commented 7 months ago

Hi @rebuenogan, @jmcouffin, we are receiving the same error message on Revit startup.

Did you manage to find a fix?

Our pyRevit env:

image

jmcouffin commented 7 months ago
  1. try uninstalling the current version and use one of the wip installers
  2. if it does not work, try renaming the pyrevit.addin file to something like 0_pyrevit.addin, so that it loads first.
  3. and if it still does not work: https://github.com/eirannejad/pyRevit/issues/2132#issuecomment-2028077188
guusgooskens commented 7 months ago

@jmcouffin thanks again! We tried step 1 attaching WIP installer as you can see under clones, no luck I am afraid. Also not with other 2 steps.

Our user reporting this issue is running Windows 11, just like @rebuenogan. Could this cause the error?

jmcouffin commented 7 months ago

@jmcouffin thanks again! We tried step 1 attaching WIP installer as you can see under clones, no luck I am afraid. Also not with other 2 steps.

Our user reporting this issue is running Windows 11, just like @rebuenogan. Could this cause the error?

it shouldn't, I run pyrevit on 2 computers one with win10 and the other with win11, no issue. Most probably a addin incompatibility issi. Step 3 works 99% of the time

guusgooskens commented 7 months ago

Ok thanks for confirming. We will try again

jmcouffin commented 6 months ago

I will consider it solved following these guidelines: https://github.com/pyrevitlabs/pyRevit/issues/2132#issuecomment-2028077188

guusgooskens commented 6 months ago
  1. if it does not work, try renaming the pyrevit.addin file to something like 0_pyrevit.addin, so that it loads first.

This fixed the above error for all users. Could the next release possibly create the _pyrevit.addin file?

After the fix however, we are still getting the Error dynamically compiling pyRevit runtime.

I will refer users to the installation issues guide, but it is hard to fix as no one has admin rights to edit Revit addins folders.

jmcouffin commented 6 months ago

This fixed the above error for all users. Could the next release possibly create the _pyrevit.addin file? We are thinking of fixing it packing the dependencies into one so that we don't have to rename the addin file. Imagine all Revit addins editor doing so, we would end up doing __pyrevit.addin ;p