Offline mode unable to install eggs from dist/site-plone

Bug #256458 reported by Steve McMahon
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sidnei da Silva

Bug Description

When run in offline mode, buildout will issue a cryptic message and die if a dependency is unavailable -- even if there is a matching egg in download/dist or python's site-packages. (The error message is the subject of #229678.)

Ideally, buildout in offline mode should go ahead and install an egg that's available from one one of those locations. I'd particularly like to be able to do that so that I can distribute a buildout with eggs in download/dist for the Plone installers (so that the pyc files get compiled with the right locations).

Patch against zc.buildout 1.1.1:

Macintosh-2:buildout steve$ diff
> dest = self['buildout']['eggs-directory']
< dest = None
< dest = self['buildout']['eggs-directory']
> dest = buildout_options['eggs-directory']
< dest = None
< dest = buildout_options['eggs-directory']

Against zc.recipe.egg 1.1.0:

Macintosh-2:egg steve$ diff
< ws = zc.buildout.easy_install.working_set(
< distributions, options['executable'],
< [options['develop-eggs-directory'], options['eggs-directory']]
> ws = zc.buildout.easy_install.install(
> distributions, options['eggs-directory'],
> executable = options['executable'],
> path=[options['develop-eggs-directory'], options['eggs-directory']],


Revision history for this message
Parijat Mishra (parijat-mishra) wrote :

I face the same problem: when trying to install MySQL-python driver.

In my setup, MySQL-python tarball is placed in download-cache. Buildbot, in offline mode, finds the tarball, and builds an egg from it successfully. It then fails to install it, because the dest argument to easy_install.install() is is None in various places.

Sidnei da Silva (sidnei)
Changed in zc.buildout:
assignee: nobody → Sidnei da Silva (sidnei)
status: New → Confirmed
Revision history for this message
Sidnei da Silva (sidnei) wrote :

Here's one patch that fixes a similar issue. I'm adding it here so it doesn't get lost. I still plan to fix the original issue in a similar way.

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

Other bug subscribers