fetchmailconf fails on first run: can't open file '/usr/lib/python2.6/site-packages/fetchmailconf.py'

Bug #364784 reported by cnom
This bug report is a duplicate of:  Bug #371072: fetchmailconf does not start. Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
fetchmail (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: fetchmailconf

Ubuntu 9.04 (jaunty) [beta]
Kernel Linux 2.6.28-11-generic
GNOME 2.26.1

fetchmailconf fails on first call after a fresh install from Synaptic:

> % fetchmailconf
> /usr/bin/python: can't open file '/usr/lib/python2.6/site-packages/fetchmailconf.py': [Errno 2] No such file or directory

There is no directory named 'site-packages' in '/usr/lib/python2.6', but there is a '/usr/lib/python2.6/dist-packages/fetchmailconf.py'.

After updating '/usr/bin/fetchmailconf' to reflect this path, fetchmailconf runs without further problems.

cnom (cnom)
summary: - fetchmailconf fails on startup: can't open file
+ fetchmailconf fails on first run: can't open file
'/usr/lib/python2.6/site-packages/fetchmailconf.py'
Revision history for this message
cnom (cnom) wrote :

I suspect there has been a change in the python directory structure recently, because in '/usr/lib/python2.5' there still is a 'site-packages' directory.

'/usr/bin/fetchmailconf' tries to be version-independent by using a back-ticked `pyversions -d` in the path, but the 'site-packages' part is static. Should this be done with a conditional?

Revision history for this message
Andreas Olsson (andol) wrote :

I'll be marking this bug as a duplicate of bug #371072. I know this report is actually the older one, but I didn't notice it until after I had triage the other one. If you think there is anything missing in bug #371072, please comment on it.

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.