Hello
I am reaching out to you with an issue regarding the latest release of pyRevit 5.0 in combination with Revit 2025 and CPython3. In Revit 2025, I converted all the nodes in Dynamo from IronPython2.7 to CPython, as Revit 2025 requires it, and everything works fine. However, when I install pyRevit 5.0, none of the nodes in my script, which is written in CPython3, work. The errors reported are varied, but most often it says “built-in function import returned a result with an error set.” As soon as I convert the nodes back to IronPython2.7, they don’t work either, but they don’t work even without pyRevit installed. Could someone help with this issue? Thanks
Jonn.O
(Jonn Øyvind Hosum)
September 19, 2024, 3:38pm
2
The same error is in 4.8 also, there is an Issue on it in Github.
opened 03:40PM - 11 Sep 24 UTC
Bug
### ✈ Pre-Flight checks
- [X] I **don't have SentinelOne** antivirus installed … (see above for the solution)
- [X] I have **searched in the issues** (open and closed) but couldn't find a similar issue
- [X] I have **searched in the [pyRevit Forum](https://discourse.pyrevitlabs.io)** for similar issues
- [X] I already **followed the [installation troubleshooting guide](https://pyrevitlabs.notion.site/Installation-issues-f6495adb56254e9e8021f8a68e3b2ab7) thoroughly**
- [X] I am using the **latest pyRevit Version**
### 🐞 Describe the bug
All the computer of the office where I work have issue with executing python dynamo nodes since pyRevit is installed on their computer.
### error messages
These are the errors that popup from their Dynamo:
![image](https://github.com/user-attachments/assets/c48d743b-aa7c-4327-9f0d-e7ca7e90b54d)
(this pops up as soon as the python node is called)
![image](https://github.com/user-attachments/assets/1954e873-6e88-4b35-965b-b7c73e4a70a7)
(this pops up is the user does some operation, for example, change the engine to IronPython2 and then revert to CPython)
### further info
- The issue only occurs if the engine used by Dynamo is **CPython**. With IronPython 2 everything works just fine.
- the script inside of the screenshotted python node is `OUT=IN`
### researches
I read a similar issue unfortunately closed without answers: [Errors in Dynamo Python Script.](https://github.com/pyrevitlabs/pyRevit/issues/1735)
### ⌨ Error/Debug Message
```shell
attempt to read or write protected memory.
```
### ♻️ To Reproduce
just open Dynamo and create python node
### ⏲️ Expected behavior
CPython in Dynamo should work properly
### 🖥️ Hardware and Software Setup (please complete the following information)
```shell
Windows 11
$pyrevit env
==> Registered Clones (full git repos)
==> Registered Clones (deployed from archive/image)
pyOMA | Deploy: "core" | Branch: "master" | Version: "4.8.16" | Path: "C:\Users\gdotto\AppData\Roaming\pyOMA"
==> Attachments
pyOMA | Product: "24.2" | Engine: DEFAULT (2711) | Path: "C:\Users\gdotto\AppData\Roaming\pyOMA"
pyOMA | Product: "23.1.3" | Engine: DEFAULT (2711) | Path: "C:\Users\gdotto\AppData\Roaming\pyOMA"
pyOMA | Product: "Autodesk Revit 2021" | Engine: DEFAULT (2711) | Path: "C:\Users\gdotto\AppData\Roaming\pyOMA"
==> Installed Extensions
DDeT | Type: Unknown | Repo: "" | Installed: "\\office-server\DDeT.extension"
pyOMA | Type: Unknown | Repo: "" | Installed: "\\office-server\pyOMA.extension"
pyRevitCore | Type: UIExtension | Repo: "" | Installed: "\\office-server\pyRevitCore.extension"
pyRevitTools | Type: UIExtension | Repo: "" | Installed: "\\office-server\pyRevitTools.extension"
==> Default Extension Search Path
C:\Users\gdotto\AppData\Roaming\pyRevit\Extensions
==> Extension Search Paths
C:\Users\gdotto\OneDrive - Office for Metropolitan Architecture\Documents\GitHub\myPrivate
\\office-server
==> Extension Sources - Default
https://github.com/pyrevitlabs/pyRevit/raw/master/extensions/extensions.json
==> Extension Sources - Additional
==> Installed Revits
24.2 | Version: 24.2.0.63 | Build: 20231029_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2024\"
23.1.3 | Version: 23.1.30.97 | Build: 20230828_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2023\"
Autodesk Revit 2021 | Version: 21.1.21.45 | Build: 20201116_1100(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2021\"
==> Running Revit Instances
PID: 3860 | 24.2 | Version: 24.2.0.63 | Build: 20231029_1515(x64) | Language: 0 | Path: "C:\Program Files\Autodesk\Revit 2024"
==> User Environment
Microsoft Windows 10 [Version 10.0.22631]
Executing User: OMA\gdotto
Active User:
Admin Access: No
%APPDATA%: "C:\Users\gdotto\AppData\Roaming"
Latest Installed .Net Framework: 4.8
No .Net Target Packs are installed.
No .Ne-Core Target Packs are installed.
pyRevit CLI v4.8.16.24121+2117.23a0b8cbc4babdeb29a0611e159d017bbe9cbad5
```
### Additional context
_No response_
@Jonn.O Thanks for your reply, seams it does not have solution yet.
Hi, Is there any update On the Pyrevit for Revit 2025?
Jean-Marc
(Jean-Marc Couffin)
October 17, 2024, 5:41pm
5
Wip installers do install and work in all Revit versions.
A few bugs.
Iron python engine is all good.
And bugs with uncompiled c#
1 Like
Jean-Marc:
Cpython not is much
Hi @Jean-Marc ,
can you tell me what’s wrong with the CPython engine of the WIP version? Aside the pyrevit.form
compatibility, of course…
Forgive me, but I can’t find any issue in the repo or the forum that has not already been take care of, but I might be short-sighted
Jean-Marc
(Jean-Marc Couffin)
October 19, 2024, 11:27am
7
My bad @sanzoghenzo
All good for Cpython except for forms.
Jonn.O
(Jonn Øyvind Hosum)
October 19, 2024, 9:01pm
8
Does this mean the issue with Dynamo Python nodes solved in the WIP 5.0 installer?
Has it been solved in 4.8 also?
Sorry I didn’t realize the context of this discussion
Unfortunately the interference with other plugins is not solved, we desperately need someone with really strong .NET skills to step up and solve it! (I’m not even sure if this Dynamo-pyRevit issue has the same root cause as the other “pyrevit not loading” errors when other plugins are installed, but it’s my only hypothesis)
I don’t believe we’ll update version 4.8 anymore, too few resources to keep more than one version at a time…
2 Likes