Path might be None if egg not found

Bug #145222 reported by Sidnei da Silva
4
Affects Status Importance Assigned to Milestone
Buildout
New
Undecided
Unassigned

Bug Description

Installing plone.
Installing 'archetypes.kss==1.2.1', 'kss.core==1.2.1', 'plone.app.content==1.0.1', 'plone.app.contentmenu==1.0', 'plone.app.contentrules==1.0.1.1', 'plone.ap
ontrolpanel==1.0.1', 'plone.app.customerize==1.0', 'plone.app.form==1.0.1.1', 'plone.app.i18n==1.0', 'plone.app.iterate==1.0', 'plone.app.kss==1.2.1', 'plone
p.layout==1.0.1.1', 'plone.app.linkintegrity==1.0.1', 'plone.app.openid==1.0.1', 'plone.app.portlets==1.0.1.1', 'plone.app.redirector==1.0', 'plone.app.viewl
anager==1.0', 'plone.app.vocabularies==1.0.1', 'plone.app.workflow==1.0.1.1', 'plone.contentrules==1.0.1.1', 'plone.fieldsets==1.0', 'plone.i18n', 'plone.int
igenttext==1.0', 'plone.locking==1.0', 'plone.memoize==1.0.1.1', 'plone.openid==1.0', 'plone.portlets==1.0.1.1', 'plone.session==1.1', 'plone.theme==1.0', 'w
ed==1.1.6', 'five.customerize==0.2', 'five.localsitemanager==0.2'.
We have no distributions for archetypes.kss that satisfies 'archetypes.kss==1.2.1'.
While:
  Installing plone.
  Getting distribution for 'archetypes.kss==1.2.1'.
Traceback (most recent call last):
  File "c:\docume~1\admini~1.ali\locals~1\temp\tmpwmub6e\zc.buildout-1.0.0b30-py2.4.egg\zc\buildout\buildout.py", line 1359, in main
  File "c:\docume~1\admini~1.ali\locals~1\temp\tmpwmub6e\zc.buildout-1.0.0b30-py2.4.egg\zc\buildout\buildout.py", line 390, in install
  File "c:\docume~1\admini~1.ali\locals~1\temp\tmpwmub6e\zc.buildout-1.0.0b30-py2.4.egg\zc\buildout\buildout.py", line 968, in _call
  File "d:\src\buildout-eggs\plone.recipe.plone-3.0.1-py2.4.egg\plone\recipe\plone\recipe.py", line 54, in install
  File "c:\windows\temp\buildout-eggs\zc.recipe.egg-1.0.0b6-py2.4.egg\zc\recipe\egg\egg.py", line 111, in install
  File "c:\windows\temp\buildout-eggs\zc.recipe.egg-1.0.0b6-py2.4.egg\zc\recipe\egg\egg.py", line 70, in working_set
  File "c:\docume~1\admini~1.ali\locals~1\temp\tmpwmub6e\zc.buildout-1.0.0b30-py2.4.egg\zc\buildout\easy_install.py", line 812, in working_set
  File "c:\docume~1\admini~1.ali\locals~1\temp\tmpwmub6e\zc.buildout-1.0.0b30-py2.4.egg\zc\buildout\easy_install.py", line 711, in install
  File "c:\docume~1\admini~1.ali\locals~1\temp\tmpwmub6e\zc.buildout-1.0.0b30-py2.4.egg\zc\buildout\easy_install.py", line 576, in install
  File "c:\docume~1\admini~1.ali\locals~1\temp\tmpwmub6e\zc.buildout-1.0.0b30-py2.4.egg\zc\buildout\easy_install.py", line 444, in _get_dist
  File "c:\Python24\lib\ntpath.py", line 90, in join
    assert len(path) > 0
TypeError: len() of unsized object

Starting pdb:
> c:\python24\lib\ntpath.py(90)join()
-> assert len(path) > 0
(Pdb) p path
None

Revision history for this message
Sidnei da Silva (sidnei) wrote :

I suspect this has been fixed since, but I can't even find the source line anymore.

Revision history for this message
Anthony G (anthonygerrard) wrote :

I think I am experiencing the same issue. This is on version 1.2.1. It happened after I added the following to my buildout. I switched the debugger on and self._dest, which is passed into os.path.join is None

[buildout]
offline = true
download-cache = c:\Plone\buildout-cache\downloads

Traceback:

Installing Products.DocFinderTab 1.0.4
Caused installation of a distribution:
products.docfindertab 1.0.4
with a different project name.
While:
  Installing instance.
  Getting distribution for 'Products.DocFinderTab==1.0.4'.
Traceback (most recent call last):
  File "c:\plone\eggs\zc.buildout-1.2.1-py2.4.egg\zc\buildout\buildout.py", line 1509, in main
    getattr(buildout, command)(args)
  File "c:\plone\eggs\zc.buildout-1.2.1-py2.4.egg\zc\buildout\buildout.py", line 473, in install
    installed_files = self[part]._call(recipe.install)
  File "c:\plone\eggs\zc.buildout-1.2.1-py2.4.egg\zc\buildout\buildout.py", line 1091, in _call
    return f()
  File "c:\plone\eggs\plone.recipe.zope2instance-3.2-py2.4.egg\plone\recipe\zope2instance\__init__.py", line 39, in install
    requirements, ws = self.egg.working_set()
  File "c:\plone\eggs\zc.recipe.egg-1.2.2-py2.4.egg\zc\recipe\egg\egg.py", line 75, in working_set
    [options['develop-eggs-directory'], options['eggs-directory']]
  File "c:\plone\eggs\zc.buildout-1.2.1-py2.4.egg\zc\buildout\easy_install.py", line 907, in working_set
    return install(specs, None, executable=executable, path=path)
  File "c:\plone\eggs\zc.buildout-1.2.1-py2.4.egg\zc\buildout\easy_install.py", line 802, in install
    return installer.install(specs, working_set)
  File "c:\plone\eggs\zc.buildout-1.2.1-py2.4.egg\zc\buildout\easy_install.py", line 648, in install
    for dist in self._get_dist(requirement, ws, self._always_unzip):
  File "c:\plone\eggs\zc.buildout-1.2.1-py2.4.egg\zc\buildout\easy_install.py", line 546, in _get_dist
    dists = self._call_easy_install(
  File "c:\plone\eggs\zc.buildout-1.2.1-py2.4.egg\zc\buildout\easy_install.py", line 379, in _call_easy_install
    newloc = os.path.join(dest, os.path.basename(d.location))
  File "C:\Python\Python2.4.4\lib\ntpath.py", line 90, in join
    assert len(path) > 0
TypeError: len() of unsized object

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.