I run these basic codes in Python 2.6 interactive window of PythonWin which imports multiprocessing module:-
As soon as I call p1.start(), a popup message comes up (with title "Python for Win32") saying "Could not load the file from <myfileName>-c"
where <myfileName> is my file name with full path.
Also this popup message opens in a new PythonWin window. After a long time (1 min), a "Python Tracekack" window opens up showing -
"Traceback (most recent call last):
File "C:\Python26\Li b\site-packages\Python win\pywin\frame work\intpyapp.p y", line 245, in ProcessArgs
dde.Exec("win32 ui.GetApp().Ope nDocumentFile(% s)" % (repr(fname)))
error: Exec failed"
When I run any multiprocessing script (which obviously calls Process.start() ) from command prompt, it seems to run perfectly without any trouble.
I couldn't find anything online related to this problem.
Thanks for the help!!
Amit
P.S:
I am running it on Windows XP, PythonWin, Python 2.6.4v
Code:
>>> import multiprocessing
>>> def myfunc():
... pass
...
>>> p1 = multiprocessing.Process(name='listen', target=myfunc)
>>> p1.start()
>>>
where <myfileName> is my file name with full path.
Also this popup message opens in a new PythonWin window. After a long time (1 min), a "Python Tracekack" window opens up showing -
"Traceback (most recent call last):
File "C:\Python26\Li b\site-packages\Python win\pywin\frame work\intpyapp.p y", line 245, in ProcessArgs
dde.Exec("win32 ui.GetApp().Ope nDocumentFile(% s)" % (repr(fname)))
error: Exec failed"
When I run any multiprocessing script (which obviously calls Process.start() ) from command prompt, it seems to run perfectly without any trouble.
I couldn't find anything online related to this problem.
Thanks for the help!!
Amit
P.S:
I am running it on Windows XP, PythonWin, Python 2.6.4v