"Cannot import name Popen" in IronPython 2.7.3 -


i'm having weird problem where, though "clr.addreference('ironpython.stdlib')" @ top of ironpython code (i have built copy of stdlib readily findable), unable access popen. multithreaded application, many threads (ten, right now) trying access script @ same time.

i don't have problem accessing ironpython @ console.

2013-09-03 17:10:11.5197 error pythonscriptengineproviderlib.pythonscriptengineprovider.executecompiledcodeinternal not execute python code. ironpython.runtime.exceptions.importexception: cannot import name popen    @ ironpython.runtime.importer.importfrom(codecontext context, object from, string name)    @ microsoft.scripting.interpreter.funccallinstruction`4.run(interpretedframe frame)    @ microsoft.scripting.interpreter.interpreter.run(interpretedframe frame)    @ microsoft.scripting.interpreter.lightlambda.run2[t0,t1,tret](t0 arg0, t1 arg1)    @ ironpython.compiler.pythonscriptcode.runworker(codecontext ctx)    @ ironpython.compiler.runtimescriptcode.invoketarget(scope scope)    @ pythonscriptengineproviderlib.pythonscriptengineprovider.executecompiledcodeinternal(compiledcode cc, idictionary`2 scopevariables) in  ... 

although don't have solution (i op), appears it's problem occurs @ process startup. starts working after suitable waiting period. although not sure period is, see subroutines depend on working expected few minutes later (they wait, , reattempt later when experiencing failure).

since long-running process, problem shouldn't have significant cost, now. however, if had guess, seems stdlib may have loading delay may block initiating thread, not others.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -