[apport] gdebi-gtk crashed with ImportError in <module>()

Bug #81790 reported by Justin
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-central (Ubuntu)
Fix Released
High
QuentinHartman

Bug Description

Binary package hint: gdebi

When trying to install a package, GDebi crashes. Probably something to do with the new version of Python.

ProblemType: Crash
Date: Fri Jan 26 23:10:13 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/gdebi-gtk
InterpreterPath: /usr/bin/python2.5
Package: gdebi 0.2ubuntu2
ProcCmdline: /usr/bin/python /usr/bin/gdebi-gtk /tmp/legends_linux_downloader-0.4.1.42.deb
ProcCwd: /home/justin
ProcEnviron:
 SHELL=/bin/bash
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
 LANG=en_US.UTF-8
PythonArgs: ['/usr/bin/gdebi-gtk', '/tmp/legends_linux_downloader-0.4.1.42.deb']
SourcePackage: gdebi
Traceback:
 Traceback (most recent call last):
   File "/usr/bin/gdebi-gtk", line 9, in <module>
     from GDebi.GDebi import GDebi
 ImportError: No module named GDebi.GDebi
Uname: Linux justin-desktop 2.6.20-5-generic #2 SMP Sat Jan 6 14:50:47 UTC 2007 i686 GNU/Linux

Revision history for this message
Justin (jgrace103) wrote : Dependencies.txt
Revision history for this message
Justin (jgrace103) wrote : ProcMaps.txt
Revision history for this message
Justin (jgrace103) wrote : ProcStatus.txt
Revision history for this message
Jeremy Teale (jteale) wrote :

The latest version is 0.2ubuntu6. Please update and see if your problem remains.

Changed in gdebi:
status: Unconfirmed → Needs Info
Revision history for this message
Noldorin (noldorin-h4x0r) wrote :

Same happens to me, but the weird thing is that after updating & upgrading my version it's 0.2ubuntu2

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

I fixed this problem in my local tree and it will be part of the next upload.

Changed in gdebi:
assignee: nobody → mvo
status: Needs Info → Fix Committed
Michael Vogt (mvo)
Changed in gdebi:
importance: Undecided → High
status: Fix Committed → Fix Released
Revision history for this message
Manuel Martín Salvador (draxus) wrote :

I have the same problem in Gdebi 0.2.4ubuntu1 :(

Revision history for this message
Michael Vogt (mvo) wrote :

@Manuel Martín Salvador:
can you please run "sudo dpkg --configure -a" and let me know if that fixes the issue for you?

Changed in gdebi:
status: Fix Released → Needs Info
Revision history for this message
QuentinHartman (qhartman) wrote :

I just discovered that my gdebi is broken as well. Same error as above. "sudo dpkg --configure -a" doesn't resolve it.

Revision history for this message
QuentinHartman (qhartman) wrote :

Actaully, my output is somewhat different:

qhartman@qhartman-x:~/Desktop$ gdebi
Traceback (most recent call last):
  File "/usr/bin/gdebi", line 35, in <module>
    from GDebi.GDebiCli import GDebiCli
ImportError: No module named GDebi.GDebiCli
qhartman@qhartman-x:~/Desktop$

And for gdebi-gtk:

qhartman@qhartman-x:~/Desktop$ gdebi-gtk
/usr/lib/python2.5/site-packages/apt/__init__.py:18: FutureWarning: apt API not stable yet
  warnings.warn("apt API not stable yet", FutureWarning)
Traceback (most recent call last):
  File "/usr/bin/gdebi-gtk", line 31, in <module>
    from GDebi.GDebi import GDebi
ImportError: No module named GDebi.GDebi

Revision history for this message
QuentinHartman (qhartman) wrote :

Ok, got this partly fixed in my Feisty install. If I change the "GDebi" symlink in /usr/lib/python2.5/site-packages so that is points to gdebi-core, the command-line gdebi works, but the GTK one is still broken.

So:

root@qhartman-x:/usr/lib/python2.5/site-packages# rm GDebi
root@qhartman-x:/usr/lib/python2.5/site-packages# ln -s /usr/share/pycentral/gdebi-core/site-packages/GDebi/ GDebi

is what I did to fix the command-line tool... This is surely the wrong thing to do, but it got me halfway there.

Revision history for this message
Michael Vogt (mvo) wrote :

@Q Hartman: Can you please check what /usr/bin/python points to?
$ ls -l /usr/bin/python

Revision history for this message
QuentinHartman (qhartman) wrote : Re: [Bug 81790] Re: [apport] gdebi-gtk crashed with ImportError in <module>()

I assume it points to python2.5 . When I run an interactive interpreter via
"python" it tells me it's 2.5. I will double-check when I get in to the
office.

On 4/20/07, Michael Vogt <email address hidden> wrote:
>
> @Q Hartman: Can you please check what /usr/bin/python points to?
> $ ls -l /usr/bin/python
>
> --
> [apport] gdebi-gtk crashed with ImportError in <module>()
> https://bugs.launchpad.net/bugs/81790
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
-Regards-

-Quentin Hartman-

Revision history for this message
QuentinHartman (qhartman) wrote :

Yup, python2.5. It ocurred to me that the rest of the problem could be fixed
with a couple more symlinks, but I'm still sure that's not the "right" way
to fix it. FWIW, I also removed and re-installed gdebi, and
dpkg-reconfigure'd it with no improvement in behavior.

On 4/20/07, Quentin Hartman <email address hidden> wrote:
>
> I assume it points to python2.5 . When I run an interactive interpreter
> via "python" it tells me it's 2.5. I will double-check when I get in to
> the office.
>
> On 4/20/07, Michael Vogt <email address hidden> wrote:
> >
> > @Q Hartman: Can you please check what /usr/bin/python points to?
> > $ ls -l /usr/bin/python
> >
> > --
> > [apport] gdebi-gtk crashed with ImportError in <module>()
> > https://bugs.launchpad.net/bugs/81790
> > You received this bug notification because you are a direct subscriber
> > of the bug.
> >
>
>
>
> --
> -Regards-
>
> -Quentin Hartman-

--
-Regards-

-Quentin Hartman-

Revision history for this message
Michael Vogt (mvo) wrote :

If /usr/bin/python ponts to the right python version I currently do not know whats wrong. I suspect python-central and reassign (sounds like Bug #75557)

Changed in gdebi:
assignee: mvo → nobody
Changed in python-central:
status: Needs Info → Unconfirmed
Revision history for this message
QuentinHartman (qhartman) wrote :

FWIW, I tried the fix attached to bug #75557 with no success. Is there some information I can provide you to make troubleshooting this easier? I don't know enough about Python internals to really even have a guess at a "correct" fix beyond changing symlinks around to force modules to import correctly.

Revision history for this message
QuentinHartman (qhartman) wrote :

I haven't been able to recreate this problem in Feisty or Gutsy. Assuming fixed. If you still see this problem Justin, please change the status appropriately.

Changed in python-central:
assignee: nobody → deque
status: New → Fix Released
Revision history for this message
Roland.S (rslsp1) wrote :

Fixed: Problem is the python version. I had set /usr/bin/python to python2.5 on ubuntu 9.10 and then i get this error to.
If I set back /usr/bin/python to python2.6 (the default on ubuntu 9.10) then gdebi runs ok.

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.