Windmill breaks branch-rewrite on dev systems

Bug #534399 reported by Jeroen T. Vermeulen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Māris Fogels

Bug Description

When starting Apache on a dev machine, we get this in the error log:

[notice] Apache/2.2.12 (Ubuntu) mod_ssl/2.2.12 OpenSSL/0.9.8g configured -- resuming normal operations
Traceback (most recent call last):
  File "/home/me/canonical/lp-branches/trunk/scripts/branch-rewrite.py", line 22, in <module>
    from canonical.launchpad.database import account
  File "/home/me/canonical/lp-branches/trunk/lib/canonical/launchpad/database/__init__.py", line 11, in <module>
    from lp.soyuz.model.sourcepackagerelease import *
  File "/home/me/canonical/lp-branches/trunk/lib/lp/soyuz/model/sourcepackagerelease.py", line 47, in <module>
    from lp.soyuz.model.build import Build
  File "/home/me/canonical/lp-branches/trunk/lib/lp/soyuz/model/build.py", line 59, in <module>
    from lp.soyuz.model.publishing import SourcePackagePublishingHistory
  File "/home/me/canonical/lp-branches/trunk/lib/lp/soyuz/model/publishing.py", line 58, in <module>
    from lp.soyuz.scripts.changeoverride import ArchiveOverriderError
  File "/home/me/canonical/lp-branches/trunk/lib/lp/soyuz/scripts/changeoverride.py", line 18, in <module>
    from lp.soyuz.scripts.ftpmasterbase import (
  File "/home/me/canonical/lp-branches/trunk/lib/lp/soyuz/scripts/ftpmasterbase.py", line 22, in <module>
    from lp.services.scripts.base import (
  File "/home/me/canonical/lp-branches/trunk/lib/lp/services/scripts/base.py", line 27, in <module>
    from lp.testing import ANONYMOUS
  File "/home/me/canonical/lp-branches/trunk/lib/lp/testing/__init__.py", line 58, in <module>
    from windmill.authoring import WindmillTestClient
  File "/home/me/canonical/lp-sourcedeps/eggs/windmill-1.3beta3_lp_r1440-py2.5.egg/windmill/__init__.py", line 17, in <module>
    import authoring, bin, browser, server, conf, tools, sys
  File "/home/me/canonical/lp-sourcedeps/eggs/windmill-1.3beta3_lp_r1440-py2.5.egg/windmill/authoring/__init__.py", line 17, in <module>
    from windmill.bin import admin_lib
  File "/home/me/canonical/lp-sourcedeps/eggs/windmill-1.3beta3_lp_r1440-py2.5.egg/windmill/bin/admin_lib.py", line 25, in <module>
    from windmill.dep import functest
  File "/home/me/canonical/lp-sourcedeps/eggs/windmill-1.3beta3_lp_r1440-py2.5.egg/windmill/dep/__init__.py", line 15, in <module>
    import _mozrunner as mozrunner
  File "/home/me/canonical/lp-sourcedeps/eggs/windmill-1.3beta3_lp_r1440-py2.5.egg/windmill/dep/_mozrunner/__init__.py", line 45, in <module>
    import global_settings
  File "/home/me/canonical/lp-sourcedeps/eggs/windmill-1.3beta3_lp_r1440-py2.5.egg/windmill/dep/_mozrunner/global_settings.py", line 42, in <module>
    def findInPath(fileName, path=os.environ['PATH']):
  File "/usr/lib/python2.5/UserDict.py", line 22, in __getitem__
    raise KeyError(key)
KeyError: 'PATH'

A workaround is to disable two windmill imports in one's local trunk/devel branch, in lib/lp/testing/__init__.py (WindmillTestClient) and lib/canonical/testing/layers.py (windmill_teardown).

affects: launchpad → launchpad-foundations
Māris Fogels (mars)
Changed in launchpad-foundations:
assignee: nobody → Māris Fogels (mars)
status: New → Triaged
importance: Undecided → High
Gary Poster (gary)
Changed in launchpad-foundations:
milestone: none → 10.03
Revision history for this message
Māris Fogels (mars) wrote :

I've attached a small patch that fixes the import error in windmill. We will want to send this patch upstream.

I have not been able to successfully rebuild the windmill source distribution on my local system. I'm assigning this bug to Björn in the hopes that he will be able to apply the patch and land the new windmill version.

Changed in launchpad-foundations:
assignee: Māris Fogels (mars) → Björn Tillenius (bjornt)
Gary Poster (gary)
Changed in launchpad-foundations:
milestone: 10.03 → 10.04
Changed in launchpad-foundations:
assignee: Björn Tillenius (bjornt) → nobody
milestone: 10.04 → none
Gary Poster (gary)
Changed in launchpad-foundations:
assignee: nobody → Māris Fogels (mars)
milestone: none → 10.07
Curtis Hovey (sinzui)
Changed in launchpad-foundations:
milestone: 10.07 → 10.08
Revision history for this message
Māris Fogels (mars) wrote :

This has been fixed in Windmill 1.4, and Launchpad has been updated. I am marking this as Fix Released, but please reopen it if the problem persists.

Changed in launchpad:
status: Triaged → Fix Released
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.