homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ot
Recipients ot
Date 2010年07月02日.13:43:13
SpamBayes Score 1.4371687e-06
Marked as misclassified No
Message-id <1278078195.79.0.768389993052.issue9144@psf.upfronthosting.co.za>
In-reply-to
Content
With a fresh install from python-2.7rc2.amd64.msi (rc1 is also affected) multiprocessing gives the following error:
Python 2.7rc2 (r27rc2:82154, Jun 22 2010, 21:22:29) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import multiprocessing
>>> multiprocessing.Pool()
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "C:\Python27\lib\multiprocessing\__init__.py", line 227, in Pool
 return Pool(processes, initializer, initargs, maxtasksperchild)
 File "C:\Python27\lib\multiprocessing\pool.py", line 89, in __init__
 self._setup_queues()
 File "C:\Python27\lib\multiprocessing\pool.py", line 181, in _setup_queues
 from .queues import SimpleQueue
 File "C:\Python27\lib\multiprocessing\queues.py", line 22, in <module>
 from multiprocessing.synchronize import Lock, BoundedSemaphore, Semaphore, Condition
 File "C:\Python27\lib\multiprocessing\synchronize.py", line 22, in <module>
 from multiprocessing.forking import assert_spawning, Popen
 File "C:\Python27\lib\multiprocessing\forking.py", line 158, in <module>
 from ._multiprocessing import win32, Connection, PipeConnection
ImportError: No module named _multiprocessing
I noticed that _multiprocessing.lib is not in Lib/multiprocessing/ but in libs/, so I don't know why there is a relative import here.
Changing all the occurrences to
 from _multiprocessing import ...
everything works fine.
History
Date User Action Args
2010年07月02日 13:43:15otsetrecipients: + ot
2010年07月02日 13:43:15otsetmessageid: <1278078195.79.0.768389993052.issue9144@psf.upfronthosting.co.za>
2010年07月02日 13:43:14otlinkissue9144 messages
2010年07月02日 13:43:13otcreate

AltStyle によって変換されたページ (->オリジナル) /