1. Tarek Ziadé
  2. distribute
  3. Issues
Issue #141 new

easy_install pywin32 binary succeeds and then says it can't find pywin32

Zooko O'Whielacronx
created an issue

agronhold on #distutils tried to easy_install pywin32-214.win-amd64-py2.6.exe and got the following output: {{{ Processing pywin32-214.win-amd64-py2.6.exe pywintypes: module references file win32evtlogutil: module references file win32serviceutil: module references file win32timezone: module references file Demos.win32rcparser_demo: module references file Demos.security.sspi.validate_password: module references file isapi.install: module references file isapi.samples.advanced: module references file isapi.samples.test: module references file isapi.test.setup: module references file pywin.framework.scriptutils: module references file pywin.framework.startup: module references path pywin.scintilla.config: module references path pywin.scintilla.control: module references file pywin.scintilla.IDLEenvironment: module references file scripts.regsetup: module references file scripts.setup_d: module references file test.testall: module references file test.test_clipboard: module references file test.test_win32api: module references file test.test_win32rcparser: module references file C:\Python26\lib\site-packages\distribute-0.6.10-py2.6.egg\setuptools\command\bdi st_egg.py:422: UnicodeWarning: Unicode equal comparison failed to convert both a rguments to Unicode - interpreting them as being unequal symbols = dict.fromkeys(iter_symbols(code)) test.test_win32trace: module references file win32com.init: module references path win32com.server.register: module references file win32com.server.register: module references path win32com.test.GenTestScripts: module references path win32com.test.pippo_server: module references file win32com.test.testall: module references file win32com.test.testAXScript: module references path win32com.test.testDictionary: module references file win32com.test.testPippo: module references file win32com.test.testPyComTest: module references file win32com.test.testServers: module references file win32com.test.util: module references file win32comext.adsi.init: module references path win32comext.authorization.init: module references path win32comext.axcontrol.init: module references path win32comext.axdebug.codecontainer: module references file win32comext.axdebug.debugger: module references file win32comext.axdebug.init: module references path win32comext.axscript.init: module references path win32comext.bits.init: module references path win32comext.directsound.init: module references path win32comext.directsound.test.ds_test: module references file win32comext.internet.init: module references path win32comext.mapi.init: module references path win32comext.shell.init: module references path win32comext.shell.demos.servers.empty_volume_cache: module references file win32comext.shell.demos.servers.folder_view: module references file win32comext.taskscheduler.init: module references path creating 'c:\users\demi-god\appdata\local\temp\easy_install-el740m\pywin32-214-p y2.6-win32.egg' and adding 'c:\users\demi-god\appdata\local\temp\easy_install-el 740m\pywin32-214-py2.6-win32.egg.tmp' to it creating c:\python26\lib\site-packages\pywin32-214-py2.6-win32.egg Extracting pywin32-214-py2.6-win32.egg to c:\python26\lib\site-packages Adding pywin32 214 to easy-install.pth file Installing pywin32_postinstall.py script to C:\Python26\Scripts Installing pywin32_postinstall.pyc script to C:\Python26\Scripts

Installed c:\python26\lib\site-packages\pywin32-214-py2.6-win32.egg Processing dependencies for pywin32==214 Searching for pywin32==214 Reading http://pypi.python.org/simple/pywin32/ Reading http://sf.net/projects/pywin32 Reading http://sourceforge.net/project/showfiles.php?group_id=78018 No local packages or download links found for pywin32==214 error: Could not find suitable distribution for Requirement.parse('pywin32==214' ) }}} Then he ran {{{python -c "import pkg_resources;print pkg_resources.require('pywin32')"}}} and got: {{{ [pywin32 214 (c:\python26\lib\site-packages\pywin32-214-py2.6-win32.egg)] }}} Then he ran {{{python -c "import win32api;print win32api;print win32api.version"}}} and got: {{{ <module 'win32api' from 'C:\Python26\lib\site-packages\pywin32-214-py2.6-win32.egg\win32api.pyd'> Traceback (most recent call last): File "<string>", line 1, in <module> AttributeError: 'module' object has no attribute 'version' }}} So it rather seems like the easy_install succeeded and then immediately tried to resolve the dependency again (why?) and then failed (why??). This might be related to this Tahoe-LAFS ticket: http://tahoe-lafs.org/trac/tahoe-lafs/ticket/756 (if pywin32 has been manually installed, setuptools still doesn't detect it).

Comments (4)

  1. Zooko O'Whielacronx reporter

    There is a minimal test case for this issue on the setuptools issue tracker: http://bugs.python.org/setuptools/msg325 agronholm tried that minimal test case with distribute-0.6.10 and it failed:

    >python test2.py develop
    Yes, pkg_resources says that pywin32 is already installed.
    running develop
    running egg_info
    creating mindeponpywin32.egg-info
    writing requirements to mindeponpywin32.egg-info\requires.txt
    writing mindeponpywin32.egg-info\PKG-INFO
    writing top-level names to mindeponpywin32.egg-info\top_level.txt
    writing dependency_links to mindeponpywin32.egg-info\dependency_links.txt
    writing manifest file 'mindeponpywin32.egg-info\SOURCES.txt'
    reading manifest file 'mindeponpywin32.egg-info\SOURCES.txt'
    writing manifest file 'mindeponpywin32.egg-info\SOURCES.txt'
    running build_ext
    Creating c:\python26\lib\site-packages\mindeponpywin32.egg-link (link to .)
    Adding mindeponpywin32 0.0.0 to easy-install.pth file
    Installed c:\users\demi-god
    Processing dependencies for mindeponpywin32==0.0.0
    Searching for pywin32
    Reading http://pypi.python.org/simple/pywin32/
    Reading http://sf.net/projects/pywin32
    Reading http://sourceforge.net/project/showfiles.php?group_id=78018
    No local packages or download links found for pywin32
    error: Could not find suitable distribution for Requirement.parse('pywin32')

    PJE had thought that he had fixed this issue in setuptools-0.6c10: http://bugs.python.org/setuptools/issue17 But that hasn't been confirmed for pywin32 to my knowledge, so either PJE was wrong to think that it was fixed in setuptools-0.6c10, or it regressed between setuptools-0.6c10 and distribute-0.6.10.

  2. Anonymous
  3. Log in to comment