[issue6645] multiprocessing build fails on AIX - /dev/urandom (or equivalent) not found
Sridhar Ratnakumar
report at bugs.python.org
Thu Aug 6 03:18:44 CEST 2009
Sridhar Ratnakumar <sridharr at activestate.com> added the comment:
I suppose multiprocessing invokes `os.random` somewhere. And os.random
fails on AIX for obvious reasons:
>>> os.urandom(10)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/tmp/srid/ActivePythonEE-2.6.2.3-aix-powerpc64/i/lib/python2.6/
os.py", line 755, in urandom
raise NotImplementedError("/dev/urandom (or equivalent) not found")
NotImplementedError: /dev/urandom (or equivalent) not found
>>>
Why should multiprocessing require `urandom` at all? Can't it fallback
to os.random, if os.urandom is unavailable?
try:
os.urandom(10)
except NotImplementedError:
urandom = os.urandom
else:
urandom = os.random
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6645>
_______________________________________
More information about the Python-bugs-list
mailing list