The question says it all, really. Manifold 8, with the IronPython 2.6 distribution. I've gotten Manifold to at least be able to run IronPython scripts (courtesy ofhttp://www.georeference.org/Forum/t100925.11) by deleting the Scripts > Reference to IronMath.dll and changing the IronPython.dll reference to full file path. However, despite being able to load up IronPython itself outside of Manifold and import, say, urllib2 just fine, I can't do the same in Manifold. Instead I get: "Exception has been thrown by the target of an invocation. No module named urllib2" [sic] At the same time, I can do import math and then junk like math.sqrt(), and if I don't import math then math.sqrt() throws an error. I can also import sys no problem. But I can't get urllib2 or cmd or whatever to import correctly. These and the fact that Manifold knows the error suggests that the software should be able to import modules, but I don't know why it can't get urllib2 or cmd. I've tried adding a reference to IronPython.Modules.dll in references, as well as a bunch of other DLLs that are in the IronPython 2.6 folder. No dice. Thoughts? Vaguely related/why I'm doing this: I'm hoping to use urllib2 to do some junk with APIs, so maybe I'll need the json module too.
|