[IronPython] multiprocessing in 2.7

Davy Mitchell daftspaniel at gmail.com
Wed Mar 23 11:26:52 CET 2011


If it is a 'C' based extension then it won't directly work with IronPython.

Maybe someone has a workaround / alternative?

Cheers,
Davy

On 23 March 2011 10:23, Romain Gilles <romain.gilles at gmail.com> wrote:
> Hi,
> First of all thanks for your answer :). But after updated
> my IRONPYTHONPATH as follow:
> set IRONPYTHONPATH=c:\Python27\Lib
> I get this error:
> -----------------------------------------
> c:\temp>ipy test-ipy-multiprocessing.py
> Traceback (most recent call last):
>   File "test-ipy-multiprocessing.py", line 1, in <module>
>   File "c:\Python27\Lib\multiprocessing\__init__.py", line 63, in <module>
>   File "c:\Python27\Lib\multiprocessing\process.py", line 286, in <module>
>   File "c:\Python27\Lib\multiprocessing\process.py", line 283, in __init__
> TypeError: expected IList[Byte], got str
> -----------------------------------------
> 2011/3/23 Oleksii Bidiuk <oleksii.bidiuk at gmail.com>
>>
>> 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
>
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>



-- 
--
  Davy's Blog - http://daftspaniel.wordpress.com



More information about the Ironpython-users mailing list