classification
Title: multiprocessing.managers not accessible even though docs say so
Type: enhancement Stage:
Components: Extension Modules, Installation Versions: Python 3.0, Python 2.4, Python 2.6, Python 2.5
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: jnoller, ngie
Priority: normal Keywords:

Created on 2009-04-12 22:42 by ngie, last changed 2009-04-12 22:55 by ngie. This issue is now closed.

Files
File name Uploaded Description Edit
test_managers_support.py ngie, 2009-04-12 22:42 managers support nose testcase
Messages (3)
msg85921 - (view) Author: Enji Cooper (ngie) * Date: 2009-04-12 22:41
I'm not sure why but my copy doesn't have a managers module. I'm really
confused because multiprocessing.managers exists in
Lib/multiprocessing/managers.py and it should have been installed with
easy_install...

Please see the attached testcase (it shows the details verifying that I
don't have support). I ran it against all copies of python I have
besides 3.x (nose doesn't support 3.x because setuptools isn't there yet
for 3.x support).

-bash-3.00$ python2.4 `which nosetests` ~/test_managers_support.py
Python version:
2.4.5 (#1, Mar 28 2009, 14:54:51)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-9)]F
======================================================================
FAIL: test_managers_support.test_has_managers
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/ws/garrcoop-sjc/tools/lib/python2.4/site-packages/nose-0.10.4-py2.4.egg/nose/case.py",
line 182, in runTest
    self.test(*self.arg)
  File "/users/garrcoop/test_managers_support.py", line 9, in
test_has_managers
    assert hasattr(multiprocessing, 'managers')
AssertionError

----------------------------------------------------------------------
Ran 1 test in 0.050s

FAILED (failures=1)
-bash-3.00$ python2.5 `which nosetests` ~/test_managers_support.py
/ws/garrcoop-sjc/tools/lib/python2.4/site-packages/multiprocessing-2.6.1.1-py2.4-linux-i686.egg/multiprocessing/__init__.py:86:
RuntimeWarning: Python C API version mismatch for module
_multiprocessing: This Python has API version 1013, module
_multiprocessing has version 1012.
  import _multiprocessing
Python version:
2.5.4 (r254:67916, Mar 28 2009, 15:01:19)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-9)]F
======================================================================
FAIL: test_managers_support.test_has_managers
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/ws/garrcoop-sjc/tools/lib/python2.4/site-packages/nose-0.10.4-py2.4.egg/nose/case.py",
line 182, in runTest
    self.test(*self.arg)
  File "/users/garrcoop/test_managers_support.py", line 9, in
test_has_managers
    assert hasattr(multiprocessing, 'managers')
AssertionError

----------------------------------------------------------------------
Ran 1 test in 0.159s

FAILED (failures=1)
-bash-3.00$ python2.6 `which nosetests` ~/test_managers_support.py
F
======================================================================
FAIL: test_managers_support.test_has_managers
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/ws/garrcoop-sjc/tools/lib/python2.4/site-packages/nose-0.10.4-py2.4.egg/nose/case.py",
line 182, in runTest
    self.test(*self.arg)
  File "/users/garrcoop/test_managers_support.py", line 7, in
test_has_managers
    assert hasattr(multiprocessing, 'managers')
AssertionError

----------------------------------------------------------------------
Ran 1 test in 0.029s

FAILED (failures=1)
msg85922 - (view) Author: Enji Cooper (ngie) * Date: 2009-04-12 22:52
Sorry -- the info for my python2.6 was out of date. Here's the info (I
had to set PYTHONPATH to "" to avoid a multiprocessing module conflict):

bash-3.00$ PYTHONPATH=""; python2.6 `which nosetests`
~/test_managers_support.py
Python version:
2.6.1 (r261:67515, Mar 28 2009, 06:39:52)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-9)]F
======================================================================
FAIL: test_managers_support.test_has_managers
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/ws/garrcoop-sjc/tools/lib/python2.6/site-packages/nose-0.10.4-py2.6.egg/nose/case.py",
line 182, in runTest
    self.test(*self.arg)
  File "/users/garrcoop/test_managers_support.py", line 9, in
test_has_managers
    assert hasattr(multiprocessing, 'managers')
AssertionError

----------------------------------------------------------------------
Ran 1 test in 0.045s

FAILED (failures=1)
msg85923 - (view) Author: Enji Cooper (ngie) * Date: 2009-04-12 22:55
Ugh... nevermind. Bad case of PEBKAC. Sorry for the noise :(...
History
Date User Action Args
2009-04-12 22:55:17ngiesetstatus: open -> closed
type: enhancement
messages: + msg85923
2009-04-12 22:52:19ngiesetmessages: + msg85922
2009-04-12 22:42:01ngiecreate