py2exe and distutils
Maxim Demenko
mdemenko at gmail.com
Sat Feb 7 09:27:24 EST 2009
Hi,
i have installed Python 2.5.4 on WinXP, setuptools-0.6c9 and py2exe 0.6.9
Now i can't list installed modules, here is the stacktrace:
help> modules
Please wait a moment while I gather a list of all available modules...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Programme\Python25\lib\site.py", line 346, in __call__
return pydoc.help(*args, **kwds)
File "C:\Programme\Python25\lib\pydoc.py", line 1649, in __call__
self.interact()
File "C:\Programme\Python25\lib\pydoc.py", line 1667, in interact
self.help(request)
File "C:\Programme\Python25\lib\pydoc.py", line 1683, in help
elif request == 'modules': self.listmodules()
File "C:\Programme\Python25\lib\pydoc.py", line 1804, in listmodules
ModuleScanner().run(callback)
File "C:\Programme\Python25\lib\pydoc.py", line 1855, in run
for importer, modname, ispkg in pkgutil.walk_packages():
File "C:\Programme\Python25\lib\pkgutil.py", line 110, in walk_packages
__import__(name)
File
"C:\Programme\Python25\Lib\site-packages\setuptools\__init__.py", line
2, in <module>
from setuptools.extension import Extension, Library
File
"C:\Programme\Python25\Lib\site-packages\setuptools\extension.py", line
2, in <module>
from dist import _get_unpatched
File "C:\Programme\Python25\Lib\site-packages\setuptools\dist.py",
line 27, in <module>
_Distribution = _get_unpatched(_Distribution)
File "C:\Programme\Python25\Lib\site-packages\setuptools\dist.py",
line 23, in _get_unpatched
"distutils has already been patched by %r" % cls
AssertionError: distutils has already been patched by <class
py2exe.Distribution at 0x011B4F90>
Any suggestion, how to fix this issue?
Best regards
Maxim
More information about the Python-list
mailing list