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

[Bug]: Can't install pyRevit_5.0.0.25034_signed.exe Revit 2025 #2577

Closed
5 tasks done
BIMGSE opened this issue Feb 10, 2025 · 34 comments
Closed
5 tasks done

[Bug]: Can't install pyRevit_5.0.0.25034_signed.exe Revit 2025 #2577

BIMGSE opened this issue Feb 10, 2025 · 34 comments
Assignees
Labels
Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class] Not pyRevit Issue This is not a pyRevit issue. Might be related to environment, host app, or other dependencies.

Comments

@BIMGSE
Copy link

BIMGSE commented Feb 10, 2025

✈ 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

Hello,

I’m trying to install PyRevit 2025 on company PC, and after uninstalled previous version and installed version pyRevit_5.0.0.25034_signed.exe when I open Revit I get the message to load the plugin, but after that Revit 2025.4 crashes…

If I disabled PyRevitloader in the plugin menu, Revit 2025 opens fine.

Image

Does anyone know how to install pyRevit 2025 ?

Btw my PyRevit works on 2022 2023 2024, I tested all of them. I have sentinel one but our IT guy did the exception last year and Pyrevit works on previous Revit versions.

Thanks,
Kind Regards,

⌨ Error/Debug Message

https://i.imgur.com/QkMYaYQ.png

Revit crash message

♻️ To Reproduce

No response

⏲️ Expected behavior

No response

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

Microsoft Windows [version 10.0.19045.5247]
(c) Microsoft Corporation. Tous droits réservés.

C:\Users\gseuser>pyrevit env
==> Registered Clones (full git repos)
==> Registered Clones (deployed from archive/image)
master | Branch: "master" | Version: "5.0.0.25034+1521" | Path: "C:\Users\gseuser\AppData\Roaming\pyRevit-Master"
==> Attachments
master | Product: "Autodesk Revit 2025" | Engine: DEFAULT (2712) | Path: "C:\Users\gseuser\AppData\Roaming\pyRevit-Master"
master | Product: "2024.3" | Engine: DEFAULT (2712) | Path: "C:\Users\gseuser\AppData\Roaming\pyRevit-Master"
master | Product: "2023.1.1" | Engine: DEFAULT (2712) | Path: "C:\Users\gseuser\AppData\Roaming\pyRevit-Master"
master | Product: "2022.1.3" | Engine: DEFAULT (2712) | Path: "C:\Users\gseuser\AppData\Roaming\pyRevit-Master"
==> Installed Extensions
==> Default Extension Search Path
C:\Users\gseuser\AppData\Roaming\pyRevit\Extensions
==> Extension Search Paths
==> Extension Sources - Default
https://github.com/pyrevitlabs/pyRevit/raw/master/extensions/extensions.json
==> Extension Sources - Additional
==> Installed Revits
Autodesk Revit 2025 | Version: 25.0.2.419 | Build: 20240307_1300(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2025\"
2024.3 | Version: 24.3.0.13 | Build: 20240912_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2024\"
2023.1.1 | Version: 23.1.10.4 | Build: 20221122_1550(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2023\"
2022.1.3 | Version: 22.1.30.34 | Build: 20220520_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2022\"
==> Running Revit Instances
PID: 1180 | 2023.1.1 | Version: 23.1.10.4 | Build: 20221122_1550(x64) | Language: 0 | Path: "C:\Program Files\Autodesk\Revit 2023"
==> User Environment
Microsoft Windows 10 [Version 10.0.19045]
Executing User: GSEGROUP\gseuser
Active User: GSEGROUP\gseuser
Admin Access: No
%APPDATA%: "C:\Users\gseuser\AppData\Roaming"
Latest Installed .Net Framework: 8.0.12
No .Net Target Packs are installed.
No .Net-Core Target Packs are installed.
pyRevit CLI v5.0.0.25034+1521.5254fce169ea7164f9452751d9c91c580e45ef5b

Additional context

Thank you for your help.

@BIMGSE BIMGSE added the Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class] label Feb 10, 2025
@jmcouffin
Copy link
Contributor

Please provide a Revit journal file

Also, can you try disabling other adding, enable pyrevit then enabling other plugins one at a time

@BIMGSE
Copy link
Author

BIMGSE commented Feb 10, 2025

Please provide a Revit journal file

Also, can you try disabling other adding, enable pyrevit then enabling other plugins one at a time

Hi JM thanks for the reply. Enabling only pyrevit still makes Revit crash. Pyrevit works fine on other Revit versions, it's just 2025 that doesn't work.

I will check on Revit journal files tomorrow morning as I'm with the kids now. Cheers

@BIMGSE
Copy link
Author

BIMGSE commented Feb 11, 2025

Please provide a Revit journal file

Also, can you try disabling other adding, enable pyrevit then enabling other plugins one at a time

Hi JM,

Here is the journal file. I've put it in chatgpt so that it can have a look, and this is what it tells me :

"The last few lines directly point out an API_ERROR related to pyRevitLoader.dll:
' 0:< API_ERROR { : Assembly version conflict in some references in pyRevitLoader.dll assembly 'Addin's module RevitAPI of version 25.0.0.0 conflicts with same preloaded module of version 25.4.0.0 }

This suggests that the pyRevitLoader.dll is referencing RevitAPI and RevitAPIUI versions which mismatch with the expected version 25.4.0.0."

Does this mean that I should uninstall Revit and go back to Revit 2025.1 ?

Thanks a lot for your help @jmcouffin ! 😊

journal.0051.txt

journal.0051.worker1.log

@BIMGSE
Copy link
Author

BIMGSE commented Feb 11, 2025

I've also noticed that wether we install it with signed.exe with my standard rights or admin_signed.exe with helpdesk's admin rights, in C:\Users\users\AppData\Roaming\pyRevit in each folder 2022 2023 2024 2025 there are files, except in 2025 there is nothing.

Wether it be on the admin user folder or my user folder, the 2025 is always empty. In the other folders there are files such as :

Image

But in 2025 folder it's empty

Image

Don't know if that helps or not.

@jmcouffin
Copy link
Contributor

the 2025 is always empty

In your case, this is expected: this folder contains the cache of the pyRevit UI compilation at runtime. As your launch in 2025 was not successful, the cache was not built.

@jmcouffin
Copy link
Contributor

This suggests that the pyRevitLoader.dll is referencing RevitAPI and RevitAPIUI versions which mismatch with the expected version 25.4.0.0."

Does this mean that I should uninstall Revit and go back to Revit 2025.1 ?

Not an issue per se,
if you look for that same exact sentence in your journal, you will find that even autodesk addins provoke it: BatchPrint for example.

@jmcouffin
Copy link
Contributor

Can you make tou IT guy triple the double check on SentinelOne?
I am 90% confident this is the cause of the issue. Hard crash usually happening within Revit leave a trace in the journal file, this one seems to be external.

@BIMGSE
Copy link
Author

BIMGSE commented Feb 11, 2025

I checked and just in case I have the latest Revit version

Image

@BIMGSE
Copy link
Author

BIMGSE commented Feb 11, 2025

I did a new check of latest journal file, here's the lines with error and pyrevit together

"0:< API_ERROR { : Assembly version conflict in some references in pyRevitLoader.dll assembly
'Addin's module RevitAPI of version 25.0.0.0 conflicts with same preloaded module of version 25.4.0.0
'Addin's module RevitAPIUI of version 25.0.0.0 conflicts with same preloaded module of version 25.4.0.0 }"

This is what chatgpt says when reading the dump files

Conclusion on Crash Cause

Based on the information provided in the dump file, the most likely cause of the Revit crash is conflicts between different versions of assemblies used by the core application and various plugins, particularly:
Version Mismatches: Modules like RevitAPI and RevitAPIUI.

Plugin Compatibility: Some plugins such as pyRevit, BatchPrint, and eTransmitForRevit loading older versions of these core assemblies.

To conclusively determine and fix the crash:

  • Ensure all plugins, especially pyRevit, are updated to the latest versions supporting Revit 2025.
  • Isolation testing by running Revit with individual plugins can help identify the main culprits.
  • Checking for updates or patches from plugin developers for compatibility with Revit 2025.

This analysis is based on the error and status entries in the journal file, which strongly suggest that the mismatched assembly versions are the root cause of the application instability and subsequent crash.

@BIMGSE
Copy link
Author

BIMGSE commented Feb 11, 2025

Can you make tou IT guy triple the double check on SentinelOne? I am 90% confident this is the cause of the issue. Hard crash usually happening within Revit leave a trace in the journal file, this one seems to be external.

I've asked the IT guys to triple check sentinel one. But why would sentinelone block Pyrevit on 2025 but not on 2024 2023 2022 ? It's very weird.

@jmcouffin
Copy link
Contributor

I've asked the IT guys to triple check sentinel one. But why would sentinelone block Pyrevit on 2025 but not on 2024 2023 2022 ? It's very weird.

Because the exceptions were made before installing pyRevit and Revit 2025 maybe.

And please do not waste our time with chatGPT answers. The answer is all BS in the context of Revit.
We ask chatGPT ourselves if required.

@BIMGSE
Copy link
Author

BIMGSE commented Feb 11, 2025

I've asked the IT guys to triple check sentinel one. But why would sentinelone block Pyrevit on 2025 but not on 2024 2023 2022 ? It's very weird.

Because the exceptions were made before installing pyRevit and Revit 2025 maybe.

And please do not waste our time with chatGPT answers. The answer is all BS in the context of Revit. We ask chatGPT ourselves if required.

No worries, I'm just asking chatgpt to have a quick look at the thousands of lines to make life a little easier. I'm not knowledgeable enough to digest such a big file, hence my thread here.

We are currently uninstalling Revit 2025 and going to install Revit 2025.1 to see if that changes anything. IT guys have also asked to take my PC out of SentinelOne temporarily to see if that helps. Thanks, i'll keep you updated.

@jmcouffin
Copy link
Contributor

SentinelOne temporarily to see if that helps.

Good move to test it

@BIMGSE
Copy link
Author

BIMGSE commented Feb 11, 2025

SentinelOne temporarily to see if that helps.

Good move to test it

So I'm out of S1, and we uninstalled / reinstalled Revit 2025. we downloaded the non updated version, which turns out to be 2025.2

We uninstalled PyRevit too.

Now what is very strange, is that when I open Revit 2022, Revit 2023, Revit 2024 all works fine. But if I open Revit 2025 it crashes, just like when I activated PyRevit plugin. This time I disable ALL plugins, and Revit 2025.2 still crashes... What on earth is going on...

Here is the dump file, if you want to have a look. I can't find anything inside it.

journal.0059.txt

@BIMGSE
Copy link
Author

BIMGSE commented Feb 11, 2025

So I updated Revit 2025.2 to Revit 2025.4, and now Revit launches without crashes... How intriguing. Now I'm going to try and activate Pyrevit in the Addin Manager. 🤞🏻

@BIMGSE
Copy link
Author

BIMGSE commented Feb 11, 2025

Revit 2025.4 opens with all addins except PyRevit

Now I'll try with only PyRevit activated 🤞🏻

@BIMGSE
Copy link
Author

BIMGSE commented Feb 11, 2025

So with only pyRevit_5.0.0.24345_admin_signed installed and Revit 2025.4 it still crashes. I'm back to square one :(

Image

Image

S1 is disabled, so in theory it shouldn't come from that ?

PyRevit works perfectly on all other Revit version installed.

@jmcouffin what else could we try ? 🙏🏻

@BIMGSE
Copy link
Author

BIMGSE commented Feb 11, 2025

Maybe if someone sends me their cache files for 2025 it can launch ?

Image

@BIMGSE
Copy link
Author

BIMGSE commented Feb 11, 2025

Can you make tou IT guy triple the double check on SentinelOne? I am 90% confident this is the cause of the issue. Hard crash usually happening within Revit leave a trace in the journal file, this one seems to be external.

So the IT guy completely disabled S1, and then miracle : Revit 2025 with Pyrevit launched no problem. So it seems it was indeed S1 that was causing the problem.

The IT guy whitelisted :

Autodesk
C:\Program Files\Autodesk
C:\Program Files (x86)\Autodesk
C:\Users\jsanders\AppData\Roaming\Autodesk
C:\Users\jsanders\AppData\Local\Autodesk

PyRevit :
C:\Program Files\pyRevit-Master
C:\Users\jsanders\AppData\Roaming\pyRevit
C:\Users\Administrateur\AppData\Roaming\pyRevit (folders are almost empty but just in case)
C:\Users\deploy_gse\AppData\Roaming\pyRevit (folders are almost empty but just in case)

And when turning back S1 on, Revit crashes again. What other folders / files / stuff needs to be whitelisted ?

@BIMGSE
Copy link
Author

BIMGSE commented Feb 11, 2025

@jmcouffin our IT guy has also planned to call S1. Let's hope this problem can finally be fixed, seems to me that S1 are lazy and don't want to resolve this issue. I'm trying to convey our frustration as much as possible so that S1 can finally hear us and fix their sh*t.

@BIMGSE
Copy link
Author

BIMGSE commented Feb 11, 2025

We tried also whitelisting C:\ProgramData\Autodesk\Revit\Addins\2025\pyRevit.addin

But still no success.

@jmcouffin
Copy link
Contributor

our IT guy has also planned to call S1. Let's hope this problem can finally be fixed, seems to me that S1 are lazy and don't want to resolve this issue. I'm trying to convey our frustration as much as possible so that S1 can finally hear us and fix their sh*t.

I am with you on that.
I tried, but have no leverage except bad reviews.
a sales person from the czech team contacted me and said they would push my request higher up... still waiting.

@jmcouffin
Copy link
Contributor

I remember one of the user said they had to whitelist .exe files. (dlls too?)

@jmcouffin
Copy link
Contributor

So the IT guy completely disabled S1, and then miracle : Revit 2025 with Pyrevit launched no problem. So it seems it was indeed S1 that was causing the problem.

this is good news (somehow)

@jmcouffin jmcouffin added the Not pyRevit Issue This is not a pyRevit issue. Might be related to environment, host app, or other dependencies. label Feb 11, 2025
@jmcouffin jmcouffin self-assigned this Feb 11, 2025
@BIMGSE
Copy link
Author

BIMGSE commented Feb 12, 2025

So the IT guy completely disabled S1, and then miracle : Revit 2025 with Pyrevit launched no problem. So it seems it was indeed S1 that was causing the problem.

this is good news (somehow)

S1 did an update, Revit 2025 still doesn't work. IT guy says he's gonna call them again and press harder. More news later. One can only hope.

@BIMGSE
Copy link
Author

BIMGSE commented Feb 14, 2025

Hi @jmcouffin so after exchanging with S1, unfortunately it seems that they didn't natively make PyRevit whitelisted (are they useless ...?)

Here are the parameters to add on S1 by our IT guy for Pyrevit to work

Image

@jmcouffin
Copy link
Contributor

are they useless ...?

not entirely 🤣

Thanks for the image, I will put it in the notion page about installation issues and Sentinel One. This will be useful

@BIMGSE
Copy link
Author

BIMGSE commented Feb 14, 2025

Also is it normal that Pyrevit takes 14s to load compared to other plugins who take less than 1s ?

Image

@jmcouffin
Copy link
Contributor

jmcouffin commented Feb 14, 2025

Also is it normal that Pyrevit takes 14s to load compared to other plugins who take less than 1s ?

Yes, unfortunately, and this is all because it parses and create the buttons in the UI at loading time...

And this is a hot and tough topic

#2575 #2576

@BIMGSE
Copy link
Author

BIMGSE commented Feb 14, 2025

Hello I still have a problem. When I open Colour Splasher I have this :

Image

I'm really sad. How can I fix this ? It's still sentinel one right ?

@jmcouffin
Copy link
Contributor

jmcouffin commented Feb 14, 2025

Hello I still have a problem. When I open Colour Splasher I have this :
I'm really sad. How can I fix this ? It's still sentinel one right ?

Please reinstall the latest release, instead of the wip installer. It looks like this is an old issue that was fixed and merged in the latest release/
So no, this is not sentinel one on this ;p

@BIMGSE
Copy link
Author

BIMGSE commented Feb 14, 2025

I have installed :

Image

So this is not the right one right ?

@jmcouffin
Copy link
Contributor

I have installed :

Image

So this is not the right one right ?

Nope, not the latest release on your computer apparently

Image

https://github.com/pyrevitlabs/pyRevit/releases/tag/v5.0.0.25034%2B1521

@BIMGSE
Copy link
Author

BIMGSE commented Feb 14, 2025

pyRevit_5.0.0.25034_admin_signed.exe works !

thanks a lot @jmcouffin

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] Not pyRevit Issue This is not a pyRevit issue. Might be related to environment, host app, or other dependencies.
Projects
None yet
Development

No branches or pull requests

2 participants