loggerhead doesn't work with the bzr standalone win32 installer; should be included in it

Bug #390542 reported by David Roberts on 2009-06-22
30
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar Windows Installers
Medium
Unassigned
loggerhead
Low
Unassigned

Bug Description

My Win32 installation of bzr 1.16 is from the .exe Standalone installer.

On trying to install/use loggerhead I get this failure in respect of Paste -

C:\Added Program Files\Bazaar\plugins>bzr branch lp:loggerhead
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
Branched 368 revision(s).

C:\Added Program Files\Bazaar\plugins>bzr plugins
bzrtools 1.16
    Various useful commands for working with bzr.

explorer 0.4dev
    Desktop interface to the Bazaar VCS.

extmerge
    external merge plugin for bzr

launchpad 1.16
    Launchpad.net integration plugin for Bazaar.

loggerhead 1.11
    Loggerhead web viewer for Bazaar branches.

netrc_credential_store 1.16
    Use ~/.netrc as a credential store for authentication.conf.

qbzr 0.11
    QBzr - Qt-based frontend for Bazaar

rebase 0.5
    Rebase support.

svn 0.6.1
    Support for Subversion branches

C:\Added Program Files\Bazaar\plugins>bzr serve --http
bzr: ERROR: pkg_resources.DistributionNotFound: Paste>=1.6

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 729, in exception_to_return_code
  File "bzrlib\commands.pyo", line 924, in run_bzr
  File "bzrlib\commands.pyo", line 560, in run_argv_aliases
  File "C:/Documents and Settings/David/Application Data/bazaar/2.0/plugins\logg
erhead\__init__.py", line 74, in run
  File "C:/Documents and Settings/David/Application Data/bazaar/2.0/plugins\logg
erhead\loggerhead\__init__.py", line 25, in <module>
  File "pkg_resources.pyo", line 270, in get_distribution
  File "pkg_resources.pyo", line 156, in get_provider
  File "pkg_resources.pyo", line 626, in require
  File "pkg_resources.pyo", line 524, in resolve
DistributionNotFound: Paste>=1.6

bzr 1.16 on python 2.5.2 (win32)
arguments: ['bzr', 'serve', '--http']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  bzrtools C:\Added Program Files\Bazaar\plugins\bzrtools [1.16]
  explorer C:\Added Program Files\Bazaar\plugins\explorer [0.4dev]
  extmerge C:\Added Program Files\Bazaar\plugins\extmerge [unknown]
  launchpad C:\Added Program Files\Bazaar\plugins\launchpad [1.16]
  loggerhead C:\Documents and Settings\David\Application Data\bazaar\2
.0\plugins\loggerhead [1.11]
  netrc_credential_store C:\Added Program Files\Bazaar\plugins\netrc_credential_
store [1.16]
  qbzr C:\Added Program Files\Bazaar\plugins\qbzr [0.11]
  rebase C:\Added Program Files\Bazaar\plugins\rebase [0.5]
  svn C:\Added Program Files\Bazaar\plugins\svn [0.6.1]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

C:\Added Program Files\Bazaar\plugins>

Please advise. Is this something I can rectify [bearing in mind that this is a standalone .exe installation of bzr for Win32], or is it something that can be corrected in the packaging of the plugin, or bzr?

I think you can fix this by separately installing the Python paste package.

As far as the installer goes the options seem to be:

1- include loggerhead (and also paste) in the bzr installer
2- make a separate loggerhead installer
3- encourage people to use eg easy_setup to install it

"I think you can fix this by separately installing the Python paste
package."

But since I don't actually have a 'standalone' installation of Python - only the underlying components supplied by the Windows binary (.exe) installer for Bazaar 1.16 - it isn't obvious to me how I would meaningfully install the Python paste package. I guess that relevant bits of it need to go into the bzrlib shipped with bzr? Can you specify what needs to be done, please?

Or is the conclusion that this plugin is not presently compatible with the .exe Windows installer version of bzr?

The search facility on the bzr home page does not return any results for 'easy_setup' - can you say whether that mechanism would be Windows installer compatible?

I haven't actually installed loggerhead on Windows so I may be wrong,
but I think that until it's included in the bzr overall installer you
will have to install it manually, ie: install Python, install bzr,
paste, and loggerhead.

2009/6/22 David Roberts <email address hidden>:
> "I think you can fix this by separately installing the Python paste
> package."
>
> But since I don't actually have a 'standalone' installation of Python -
> only the underlying components supplied by the Windows binary (.exe)
> installer for Bazaar 1.16 - it isn't obvious to me how I would
> meaningfully install the Python paste package. I guess that relevant
> bits of it need to go into the bzrlib shipped with bzr? Can you specify
> what needs to be done, please?
>
> Or is the conclusion that this plugin is not presently compatible with
> the .exe Windows installer version of bzr?

It seems that plugins which depend on separately-installed libraries,
as loggerhead does for paste, can't be used with the all-in-one
installer.

--
Martin <http://launchpad.net/~mbp/>

I can see the problem, but don't know enough about how the bzr packaging works on windows to know how to fix it.

Including loggerhead and dependencies in the installer may make sense, they're all fairly small.

Changed in loggerhead:
importance: Undecided → Medium
status: New → Confirmed
Martin Pool (mbp) wrote :

Filing against bzr because mwh says it could be included in the installer.

summary: - Installation fails on Windows [bzr 1.16]
+ loggerhead doesn't work with the bzr standalone win32 installer; should
+ be included in it
Changed in bzr:
importance: Undecided → Medium
status: New → Confirmed

On Tue, 2009-06-30 at 01:29 +0000, Martin Pool wrote:
> Filing against bzr because mwh says it could be included in the
> installer.

What about just having a loggerhead installer, like xmloutput has?

-Rob

2009/6/30 Robert Collins <email address hidden>:
> On Tue, 2009-06-30 at 01:29 +0000, Martin Pool wrote:
>> Filing against bzr because mwh says it could be included in the
>> installer.
>
> What about just having a loggerhead installer, like xmloutput has?

If it works with both bzr installers that would be ok, but if it's
feasible to package it together that may be better.

--
Martin <http://launchpad.net/~mbp/>

Alexander Belchenko (bialix) wrote :

...
 File "pkg_resources.pyo", line 524, in resolve
DistributionNotFound: Paste>=1.6

IIUC this error is a clear sign that some parts either of loggerhead or third-party library requires setuptools to work correctly. AFAIK, py2exed application (bzr.exe) can't work with setuptools and eggs properly. So this is dead end.

David, you'd better install python-based bzr version and then install all required dependencies.
See http://bazaar-vcs.org/WindowsInstall

Alexander Belchenko wrote:
> ...
> File "pkg_resources.pyo", line 524, in resolve
> DistributionNotFound: Paste>=1.6
>
> IIUC this error is a clear sign that some parts either of loggerhead or
> third-party library requires setuptools to work correctly. AFAIK,
> py2exed application (bzr.exe) can't work with setuptools and eggs
> properly. So this is dead end.

I don't know the details, but Loggerhead isn't compatible with old
versions of Paste and PasteDeploy, so it uses setuptools's pkg_resources
to make sure they're new enough. (Paste doesn't have many __version__
attributes, so that seems to be the best way to do it.)

It also uses pkg_resources for reporting the version numbers of its
dependencies and accessing some files included in the distribution.

Patches welcome. :-D I'd be happy to lose that dependency, but I don't
know how to do it.

As it is, it might be possible for the installer to use a patched
version of Loggerhead that removes the dependency. It would be easy to
do, as long as pkg_resources.resource_filename() can be replaced.

affects: bzr → bzr-windows-installers
Changed in loggerhead:
status: Confirmed → Triaged
importance: Medium → Low
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related questions