Open GiuseppeDotto opened 1 month ago
Version of revit used? Version of Dynamo?
Just saying here, The issue can be on both sides Dynamo or pyRevit DynamoTeam is actually a team, so maybe asking on their forum or GH might make more sense.
I personaly never had this type of issue
Revit: 2024.2.0 Dynamo: v.2.19.3
We already opened a ticket with Autodesk that didn't get solved. Particularly hard case because I can't replicate it anywhere else except for the office computers.
I will definitely open again a blog post on Dynamo forum, here is the previous one. In the meantime, any hint from your side is very welcome.
Just tried it on my machine, not reproductible. Revit 2024, latest everything.
https://github.com/user-attachments/assets/a1314ff7-22ea-40d7-adc3-3ed08b714fe4
wild guess, any other python installed on computers. dynamo has its own python engines, pyrevit too. Maybe you have vanilla python installs for other purposes and they do not behave nicely?
Thanks a lot for the reply. on my computer there is a vanilla python installed, however I would exclude this is the cause because other users without python installed have the same issue. Additionally, this issue started upon pyRevit installation.
As you saw, the post on the dynamo forum is quite old. I will take care to run another test uninstalling pyRevit and I will let you know if the issue really depends on pyRevit installation.
I'm having the same issue. CPython nodes work when deactivating pyRevit, but not when pyRevit is active.
on my computer there is a vanilla python installed, however I would exclude this is the cause because other users without python installed have the same issue. Additionally, this issue started upon pyRevit installation.
maybe they have rhino GH + rhino inside revit?
I confirm the behavior, python on Dynamo works if pyRevit is not installed. The computers with the issue don't have rhino inside revit.
I confirm the behavior, python on Dynamo works if pyRevit is not installed. The computers with the issue don't have rhino inside revit.
Can you precisely provide the steps you performed? @GiuseppeDotto
I need to be able to reproduce.
correct, sorry @jmcouffin for lacking information. The test was performed in 2 different scenario:
the way we deploy pyRevit to all the office computer is simple as:
pyrevit clone ourCloneName core --dest=%appdata%\ourCloneName pyrevit attach ourCloneName 2711 --installed pyrevit extensions paths add "\our\path\to\the\folder\with\extensions"
I'll add that in my case it's enough to disable the pyRevit addin-file and restart Revit for the CPython nodes to start working, and vice versa. No need to uninstall/reinstall for new behavior to appear.
and Revit 2024 Dynamo 2.19.3 right? other versions too?
Yes, is still Revit 2024.2 and Dynamo 2.18.3. I just tried with Revit 2023.1 and Dynamo 2.16.2 and the issue is still occurring. The doesn't take place with Revit 2021, where the python engine was still IronPython.
Has anyone found a workaround this? im having same problems but doesn't matter if i use Cpython or IronPython. And everything work as soon as i turn of pyrevit for the current revit version and restart revit with it turned of.
At first I thought it was do to a windows update my company rolled out as everything stopped working last week around that time. Might still be a combination? Could there have been something in the windows update that is giving me problems with python in dynamo and pyrevit?
Has anyone found a workaround this? im having same problems but doesn't matter if i use Cpython or IronPython. And everything work as soon as i turn of pyrevit for the current revit version and restart revit with it turned of.
At first I thought it was do to a windows update my company rolled out as everything stopped working last week around that time. Might still be a combination? Could there have been something in the windows update that is giving me problems with python in dynamo and pyrevit?
I do think this is a different matter.
The thing is, I cannot reproduce on my computer. I did play with dynamo up and down in revit 2024 with the latest WIP installers and no issu switching from cpython to ironpython back and forth.
I actually had the same thought than @Oliver2201 , just our updates happened 1 year ago, and since then I tried to replicate the issue, without success, on many other computers out of my organization. @jmcouffin , if you know about any possible method to display a more informative error message, I am very happy to test it out.
Apart from the revit journal and dynamo logs, no idea. Maybe asking to the dynamo team? The error happens in dynamo after all
✈ Pre-Flight checks
🐞 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: (this pops up as soon as the python node is called)
(this pops up is the user does some operation, for example, change the engine to IronPython2 and then revert to CPython)
further info
OUT=IN
researches
I read a similar issue unfortunately closed without answers: Errors in Dynamo Python Script.
⌨ Error/Debug Message
♻️ 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)
Additional context
No response