python-lazr.delegates causes 'No module named restfulclient.errors' from apport-bug

Bug #696134 reported by jbatista
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Apport
Invalid
Undecided
Unassigned
lazr.delegates
Invalid
Critical
Unassigned
lazr.delegates (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: python-lazr.delegates

Similarly to Bug #696075 , the package python-lazr.delegates breaks ubuntu-bug (apport-bug) in Lucid Lynx.

Further information:
ubuntu@lucid:~$ lsb_release -rd
Description: Ubuntu 10.04.1 LTS
Release: 10.04
ubuntu@lucid:~$ apt-cache policy python-lazr.delegates
python-lazr.delegates:
  Installed: (none)
  Candidate: 1.1.0-0ubuntu1
  Version table:
     1.1.0-0ubuntu1 0
        500 http://pt.archive.ubuntu.com/ubuntu/ lucid/universe Packages
ubuntu@lucid:~$

Tags: lucid
jbatista (jmnbatista)
tags: added: lucid
Revision history for this message
Robert Collins (lifeless) wrote :

How does it break it? Can we get a backtrace or similar please?

Changed in lazr.delegates:
status: New → Incomplete
Revision history for this message
jbatista (jmnbatista) wrote :

Hi Robert,

I'm appending a console session and the output of strace. Let me know if this is enough to continue or if further information is necessary.

Revision history for this message
jbatista (jmnbatista) wrote :

Console session log. Notice that apport-bug produces the version number if python-lazr.delegates is not installed, whereas when the latter is installed no operation is possible with apport-bug.

Revision history for this message
jbatista (jmnbatista) wrote :

This is the strace log when python-lazr.delegates is installed.

Revision history for this message
jbatista (jmnbatista) wrote :

Sorry, I forgot to include the stack trace... :-*

Revision history for this message
Robert Collins (lifeless) wrote :

Hi, that looks like a strace not a stack dump, but thats ok - the console session gives us something to go on. Thanks!

Revision history for this message
Robert Collins (lifeless) wrote :

'ubuntu@lucid:~$ apport-bug --version
Could not import module, is a package upgrade in progress? Error: No module named restfulclient.errors'

summary: - (Lucid amd64) python-lazr.delegates breaks apport-bug
+ python-lazr.delegates causes 'No module named restfulclient.errors' from
+ apport-bug
Changed in lazr.delegates:
status: Incomplete → Triaged
importance: Undecided → Critical
Revision history for this message
jbatista (jmnbatista) wrote :

Further information (I'm not knowledgeable about Python, so I was scratching my head when you asked for a stack trace). Here's a console session output. When python.lazr-delegates is uninstalled, you can import * from lazr.restfulclient without getting an ImportError. See attachment.

Revision history for this message
Gary Poster (gary) wrote :

This is a packaging issue, almost certainly dealing with the problematic Python namespace packages.

Changed in lazr.delegates:
status: Triaged → Confirmed
status: Confirmed → Invalid
Martin Pitt (pitti)
Changed in apport:
status: New → Invalid
Revision history for this message
Logan Rosen (logan) wrote :

I cannot reproduce this in Raring. Can you still reproduce this in your Ubuntu installation, jbatista?

Changed in lazr.delegates (Ubuntu):
status: New → Incomplete
Revision history for this message
jbatista (jmnbatista) wrote :
Download full text (3.5 KiB)

Hi logan, I confirm that this bug persists in python-lazr.delegates. If this package is installed in Lucid (amd64), it breaks apport-bug.
I just did a rehearsal and installed python-lazr.delegates and attempted to run apport-bug.
1) I requested a ubuntu-bug (apport-bug) version,
2) installed python-lazr.delegates,
3) ran ubuntu-bug again and reproduced problem (I confirm it persists),
4) uninstalled python-lazr.delegates,
5) ran ubuntu-bug again without a problem.

The console session output follows:

ubuntu@lucid:~$ ### STEP 1 #########
ubuntu@lucid:~$ ubuntu-bug --version
1.13.3
ubuntu@lucid:~$ dpkg -l apport*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Nome Versão Descrição
+++-===========================-===========================-======================================================================
ii apport 1.13.3-0ubuntu2.1 automatically generate crash reports for debugging
un apport-cli <none> (sem descrição disponível)
ii apport-gtk 1.13.3-0ubuntu2.1 GTK+ frontend for the apport crash report system
un apport-kde <none> (sem descrição disponível)
ii apport-retrace 1.13.3-0ubuntu2.1 tools for reprocessing Apport crash reports
ii apport-symptoms 0.9 symptom scripts for apport
ubuntu@lucid:~$ ### STEP 2 #########
ubuntu@lucid:~$ sudo apt-get install python-lazr.delegates
A ler as listas de pacotes... Pronto
A construir árvore de dependências
A ler a informação de estado... Pronto
Serão instalados os seguintes NOVOS pacotes:
  python-lazr.delegates
0 pacotes actualizados, 1 pacotes novos instalados, 0 a remover e 1 não actualizados.
É necessário obter 0B/8768B de arquivos.
Após esta operação, serão utilizados 147kB adicionais de espaço em disco.
Selecting previously unselected package python-lazr.delegates.
(A ler a base de dados ... 1288521 ficheiros e directórios actualmente instalados.)
A descompactar python-lazr.delegates (desde .../python-lazr.delegates_1.1.0-0ubuntu1_all.deb) ...
A instalar python-lazr.delegates (1.1.0-0ubuntu1) ...
A processar 'triggers' para python-central ...
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB
localepurge: Disk space freed in /usr/share/doc/kde/HTML: 0 KiB

Total disk space freed by localepurge: 0 KiB

ubuntu@lucid:~$ ### STEP 3 #########
ubuntu@lucid:~$ ubuntu-bug --version
Could not import module, is a package upgrade in progress? Error: No module named restfulclient.errors
ubuntu@lucid:~$ ### STEP 4 #########
ubuntu@lucid:~$ sudo apt-get remove python-lazr.delegates
A ler as listas de pacotes... Pronto
A construir árvore de dependências
A ler a informação de estado... Pronto
Serão REMOVIDOS os seguintes pacotes:
  python-la...

Read more...

Logan Rosen (logan)
Changed in lazr.delegates (Ubuntu):
status: Incomplete → New
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.