Issue #258 new

cache issue

Tarek Ziadé
repo owner created an issue

I found a cache issue in pkg_ressource (this is a regression)

more details coming

Comments (4)

  1. Tarek Ziadé reporter

    it seems that pkg_resource's cache system gets lost when it has to deal with two packages that starts with the same name in a row.

    I have a hard time to nail down the real issue, but I have found a workaround to fix this. https://bitbucket.org/tarek/distribute/changeset/5bf23bf6133e

    byte-compiling /home/tarek/dev/github.com/appsync/lib/python2.7/site-packages/paste/script/__init__.py to __init__.pyc
    
    byte-compiling /home/tarek/dev/github.com/appsync/lib/python2.7/site-packages/paste/script/create_distro.py to create_distro.pyc
    
    byte-compiling /home/tarek/dev/github.com/appsync/lib/python2.7/site-packages/paste/script/exe.py to exe.pyc
    
    byte-compiling /home/tarek/dev/github.com/appsync/lib/python2.7/site-packages/paste/script/wsgiutils_server.py to wsgiutils_server.pyc
    
    byte-compiling /home/tarek/dev/github.com/appsync/lib/python2.7/site-packages/paste/script/serve.py to serve.pyc
    
    byte-compiling /home/tarek/dev/github.com/appsync/lib/python2.7/site-packages/paste/script/util/subprocess24.py to subprocess24.pyc
    
    byte-compiling /home/tarek/dev/github.com/appsync/lib/python2.7/site-packages/paste/script/util/string24.py to string24.pyc
    
    byte-compiling /home/tarek/dev/github.com/appsync/lib/python2.7/site-packages/paste/script/util/logging_config.py to logging_config.pyc
    
    byte-compiling /home/tarek/dev/github.com/appsync/lib/python2.7/site-packages/paste/script/util/uuid.py to uuid.pyc
    
    byte-compiling /home/tarek/dev/github.com/appsync/lib/python2.7/site-packages/paste/script/util/secret.py to secret.pyc
    
    byte-compiling /home/tarek/dev/github.com/appsync/lib/python2.7/site-packages/paste/script/util/__init__.py to __init__.pyc
    
    byte-compiling /home/tarek/dev/github.com/appsync/lib/python2.7/site-packages/paste/script/paster-templates/basic_package/+package+/__init__.py to __init__.pyc
    
    running install_egg_info
    
    running egg_info
    
    Checking .pth file support in .
    
    /home/tarek/dev/github.com/appsync/bin/python2.7 -E -c pass
    
    Searching for PasteDeploy
    
    Reading http://pypi.python.org/simple/PasteDeploy/
    
    Reading http://pythonpaste.org/deploy/
    
    Reading http://pythonpaste.org/deploy/paste-deploy.html
    
    Best match: PasteDeploy 1.5.0
    
    Downloading http://pypi.python.org/packages/source/P/PasteDeploy/PasteDeploy-1.5.0.tar.gz#md5=f1a068a0b680493b6eaff3dd7690690f
    
    Processing PasteDeploy-1.5.0.tar.gz
    
    Running PasteDeploy-1.5.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-IxSjFu/PasteDeploy-1.5.0/egg-dist-tmp-Ity5ht
    
    
    
    Installed /home/tarek/dev/github.com/appsync/build/PasteScript/PasteDeploy-1.5.0-py2.7.egg
    
    writing requirements to PasteScript.egg-info/requires.txt
    
    writing PasteScript.egg-info/PKG-INFO
    
    writing namespace_packages to PasteScript.egg-info/namespace_packages.txt
    
    writing top-level names to PasteScript.egg-info/top_level.txt
    
    writing dependency_links to PasteScript.egg-info/dependency_links.txt
    
    writing entry points to PasteScript.egg-info/entry_points.txt
    
    ['/home/tarek/dev/github.com/appsync/build/PasteScript/PasteDeploy-1.5.0-py2.7.egg', '', '/home/tarek/dev/github.com/appsync/local/lib/python2.7/site-packages/distribute-0.6.19-py2.7.egg', '/home/tarek/dev/github.com/appsync/local/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg', '/home/tarek/dev/github.com/appsync/lib/python2.7', '/home/tarek/dev/github.com/appsync/lib/python2.7/plat-linux2', '/home/tarek/dev/github.com/appsync/lib/python2.7/lib-tk', '/home/tarek/dev/github.com/appsync/lib/python2.7/lib-old', '/home/tarek/dev/github.com/appsync/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/home/tarek/dev/github.com/appsync/local/lib/python2.7/site-packages']
    
    {'': ['pastescript'], '/home/tarek/dev/github.com/appsync/local/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg': ['pip'], '/home/tarek/dev/github.com/appsync/build/PasteScript': ['pastescript'], '/home/tarek/dev/github.com/appsync/lib/python2.7/lib-tk': [], '/usr/lib/python2.7/lib-tk': [], '/usr/lib/python2.7/lib-dynload': ['python'], '/usr/lib/python2.7/plat-linux2': [], '/home/tarek/dev/github.com/appsync/lib/python2.7/plat-linux2': [], '/home/tarek/dev/github.com/appsync/lib/python2.7': [], '/home/tarek/dev/github.com/appsync/lib/python2.7/site-packages': ['paste', 'mopytools'], '/usr/lib/python2.7': ['wsgiref'], '/home/tarek/dev/github.com/appsync/lib/python2.7/lib-dynload': ['python'], '/home/tarek/dev/github.com/appsync/build/PasteScript/PasteDeploy-1.5.0-py2.7.egg': ['pastedeploy'], '/home/tarek/dev/github.com/appsync/lib/python2.7/site-packages/distribute-0.6.19-py2.7.egg': ['distribute'], '/home/tarek/dev/github.com/appsync/local/lib/python2.7/site-packages': ['paste', 'mopytools'], '/home/tarek/dev/github.com/appsync/local/lib/python2.7/site-packages/distribute-0.6.19-py2.7.egg': ['distribute'], '/home/tarek/dev/github.com/appsync/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg': ['pip'], '/home/tarek/dev/github.com/appsync/lib/python2.7/lib-old': []}
    
    Traceback (most recent call last):
    
      File "<string>", line 1, in <module>
    
      File "/home/tarek/dev/github.com/appsync/build/PasteScript/setup.py", line 145, in <module>
    
        'PasteDeploy',
    
      File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    
        dist.run_commands()
    
      File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    
        self.run_command(cmd)
    
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    
        cmd_obj.run()
    
      File "/home/tarek/dev/github.com/appsync/local/lib/python2.7/site-packages/distribute-0.6.19-py2.7.egg/setuptools/command/install.py", line 53, in run
    
        return _install.run(self)
    
      File "/usr/lib/python2.7/distutils/command/install.py", line 613, in run
    
        self.run_command(cmd_name)
    
      File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
    
        self.distribution.run_command(command)
    
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    
        cmd_obj.run()
    
      File "/home/tarek/dev/github.com/appsync/local/lib/python2.7/site-packages/distribute-0.6.19-py2.7.egg/setuptools/command/install_egg_info.py", line 29, in run
    
        self.run_command('egg_info')
    
      File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
    
        self.distribution.run_command(command)
    
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    
        cmd_obj.run()
    
      File "/home/tarek/dev/github.com/appsync/local/lib/python2.7/site-packages/distribute-0.6.19-py2.7.egg/setuptools/command/egg_info.py", line 170, in run
    
        for ep in iter_entry_points('egg_info.writers'):
    
      File "/home/tarek/dev/github.com/appsync/local/lib/python2.7/site-packages/distribute-0.6.19-py2.7.egg/pkg_resources.py", line 485, in iter_entry_points
    
        for dist in self:
    
      File "/home/tarek/dev/github.com/appsync/local/lib/python2.7/site-packages/distribute-0.6.19-py2.7.egg/pkg_resources.py", line 514, in __iter__
    
        for key in self.entry_keys[item]:
    
    KeyError: '/tmp/easy_install-IxSjFu/PasteDeploy-1.5.0'
    
  2. Anonymous
  3. Log in to comment