apturl fails with ImportError
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://
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
NonfreeKernelMo
Package: apturl 0.3.3ubuntu1.2
PackageArchitec
ProcEnviron:
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: apturl
Uname: Linux 2.6.28-19-generic i686
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: lib/python2. 6', lib/python2. 6/plat- linux2' , lib/python2. 6/lib-tk' , lib/python2. 6/lib-old' , lib/python2. 6/lib-dynload' , lib/python2. 6/dist- packages' , lib/python2. 6/dist- packages/ PIL', lib/python2. 6/dist- packages/ gst-0.10' , lib/python- support/ python2. 6', lib/python2. 6/dist- packages/ gtk-2.0' , lib/python- support/ python2. 6/gtk-2. 0', local/lib/ python2. 6/dist- packages' , 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.
'/home/ray',
'/usr/
'/usr/
'/usr/
'/usr/
'/usr/
'/usr/
'/usr/
'/usr/
'/var/
'/usr/
'/var/
'/usr/
which you might notice does not include /usr/share/
Thus, there is a little analysis of the problem, though not the solution.