needs a packaged version compatible with bzr >= 2.0

Bug #619787 reported by UndiFineD
This bug report is a duplicate of:  Bug #551253: plugin does not work with bzr2.x. Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bzr-webdav (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: bzr

# bzr --version
not installing http[s]+webdav:// support (only supported for bzr 1.12 and above)
Bazaar (bzr) 2.2.0
  Python interpreter: /usr/bin/python 2.6.6rc1
  Python standard library: /usr/lib/python2.6
  Platform: Linux-2.6.36-020636rc1-generic-x86_64-with-Ubuntu-10.10-maverick
  bzrlib: /usr/lib/python2.6/dist-packages/bzrlib
  Bazaar configuration: /home/undifined/.bazaar
  Bazaar log file: /home/undifined/.bzr.log

Revision history for this message
Martin Pool (mbp) wrote :

I see this strange message

> not installing http[s]+webdav:// support (only supported for bzr 1.12 and above)

I'm not sure where that's coming from, presumably from a plugin. I'm pretty sure not from core bzr.

What's the actual bug and how is it related to apache2?

Martin Pool (mbp)
Changed in bzr (Ubuntu):
status: New → Incomplete
Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 619787] Re: bazaar + apache2 + ssl failed

On Fri, 2010-08-20 at 02:40 +0000, Martin Pool wrote:
> I see this strange message
>
> > not installing http[s]+webdav:// support (only supported for bzr 1.12
> and above)
>
> I'm not sure where that's coming from, presumably from a plugin. I'm
> pretty sure not from core bzr.
It comes from the bzr-webdav plugin.

Cheers,

Jelmer

Revision history for this message
Vincent Ladeuil (vila) wrote : Re: bazaar + apache2 + ssl failed

This is really weird and sounds like you're getting a bzrlib version way older than your bzr script.

What does the following command output:
 python -c 'import bzrlib ; print bzrlib.version_info ; print bzrlib.__file__'

Revision history for this message
UndiFineD (k.dejong) wrote :

# python -c 'import bzrlib ; print bzrlib.version_info ; print bzrlib.__file__'
(2, 2, 0, 'final', 0)
/usr/lib/python2.6/dist-packages/bzrlib/__init__.pyc

Revision history for this message
Vincent Ladeuil (vila) wrote :

Meh:

python -c "print (2, 2, 0, 'final', 0) < (1,2)"
False

webdav/__init__.py contains:
# Don't go further if we are not compatible
if bzrlib.version_info < (1, 12):
    # We need bzr 1.12
    from bzrlib import trace
    trace.note('not installing http[s]+webdav:// support'
               ' (only supported for bzr 1.12 and above)')

Do you have a bzrlib.py or a bzrlib directory present (and '.' or '' in your PYTHONPATH env variable)
where the command fail ?

I'm at a loss of suggestions otherwise, try adding a 'import pdb; pdb.set_trace()' in webdav/__init__.py
and poke around what bzrlib and bzrlib.version_info values are at this point to further debug.

Revision history for this message
UndiFineD (k.dejong) wrote :

I have not touched anything python,
just a lot of upgrades from 10.04 to current maverick
I do have perl 5.12.1

I could not find bzrlib.py
I do have /usr/share/pyshared/bzrlib/

the failure first happened during installation of bazaar, but keeps returning.

the trace call
# bzr --version
> /usr/lib/python2.6/dist-packages/bzrlib/plugins/webdav/__init__.py(31)<module>()
-> if major < 1 or minor < 12:
(Pdb)

# apt-show-versions bzr
bzr/maverick uptodate 2.2.0-1
root@head:/# apt-show-versions bzr-webdav
bzr-webdav/maverick uptodate 1.12.0~bzr63-0ubuntu1

# env
TERM=linux
SHELL=/bin/bash
USER=root
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
SUDO_USER=undifined
SUDO_UID=1000
USERNAME=root
MC_TMPDIR=/tmp/mc-root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
PWD=/usr/share/pyshared
LANG=en_US.utf8
HISTCONTROL=ignoredups:ignorespace
HOME=/home/undifined
SUDO_COMMAND=/bin/bash
SHLVL=2
MC_SID=31500
LOGNAME=root
LESSOPEN=| /usr/bin/lesspipe %s
DISPLAY=:1.0
SUDO_GID=1000
LESSCLOSE=/usr/bin/lesspipe %s %s
XAUTHORITY=/var/run/gdm/auth-for-undifined-JFqbH1/database
COLORTERM=gnome-terminal
OLDPWD=/usr/share/pyshared/bzrlib
_=/usr/bin/env

Revision history for this message
Vincent Ladeuil (vila) wrote :

> # bzr --version
> > /usr/lib/python2.6/dist-packages/bzrlib/plugins/webdav/__init__.py(31)<module>()
> -> if major < 1 or minor < 12:
> (Pdb)

Here we go, that's an old webdav version (< 2009-08-11), a new one needs to be packaged.

In the mean time, you should de-install it from your system and install it from source instead.

The following command is enough to install it from sources:
  bzr branch lp:bzr.webdav ~/.bazaar/plugins/webdav

Revision history for this message
UndiFineD (k.dejong) wrote :

# bzr branch lp:bzr.webdav ~/.bazaar/plugins/webdav
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".
bzr: ERROR: Parent of "/home/undifined/.bazaar/plugins/webdav" does not exist.

yes unconfigured ... :)

Revision history for this message
UndiFineD (k.dejong) wrote :

bzr branch lp:bzr.webdav ~/.bazaar/plugins/webdav
Permission denied (publickey).
bzr: ERROR: Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist.

Revision history for this message
UndiFineD (k.dejong) wrote :

ok, fixed my errors, and it is done now

thank you for the great help

Revision history for this message
Vincent Ladeuil (vila) wrote :

Thanks for telling us it works for you now !

affects: bzr (Ubuntu) → bzr-webdav (Ubuntu)
Changed in bzr-webdav (Ubuntu):
status: Incomplete → Confirmed
summary: - bazaar + apache2 + ssl failed
+ needs a packaged version compatible with bzr >= 2.0
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.