Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rebuenogan opened this issue Mar 4, 2024 · 14 comments
Closed
Labels
Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class]

Comments

@rebuenogan
Copy link

🚧 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

@rebuenogan rebuenogan added the Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class] label Mar 4, 2024
@jmcouffin
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

/install-fix

Copy link
Contributor

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
Copy link

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
Copy link
Contributor

  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: I need help because pyRevit v4.8.13.23182 doesn't work on Revit 2024Β #2132 (comment)

@guusgooskens
Copy link

@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
Copy link
Contributor

@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
Copy link

Ok thanks for confirming. We will try again

@jmcouffin
Copy link
Contributor

I will consider it solved following these guidelines: #2132 (comment)

@guusgooskens
Copy link

  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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class]
Projects
None yet
Development

No branches or pull requests

3 participants