apturl fails with ImportError

Bug #609867 reported by G Harmer
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
apturl (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: apturl

I tried and failed to get a version of freeciv from playdeb with Firefox giving me an unrecognised protocol error as reported in other bugs eg 476853 so I tried the Firefox about:config mods suggested in http://hubpages.com/hub/Ubuntu-Resolving-AptURL-Open-With-Error but without success.
Further research suggested apturl should work from the command line with the following result.

graham@BESSIE:~$ apturl apt:2vcard
Traceback (most recent call last):
  File "/usr/bin/apturl", line 34, in <module>
    from AptUrl.AptUrl import AptUrlController
ImportError: No module named AptUrl.AptUrl

The result is identical with or without a url parameter, no matter what I throw at apturl I get the same result.

I have completely removed and reinstalled apturl using Synaptic but no difference.

The about:config mods to Firefox resulted in a "Launch Application" dialogue box appearing but choosing /usr/bin/apturl resulted in sweet nothing. I don't know enough about Ubuntu to know where any errors reported from this might go. Using the Log File Viewer revealed nothing.

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: nvidia
Package: apturl 0.3.3ubuntu1.2
PackageArchitecture: all
ProcEnviron:
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: apturl
Uname: Linux 2.6.28-19-generic i686

Revision history for this message
G Harmer (glharmer) wrote :
Revision history for this message
Ray Foulkes (ray-foulkes) wrote :

AptUrl is not runnable for me. The reason is that it tries to import 2 modules one from AptUrl (.py that is) and one from AptUrl/gtk

They are to be found (at least on my copy of Ubuntu 9.04) in /usr/share/pyshared/. The current path is:
    '/home/ray',
    '/usr/lib/python2.6',
    '/usr/lib/python2.6/plat-linux2',
    '/usr/lib/python2.6/lib-tk',
    '/usr/lib/python2.6/lib-old',
    '/usr/lib/python2.6/lib-dynload',
    '/usr/lib/python2.6/dist-packages',
    '/usr/lib/python2.6/dist-packages/PIL',
    '/usr/lib/python2.6/dist-packages/gst-0.10',
    '/var/lib/python-support/python2.6',
    '/usr/lib/python2.6/dist-packages/gtk-2.0',
    '/var/lib/python-support/python2.6/gtk-2.0',
    '/usr/local/lib/python2.6/dist-packages',
which you might notice does not include /usr/share/pyshared/ hence neither module is found, hence AptUrl fails - though where the error message goes I have no idea. Nor do I know the correct place to include the relevant search path for python.

Thus, there is a little analysis of the problem, though not the solution.

Revision history for this message
Ray Foulkes (ray-foulkes) wrote :

I should have added that this is on Ubuntu 9.04 fully patched on an eeepc.

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.