[IronPython] multiprocessing in 2.7

Oleksii Bidiuk oleksii.bidiuk at gmail.com
Wed Mar 23 02:04:55 PDT 2011


Hi Romain,

AFAIK you have to download the Python standard library separately. See e.g.
http://www.ironpython.info/index.php/Using_the_Python_Standard_Library for
examples (I've done it a while ago, so had to Google around a bit).

2011/3/23 Romain Gilles <romain.gilles at gmail.com>

> Hi all,
> I'm trying to use this feature in ironpython. I just follow the first
> sample:
> --------------------------------------------
> from multiprocessing import Process
>
> def f(name):
>     print 'hello', name
>
> if __name__ == '__main__':
>     p = Process(target=f, args=('bob',))
>     p.start()
>     p.join()
> --------------------------------------------
> But I get the following error when I'm executing it:
> --------------------------------------------
> c:\temp>ipy test-ipy-multiprocessing.py
> Traceback (most recent call last):
>   File "test-ipy-multiprocessing.py", line 1, in <module>
> ImportError: No module named multiprocessing
> --------------------------------------------
>
> Thanks for any help.
>
> Regards.
>
> Romain.
>
> PS: I have just installed the last release of IronPython 2.7
> --------------------------------------------
> c:\temp>ipy -V
> PythonContext 2.7.0.40 on .NET 4.0.30319.1
> --------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>


-- 
oleksii
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20110323/5079c503/attachment.htm>


More information about the Users mailing list