I'm running Enthought 64-bit (python 2.7) on OS-X and trying to use multiprocessing. The interpreter keeps hanging when I tell a process to join. This is true even for the very simple examples provided in the documentation. For example:
import multiprocessing as mp def f(x): print x*x p=mp.Process(target=f,args=(2,)) p.start() p.join() The start method works fine, but join hangs with no cpu usage (and no keyboard interrupt!). I get the same problem whether I use queues or pools (for pools, it hangs on map or async_apply). Thanks for the help! -Josh _______________________________________________ Enthought-Dev mailing list [hidden email] https://mail.enthought.com/mailman/listinfo/enthought-dev |
On Fri, Mar 15, 2013 at 4:57 PM, Joshua Dempster
<[hidden email]> wrote: > I'm running Enthought 64-bit (python 2.7) on OS-X and trying to use > multiprocessing. The interpreter keeps hanging when I tell a process to > join. This is true even for the very simple examples provided in the > documentation. For example: > > import multiprocessing as mp > > def f(x): > print x*x > > p=mp.Process(target=f,args=(2,)) > p.start() > p.join() > > The start method works fine, but join hangs with no cpu usage (and no > keyboard interrupt!). I get the same problem whether I use queues or pools > (for pools, it hangs on map or async_apply). Exactly what version of EPD64 did you install? I cannot replicate the problem with EPD64 7.3-2. -- Robert Kern Enthought _______________________________________________ Enthought-Dev mailing list [hidden email] https://mail.enthought.com/mailman/listinfo/enthought-dev |
It's 7.3, but I'm not sure how to check the exact version.
On Sat, Mar 16, 2013 at 1:29 PM, Robert Kern <[hidden email]> wrote:
_______________________________________________ Enthought-Dev mailing list [hidden email] https://mail.enthought.com/mailman/listinfo/enthought-dev |
On Mon, Mar 18, 2013 at 5:09 PM, Joshua Dempster
<[hidden email]> wrote: > It's 7.3, but I'm not sure how to check the exact version. The EPD_README.txt file will state it. /Library/Frameworks/EPD64.framework/Versions/Current/EPD_README.txt -- Robert Kern Enthought _______________________________________________ Enthought-Dev mailing list [hidden email] https://mail.enthought.com/mailman/listinfo/enthought-dev |
In reply to this post by Josh Dempster
$ python Enthought Python Distribution -- www.enthought.com Version: 7.3-2 (64-bit) Python 2.7.3 |EPD 7.3-2 (64-bit)| (default, Apr 12 2012, 11:14:05)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin On Mon, Mar 18, 2013 at 12:09 PM, Joshua Dempster <[hidden email]> wrote: It's 7.3, but I'm not sure how to check the exact version. _______________________________________________ Enthought-Dev mailing list [hidden email] https://mail.enthought.com/mailman/listinfo/enthought-dev |
In reply to this post by Robert Kern
Thanks, it's 7.3-2.
On Mon, Mar 18, 2013 at 12:10 PM, Robert Kern <[hidden email]> wrote:
_______________________________________________ Enthought-Dev mailing list [hidden email] https://mail.enthought.com/mailman/listinfo/enthought-dev |
On Mon, Mar 18, 2013 at 5:15 PM, Joshua Dempster
<[hidden email]> wrote: > Thanks, it's 7.3-2. Oh well. It's working for me, at least. [~/scratch]$ python Enthought Python Distribution -- www.enthought.com Version: 7.3-2 (64-bit) Python 2.7.3 |EPD 7.3-2 (64-bit)| (default, Apr 12 2012, 11:14:05) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type "credits", "demo" or "enthought" for more information. >>> [~/scratch]$ cat mpbug.py import multiprocessing as mp def f(x): print x*x p=mp.Process(target=f,args=(2,)) p.start() p.join() [~/scratch]$ python mpbug.py 4 [~/scratch]$ -- Robert Kern Enthought _______________________________________________ Enthought-Dev mailing list [hidden email] https://mail.enthought.com/mailman/listinfo/enthought-dev |
Free forum by Nabble | Edit this page |