pyRevit icon indicating copy to clipboard operation
pyRevit copied to clipboard

pyRevit interferes with Dynamo

Open teflaherty67 opened this issue 5 years ago • 49 comments

After finally successfully getting pyRevit installed and working, I had to uninstall it because it was causing an issue with Dynamo. Every script I opened, my nodes were not visible. I can still run the script, but some of my graphs have nodes that require user input and if I can't see them I can't change the input.

Dynamo screen

I'm running Windows 10 Home; Revit 2021.1.2; Dynamo Core 2.6.1.8786; Dynamo Revit 2.6.1.8850 I had pyRevit 4.8.4 installed

teflaherty67 avatar Dec 21 '20 14:12 teflaherty67

Trying switching pyRevit IronPython engine to 2.7.3 for compatibility with Dynamo. See pyRevit Settings > Core

eirannejad avatar Dec 29 '20 00:12 eirannejad

I tried that, and when I restarted Revit, this is what I got pyrevit load error

the first few lines were cut off, but they were: IronPython Traceback Traceback (most recent call last): File "C:\Users\Tom Flaherty\AppData\Roaming\pyRevit-Master\bin\engines\pyRevitLoader.py", line 30, in File "C:\Users\Tom Flaherty\AppData\Roaming\pyRevit-Master\pyrevitlib\pyrevit_init_.py", line 103, in File "C:\Users\Tom Flaherty\AppData\Roaming\pyRevit-Master\pyrevitlib\pyrevit\framework.py", line 85, in ImportError: No module named wpf

teflaherty67 avatar Dec 29 '20 20:12 teflaherty67

I've encountered the same issues with Dynamo same builds as above. I was hoping it was another add-in but I spent the day taking one add-in out at a time. I even updated PyRevit hoping that would resolve it. I had the same issue with the script when I opened an existing one looking like above where it looks like it is not fully loaded with just text for the nodes. When I would start with a empty script, any node I would add regardless if I added it from the menu on the left or right clicked and typed the name it would never show the node and almost act like Dynamo is locked up. I'll currently have to pull the PyRevit addin if I'm going to need to use Dynamo. I'm not giving my my PyRevit.

Sweiter avatar Jan 05 '21 23:01 Sweiter

Hello. I am having the same issue w/ Revit 2021.1.2, Dynamo Core 2.6.1.8786, Dynamo Revit 2.6.1.8850, pyRevit 4.8.5, and using IP 2.7.11. The only packages I currently have installed in Dynamo are the three ootb generative design packages.

Revit 2019 and 2020 w/ ootb Dynamo versions are still working fine w/ the same pyRevit / IP versions.

Is there still a setting I'm missing that allows Dynamo nodes to show up again?

also, I just use the released installer for pyRevit, I didn't try to compile or any of that advanced stuff ;)

thanks!

mcnamac23 avatar Feb 19 '21 17:02 mcnamac23

Okay so 4.8.5 has a new custom engine that is my attempt at resolving these conflicts. Go to pyRevit Settings > Core and switch the engine to Custom 2.7.11 and relaunch Revit

eirannejad avatar Feb 21 '21 17:02 eirannejad

Ok! I check it. I have that same problem!

ghost avatar Feb 22 '21 02:02 ghost

Yes, I am using the Custom 2.7.11 engine and I am still having this issue. When I take the .addin file out of the directory and pyRevit doesn't load, Dynamo is fine, when I put it back in, no visible nodes, Dynamo seems to lock up. Always using 2.7.11. Thanks!

mcnamac23 avatar Feb 22 '21 16:02 mcnamac23

Also having this issue in Revit 2021 only. Was using Revit 2021.1.2 and had pyRevit 4.8.4 installed. Tried upgrading pyRevit to 4.8.5 but no luck. I can't try changing the settings as my IT team has uninstalled pyRevit at this point :(

jamesgwitman avatar Feb 26 '21 13:02 jamesgwitman

I'm trying to see if I can find the root of this annoying conflict. Hoping to publish a fix with the next release this week

eirannejad avatar Feb 28 '21 02:02 eirannejad

I got it to work on my laptop, but still not on my desktop. I just tried 4.8.5 but no luck. Could it have to do with the fact I have Python 3.9.2 installed on my desktop?

teflaherty67 avatar Mar 19 '21 20:03 teflaherty67

I don't believe so. Is it the missing-dynamo-component issue still?

eirannejad avatar Mar 20 '21 14:03 eirannejad

Hello, for myself also I have the nodes not visible in Revit 2021.1.20.44 20201102_1530(x64) 2021.1.2 Windows 10 French

pyRevit settings are se to the default no changes were made. If I uninstall everything is working in Dynamo The scripts are working if pyRevit is installed but i'm not seeing the nodes. Dynamo is ok with 2020 or 2019 Revit revit version

IrishFriend avatar Mar 21 '21 12:03 IrishFriend

FYI: PR 4.8.6 w/ IP 2.7.11 / CP 3.8.5 has no affect on this issue. Any suggestions? Screenshot 2021-03-23 124303

mcnamac23 avatar Mar 23 '21 19:03 mcnamac23

I am still not able to reproduce the issue but this screenshot that you posted is very interesting and might actually help. I'm understanding that this is pyRevit running in Revit 2021 and apparently is causing conflict with RhythmRevit and Adwindows. I installed Rhythm addon for Dynamo but don't see any issues. Would you mind running Dynamo in Revit and then go to pyRevit first panel and run Spy > Find All Loaded Assemblies tool? You can save the results using the save button on the output window and upload here.

eirannejad avatar Mar 23 '21 20:03 eirannejad

RE https://forum.dynamobim.com/t/issue-with-rhythm-package-2020-9-8-0/55401

eirannejad avatar Mar 23 '21 20:03 eirannejad

I can see the notification but not the missing components bug

Screen Shot 2021-03-23 at 1 49 35 PM

Screen Shot 2021-03-23 at 1 49 54 PM

eirannejad avatar Mar 23 '21 20:03 eirannejad

pyrevit issues.zip The Rhythm issue is probably completely separate from this issue, it's still there when I unload pyRevit.

Attached is the spy log as requested. I opened dynamo and a graph (image also included), but couldn't run the tool until I closed Dynamo.

Also, when pyRevit is loaded, Dynamo takes much longer to load, and the interface freezes up, other than to close it or the open graph.

this is still only in 2021. I am running just fine in 2019.

mcnamac23 avatar Mar 23 '21 23:03 mcnamac23

I also get the same issue when I open Dynamo. 2021-03-24 11_31_39-DynamoImage I switched the engine to 2711 Custom, and still no luck. The toolbar on Revit also disappears. 2021-03-24 11_17_28-Autodesk Revit 2021 1 2 -  A_PR_CENTRAL_2021 rvt - Floor Plan_ LEVEL 01 - GROUND 2021-03-24 11_20_55-Autodesk Revit 2021 1 2 -  A_PR_CENTRAL_2021 rvt - Floor Plan_ LEVEL 01 - GROUND Zip file has the Loaded Assemblies and the I/O issues listed in Dynamo. pyRevit-Dynamo.zip

Also, when I switch to Engine 273, It crashes pyRevit and does not Load 2021-03-24 11_38_49- 2021-03-24 11_39_19-PyRevitLoader - Error Loading pyRevit

JcRai10 avatar Mar 24 '21 16:03 JcRai10

I have unloaded every add-in and reloaded one at a time. I'm getting it to flip from good to bad consistently with any single or any combination of the three CTC add-ins I have: BIM Manager Suite, BIM Project Suite, and HIVE.

With these three unloaded and pyRevit loaded, Dynamo is fine. When loading any/all CTC tools and unloading pyRevit, Dynamo is fine. It is the combination of pyRevit with any of these tools that is causing the issues.

mcnamac23 avatar Mar 24 '21 20:03 mcnamac23

Would you mind running the Spy > Find loaded assemblies tool when all of these addons are loaded and Dynamo is in nodeless-graph universe, and send me the report?

eirannejad avatar Mar 24 '21 20:03 eirannejad