New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multiprocessing build fails on AIX - /dev/urandom (or equivalent) not found #50894
Comments
./Modules/ld_so_aix cc_r -qlanglvl=ansi -bI:Modules/python.exp build/ |
Without access to an AIX machine, and even with it (I'm not an AIX guy by |
I suppose multiprocessing invokes >>> 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 try: |
This is a patch that I have used on AIX. The idea for this patch came |
This also breaks pydoc on AIX (Python 2.6.5). help> modules pydoc Here is a list of matching modules. Enter any module name to get more help. Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/qatest/APy/lib/python2.6/site.py", line 438, in __call__
return pydoc.help(*args, **kwds)
File "/home/qatest/APy/lib/python2.6/pydoc.py", line 1722, in __call__
self.interact()
File "/home/qatest/APy/lib/python2.6/pydoc.py", line 1740, in interact
self.help(request)
File "/home/qatest/APy/lib/python2.6/pydoc.py", line 1760, in help
self.listmodules(split(request)[1])
File "/home/qatest/APy/lib/python2.6/pydoc.py", line 1865, in listmodules
apropos(key)
File "/home/qatest/APy/lib/python2.6/pydoc.py", line 1965, in apropos
ModuleScanner().run(callback, key)
File "/home/qatest/APy/lib/python2.6/pydoc.py", line 1930, in run
for importer, modname, ispkg in pkgutil.walk_packages(onerror=onerror):
File "/home/qatest/APy/lib/python2.6/pkgutil.py", line 110, in walk_packages
__import__(name)
File "/home/qatest/APy/lib/python2.6/multiprocessing/__init__.py", line 63, in <module>
from multiprocessing.process import Process, current_process, active_children
File "/home/qatest/APy/lib/python2.6/multiprocessing/process.py", line 286, in <module>
_current_process = _MainProcess()
File "/home/qatest/APy/lib/python2.6/multiprocessing/process.py", line 283, in __init__
self._authkey = AuthenticationString(os.urandom(32))
File "/home/qatest/APy/lib/python2.6/os.py", line 756, in urandom
raise NotImplementedError("/dev/urandom (or equivalent) not found")
NotImplementedError: /dev/urandom (or equivalent) not found |
Looks like this has been fixed, at least on Python trunk (2.7). |
Sridhar can you confirm if this is still a problem on 3.2? |
No, this is not an issue for me on Python 3.2 and AIX 5.1. |
Closing per Sridhar |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: