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]: PyRevit error only in Revit 2024 #2536

Open
5 tasks done
Scott55555 opened this issue Jan 22, 2025 · 1 comment
Open
5 tasks done

[Bug]: PyRevit error only in Revit 2024 #2536

Scott55555 opened this issue Jan 22, 2025 · 1 comment
Labels
Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class]

Comments

@Scott55555
Copy link

✈ 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

Hi all

Had issues with pyRevit_4.8.16.24121_signed [tried the admin one] on Windows 11 with Revit 2023 and 2024. Everything is patched and up to date.

Followed the below guide and got it working in Revit 2023 but Revit 2024 still throws the issue 'Error dynamically compiling pyRevit runtime'

Fix followed which got it working in 2023 [but not 2024]:


Uninstall pyRevit
Delete ‘C:\ProgramData’ and ‘%AppData%\ pyRevit’ folders
Move all Revit addins to a temporary location. Usual addins locations include:

%AppData%\Autodesk\Revit\Addins<year>
%AppData%\Autodesk\ApplicationPlugins
%ProgramData%\Autodesk\Revit\Addins<year>
%ProgramData%\Autodesk\ApplicationPlugins\

Reboot computer
Reinstall pyRevit
Started each version of Revit confirming pyRevit successfully compiled at startup.
Moved all Revit addins that were moved in step 3 back to their original location.


Many thanks.

Image

Image

⌨ Error/Debug Message

Error dynamically compiling pyRevit runtime

Screenshots posted in main window.

♻️ To Reproduce

Start Revit 2024 - error pops up.

⏲️ Expected behavior

No error to pop up.

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

C:\Users\*****>pyrevit env
==> Registered Clones (full git repos)
==> Registered Clones (deployed from archive/image)
master | Deploy: "basepublic" | Branch: "master" | Version: "4.8.16.24121+2117" | Path: "C:\Users\guilhermem\AppData\Roaming\pyRevit-Master"
==> Attachments
master | Product: "Autodesk Revit 2024" | Engine: DEFAULT (2711) | Path: "C:\Users\guilhermem\AppData\Roaming\pyRevit-Master"
master | Product: "Autodesk Revit 2023" | Engine: DEFAULT (2711) | Path: "C:\Users\guilhermem\AppData\Roaming\pyRevit-Master"
==> Installed Extensions
==> Default Extension Search Path
C:\Users\guilhermem\AppData\Roaming\pyRevit\Extensions
==> Extension Search Paths
M:\7103_Revit_Project_Standards_BIM\BIM\01_RH\pyrevit\RHA.extension
==> Extension Sources - Default
https://github.com/pyrevitlabs/pyRevit/raw/master/extensions/extensions.json
==> Extension Sources - Additional
==> Installed Revits
Autodesk Revit 2024 | Version: 24.3.10.22 | Build: 20241105_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2024\"
Autodesk Revit 2023 | Version: 23.1.60.36 | Build: 20241107_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2023\"
==> Running Revit Instances
Error: Object reference not set to an instance of an object.
Run with "--debug" option to see debug messages

Additional context

No response

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

Please uninstall old version and download WIP installers from the actions tab or from the https://pyrevitlabs.io website using the orange button and report.

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

2 participants