473,406 Members | 2,894 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Cannot run any multiprocessing script in PythonWin

I run these basic codes in Python 2.6 interactive window of PythonWin which imports multiprocessing module:-
Expand|Select|Wrap|Line Numbers
  1.     >>> import multiprocessing
  2.     >>> def myfunc():
  3.     ...     pass
  4.     ... 
  5.     >>> p1 = multiprocessing.Process(name='listen', target=myfunc)
  6.     >>> p1.start()
  7.     >>> 
  8.  
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\Lib\site-packages\Pythonwin\pywin\framework\intpyapp.py", line 245, in ProcessArgs
dde.Exec("win32ui.GetApp().OpenDocumentFile(%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
Dec 30 '10 #1
0 1167

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Martin Bless | last post by:
IMHO PythonWin is great help in developing. How can I do something like: if detect("running on PythonWin"): pass # fake arguments ... else: "proceed normal"
3
by: Alberto Mantovani | last post by:
hi, how is it possible to run a python script in the pythonwin environment from dos command line? If I use the command "/run scriptname.py" and the pythonwin is already opened I get error, so...
4
by: Colin J. Williams | last post by:
PythonWin has been my favourite IDE for quite a while. When one right clicks on a .py file in the Windows Explorer, among the options are Open and Edit. The former is the default and executes...
2
by: accolades | last post by:
Does anyone else have a problem with Pythonwin crashing after running a python script with graphics libraries? Whenever I use Pythonwin to run a PyGame or PyOgre script, Pythonwin crashes when the...
1
by: borals | last post by:
I get this error when I log on to a computer that runs a *.vbs script to map drives etc. Any Ideas?
2
by: leegold | last post by:
Hi, I run a script in PythonWin and obviously some sort of an error occurs in the script and PythonWin closes. No warning, no error message just closes. I definitely know the line of code that...
1
by: BrendaJett | last post by:
i recieve cannot find script engine.. this has seemed to ocurr after dot net install for VB
0
by: Akira Kitada | last post by:
Hi list, I was trying to build Python 2.6 on FreeBSD 4.11 and found it failed to build some of the modules. """ Failed to find the necessary bits to build these modules: _bsddb ...
0
by: Akira Kitada | last post by:
Hi Marc-Andre, Thanks for the suggestion. I opened a ticket for this issue: http://bugs.python.org/issue4204 Now I understand the state of the multiprocessing module, but it's too bad to see...
0
by: M.-A. Lemburg | last post by:
On 2008-10-25 20:19, Akira Kitada wrote: Thanks. The errors you are getting appear to be related to either some missing header files or a missing symbol definition to enable these - looking...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.