[issue9572] IOError in test_multiprocessing
Florent Xicluna
report at bugs.python.org
Wed Aug 11 22:50:43 CEST 2010
Florent Xicluna <florent.xicluna at gmail.com> added the comment:
I succeeded to reproduce one time on Debian Lenny (64 bits).
~ $ make pycremoval
find . -name '*.py[co]' -exec rm -f {} ';'
find . -name '__pycache__' -exec rmdir {} '+'
~ $ ./python -Wd -E -bb ./Lib/test/regrtest.py -uall -rwW -l test_multiprocessing
Using random seed 8192992
[1/1] test_multiprocessing
Process Process-22:
Traceback (most recent call last):
File "./Lib/multiprocessing/process.py", line 233, in _bootstrap
self.run()
File "./Lib/multiprocessing/process.py", line 88, in run
self._target(*self._args, **self._kwargs)
File "./Lib/test/test_multiprocessing.py", line 1253, in _putter
manager.connect()
File "./Lib/multiprocessing/managers.py", line 478, in connect
dispatch(conn, None, 'dummy')
File "./Lib/multiprocessing/managers.py", line 79, in dispatch
kind, result = c.recv()
File "./Lib/multiprocessing/connection.py", line 408, in recv
s = self._conn.recv_bytes()
EOFError
test test_multiprocessing failed -- Traceback (most recent call last):
File "./Lib/importlib/_bootstrap.py", line 486, in set_data
with _closing(_io.FileIO(path, 'wb')) as file:
IOError: [Errno 2] No such file or directory: './Lib/email/__pycache__/__init__.cpython-32.pyc'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./Lib/test/test_multiprocessing.py", line 1266, in test_rapid_restart
queue = manager.get_queue()
File "./Lib/multiprocessing/managers.py", line 644, in temp
token, exp = self._create(typeid, *args, **kwds)
File "./Lib/multiprocessing/managers.py", line 542, in _create
conn = self._Client(self._address, authkey=self._authkey)
File "./Lib/multiprocessing/connection.py", line 427, in XmlClient
import xmlrpc.client as xmlrpclib
File "./Lib/xmlrpc/client.py", line 137, in <module>
import http.client
File "./Lib/http/client.py", line 69, in <module>
import email.parser
File "./Lib/importlib/_bootstrap.py", line 450, in load_module
return self._load_module(fullname)
File "./Lib/importlib/_bootstrap.py", line 155, in decorated
return fxn(self, module, *args, **kwargs)
File "./Lib/importlib/_bootstrap.py", line 344, in _load_module
code_object = self.get_code(name)
File "./Lib/importlib/_bootstrap.py", line 437, in get_code
self.set_data(bytecode_path, data)
File "./Lib/importlib/_bootstrap.py", line 498, in set_data
_os.mkdir(directory)
OSError: [Errno 17] File exists: './Lib/email/__pycache__'
...
But next attempts were successful.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9572>
_______________________________________
More information about the Python-bugs-list
mailing list