Question is as title says. Working on a project that requires Sympy, Matplotlib and Tkinter to be imported through IronPython. The code will be run in Rhino, which uses Python 2.7. Is there any way to do this? I've seen a 2014 question that says that Tkinter just doesn't work in IronPython but perhaps things have improved since then.
SymPy is the most crucial library that needs to be imported. Have checked around the documentation, but it's a bit unclear.
Update
So I've been able to install pythonnet into my python interpreter, after much finagling with a .whl file instead on cmd. Now we're running into the following error when we try to import clr in Anaconda (Python 2.7):
So after the following code snippet is compiled -
import clr
clr.AddReference("System.Windows.Forms")
from System import String
from System.Collections import *
from System.Windows.Forms import Form
print "Hello"
We get this error:
'import sitecustomize' failed; use -v for traceback
Hello
Any code below the import statements still runs (thus the 'Hello'), but I'd like to know what this error means or what is causing it. Thanks in advance.
*Another Update**
Posted on the Rhino Forums, apparently there's been no changes yet in Rhino's IronPython implementation to make it able to reference previously incompatible libraries. They recommended using Eto instead. Thanks for the help!
pip install pythonnet -U
– Hercule