[Ironpython-users] Embedded IronPython and Python Libraries
avinhan at gmail.com
Mon Oct 7 01:22:07 CEST 2013
I am having some issues with embedded ironpython and using standard python
libraries. I have installed IronPython 2.7.4 and copied the "lib" folder to
my applications output directory. I have added the path for the "lib"
directory in Engine.SetSearchPaths(). However it is unable to load any
packages installed in "site-packages". To get around this I need to add
"lib\site-packages" to the search path. Is this the correct approach or am
I doing something wrong?
Also, I installed numpy and scipy and it works fine from IronPython.
However in my application when I try to import numpy, it gives an error,
"No module found: mtrand". If I import clr and and do
clr.AddReference('mtrand'), then import numpy it all works fine. So it
seems like ironpython looks into dll's when we import a module, but my
embedded engine does not. How do I fix this?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironpython-users