The Dynamo team recently became aware of some reports that python in Rhino 6 was not functioning on some machines with Dynamo installed. We’ve added some information to the Dynamo FAQ wiki entry, and would like to share it here as well in case you run into a similar problem.

Q: How do I get Dynamo’s Python functionality to work again, and use other applications which rely on IronPython?

 

 

A:

whats going on?

Dynamo installs IronPython 2.7.3 into the GAC or (Global Assembly Cache). Other applications which rely on IronPython, like Rhino6 may use a different version of ironPython, but instead they find the version Dynamo installed, and this causes problems.

How to fix it:

  • To fix this problem you’ll want to remove IronPython 2.7.3 from the GAC.
    Depending on your Dynamo version the fix is slightly different.
  • An alternative solution that is reported to work on the forums, but is not tested is to install IronPython 2.7.4. or 2.7.5 (with GAC install enabled) – This is reported to work with Dynamo 1.x and Rhino 6. You will likely need to IronPython uninstall 2.7.3 first.

Dynamo 2.0:

  • Navigate to ControlPanel -> Programs and Features

 

 

  • Find IronPython 2.7.3
  • Right Click on it and Select Change
  • Click the Change button and disable the GAC Assemblies feature.

 

 

This will remove ironPython 2.7.3 from the GAC. Dynamo and Rhino will now use their local versions instead.

Dynamo 1.x:

The process is mostly the same for 1.x, but there is one additional step.

Copy the Files:

  • IronPython.Modules.dll
  • IronPython.dll
  • Microsoft.Scripting.dll
  • Microsoft.Scripting.MetaData.dll
  • Microsoft.Dynamic.dll

from C:\Program Files (x86)\IronPython 2.7 to your Dynamo install root directory so it sits alongside the other DynamoCore .dlls. This is usually: C:\Program Files\Dynamo\Dynamo Core\1.x