[apport] restricted-manager crashed with ImportError in <module>()

Bug #93795 reported by Piotr Gaczkowski
190
Affects Status Importance Assigned to Milestone
python-central (Ubuntu)
Invalid
High
Matthias Klose

Bug Description

Binary package hint: restricted-manager

$ restricted-manager
GTK Accessibility Module initialized
Traceback (most recent call last):
  File "/usr/bin/restricted-manager", line 49, in <module>
    import RestrictedManager
ImportError: No module named RestrictedManager

AMD64 here

ProblemType: Crash
Architecture: amd64
Date: Mon Mar 19 19:03:55 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/restricted-manager
InterpreterPath: /usr/bin/python2.5
Package: restricted-manager 0.10
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/restricted-manager
ProcCwd: /home/doomhammer/betka
ProcEnviron:
 SHELL=/bin/bash
 PATH=/home/doomhammer/.local/bin:/home/doomhammer/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
 LANG=pl_PL.UTF-8
PythonArgs: ['/usr/bin/restricted-manager']
SourcePackage: restricted-manager
Traceback:
 Traceback (most recent call last):
   File "/usr/bin/restricted-manager", line 49, in <module>
     import RestrictedManager
 ImportError: No module named RestrictedManager
Uname: Linux quentin 2.6.20-11-generic #2 SMP Thu Mar 15 03:43:56 UTC 2007 x86_64 GNU/Linux

Revision history for this message
Piotr Gaczkowski (doomhammer) wrote :
Revision history for this message
Martin Pitt (pitti) wrote :

Did you try this during an upgrade? Does it still happen now?

If so, please try if

  sudo apt-get install -f

repairs it (it cleans up after a failed distribution upgrade).

Changed in restricted-manager:
status: Unconfirmed → Needs Info
Revision history for this message
Piotr Gaczkowski (doomhammer) wrote :

ey-oop! Happens still.

Revision history for this message
Martin Pitt (pitti) wrote :

Please give me the output of

 dpkg -s restricted-manager
 ls -l /usr/lib/python2.5/site-packages/RestrictedManager/

Revision history for this message
Piotr Gaczkowski (doomhammer) wrote :

$ dpkg -s restricted-manager
Package: restricted-manager
Status: install ok installed
Priority: optional
Section: admin
Installed-Size: 272
Maintainer: Martin Pitt <email address hidden>
Architecture: all
Version: 0.11
Depends: python, python-central (>= 0.5.8), python-notify (>= 0.1.1-0ubuntu2), python-glade2, python-xdg, x11-common (>= 7.2-0ubuntu6), synaptic
Conffiles:
 /etc/xdg/autostart/restricted-manager.desktop 2df3b734e78d714e8d2c95a3d496c910
Description: manage non-free hardware drivers
 Restricted Manager provides a Gnome user interface for configuring
 non-free hardware drivers, such as the Nvidia and ATI fglrx X.org
 and various Wireless LAN kernel modules.
Python-Version: current

$ ls -l /usr/lib/python2.5/site-packages/RestrictedManager/
ls: /usr/lib/python2.5/site-packages/RestrictedManager/: No such file or directory

Revision history for this message
Martin Pitt (pitti) wrote :

Ah, so it seems that python-central didn't install the links correctly. Can you please give me the output of

  sudo pycentral -v pkginstall restricted-manager
  ls -l /usr/lib/python*/site-packages/RestrictedManager/

Revision history for this message
Piotr Gaczkowski (doomhammer) wrote :

$ sudo pycentral -v pkginstall restricted-manager
pycentral: pycentral -v pkginstall restricted-manager
pycentral: avail=['2.4', '2.5'], pkg=current, install=[]
pycentral: install package restricted-manager
$ ls -l /usr/lib/python*/site-packages/RestrictedManager/
ls: /usr/lib/python*/site-packages/RestrictedManager/: No such file or directory

Revision history for this message
Martin Pitt (pitti) wrote :

This seems to affect an awful lot of people. Matthias, do you have an idea about that one?

Changed in python-central:
assignee: nobody → doko
importance: Undecided → High
status: Needs Info → Confirmed
Revision history for this message
Matthias Klose (doko) wrote :

please could you run

 - pyversions -vs
 - pyversions -vd

and report the results?

Revision history for this message
Matthias Klose (doko) wrote :

> pycentral: avail=['2.4', '2.5'], pkg=current, install=[]

somehow pycentral thinks it doesn't have any python version where the package needs installation.

could you run
  - apt-cache show restricted-manager
  - ls -l /usr/bin/python

Revision history for this message
mneagul (mneagul) wrote :

In my case:

  `pyversions -vs`:
     2.4 2.5

   `pyversions -vd`:
     in/python2.5

    `apt-cache show restricted-manager`:
Package: restricted-manager
Priority: optional
Section: admin
Installed-Size: 292
Maintainer: Martin Pitt <email address hidden>
Architecture: all
Version: 0.14
Depends: python, python-central (>= 0.5.8), python-notify (>= 0.1.1-0ubuntu2), python-glade2, python-xdg, x11-common (>= 7.2-0ubuntu6), synaptic
Filename: pool/main/r/restricted-manager/restricted-manager_0.14_all.deb
Size: 25906
MD5sum: d53e2fa7e18a0622ce24a1bfbb2c481c
SHA1: 050a151c23c2a9ce681884e952719869398bd719
SHA256: d0fb78a3f22dc58072394555cce4b8aec78be6d5354d89c7bdba5d0e495204de
Description: manage non-free hardware drivers
 Restricted Manager provides a Gnome user interface for configuring
 non-free hardware drivers, such as the Nvidia and ATI fglrx X.org
 and various Wireless LAN kernel modules.
Python-Version: current
Bugs: mailto:<email address hidden>
Origin: Ubuntu
Task: ubuntu-desktop, edubuntu-desktop, xubuntu-desktop

  `ls -l /usr/bin/python`:
     lrwxrwxrwx 1 root root 18 2007-03-18 02:04 /usr/bin/python -> /usr/bin/python2.5

Revision history for this message
Gons (pistacholibre) wrote : Re: [Bug 93795] Re: [apport] restricted-manager crashed with ImportError in <module>()

$ pyversions -vs
2.4 2.5
$ pyversions -vd
2.5

2007/3/29, Matthias Klose <email address hidden>:
>
> please could you run
>
> - pyversions -vs
> - pyversions -vd
>
> and report the results?
>
> --
> [apport] restricted-manager crashed with ImportError in <module>()
> https://launchpad.net/bugs/93795
>

Revision history for this message
revslowmo (revslowmo) wrote :

slowmo@tamale:~$ pyversions -vs
2.4 2.5
slowmo@tamale:~$ pyversions -vd
2.5

Revision history for this message
Matthias Klose (doko) wrote :

sorry, forgot to ask, if this problem is still reproducible on your system. the command output doesn't help, if the package is already sucessfully installed.

Revision history for this message
DannyBZR (dannybzr) wrote :

Seems to have only happened then once...

On 31/03/07, Matthias Klose <email address hidden> wrote:
>
> sorry, forgot to ask, if this problem is still reproducible on your
> system. the command output doesn't help, if the package is already
> sucessfully installed.
>
> --
> [apport] restricted-manager crashed with ImportError in <module>()
> https://launchpad.net/bugs/93795
>

--
Daniel

Revision history for this message
revslowmo (revslowmo) wrote :

Matthias Klose wrote:
> sorry, forgot to ask, if this problem is still reproducible on your
> system. the command output doesn't help, if the package is already
> sucessfully installed.
>
>

I can no longer reproduce the problem. I have just done a apt-get
upgrade so everything seems to be working... Atleast on my side.

Revision history for this message
Piotr Gaczkowski (doomhammer) wrote :

$ pyversions -vs
2.4 2.5
$ pyversions -vd
in/python2.5

Now and the crap works. service-discovery though doesn't.

Revision history for this message
Martin Pitt (pitti) wrote :

NB that current feisty's restricted-manager hacks around the problem by not using the pycentral symlinking infrastructure, so r-m cannot be used as a test case for this any more.

Revision history for this message
Matthias Klose (doko) wrote :

> `ls -l /usr/bin/python`:
> lrwxrwxrwx 1 root root 18 2007-03-18 02:04 /usr/bin/python -> /usr/bin/python2.5

this symlink was never installed by a system package in this form. we do not support user-modified systems.

Revision history for this message
Marc66thomas (marcmmtthomas) wrote :

Thank you for the note.
I dont know what I installed out side of adobe flash player plug in
Thanks

On 10/3/07, Matthias Klose <email address hidden> wrote:
> > `ls -l /usr/bin/python`:
> > lrwxrwxrwx 1 root root 18 2007-03-18 02:04 /usr/bin/python -> /usr/bin/python2.5
>
> this symlink was never installed by a system package in this form. we do
> not support user-modified systems.
>
> --
> [apport] restricted-manager crashed with ImportError in <module>()
> https://bugs.launchpad.net/bugs/93795
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>

--
MT

Marc Thomas
213.291.1881 (rings my cell and land line LA)
206.387.3865 (rings my cell and land line) for Seattle folks, use this first
323.606.1363 (for text messages to my cell)
<email address hidden>

Revision history for this message
akira (akira.spb) wrote :

You welcome.
--
------------------------------------------------
Со мной можно связаться:
email: <email address hidden>, <email address hidden>
icq: 273433
jabber: <email address hidden>

Revision history for this message
Alien (v-mihail) wrote :

I'm using Kubuntu 7.10 (just installed) and i have the same bug.

Revision history for this message
Matthias Klose (doko) wrote :

closing this report; rationale given in
https://bugs.edge.launchpad.net/ubuntu/+source/python-central/+bug/93795/comments/19

Apparently many users did change this symlink on their own (before Ubuntu did switch from 2.4 to 2.5); we cannot support such modified systems.

Changed in python-central:
status: Confirmed → Invalid
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.