eric's pythondoc path is wrong

Bug #416577 reported by ilna
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eric (Ubuntu)
New
Undecided
Unassigned
Nominated for Karmic by ilna

Bug Description

Binary package hint: eric

Up to date Kubuntu Karmic is in use. eric package changelog fragment:

eric (4.3.5-1) unstable; urgency=low

  * New upstream release
  * Change python-doc dir to python2.5-doc.

 -- Gudjon I. Gudjonsson <email address hidden> Fri, 24 Jul 2009 08:22:20 +0200

But:

$ python
Python 2.6.2+ (release26-maint, Jul 24 2009, 16:18:09)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.

And:

$ ls -als /usr/share/doc/python/ | grep doc
 0 lrwxrwxrwx 1 root root 21 2009-08-18 22:01 html -> ../python2.6-doc/html

OK, I have tried to set python doc path in eric IDE, and I have:

cat ~/.config/Eric4/eric4.ini | grep -i pythondoc
PythonDocDir=/usr/share/doc/python/html/

Nevertheless trying to open a doc in eric shows a message: "The documentation starting point "/usr/share/doc/python2.5-doc/html/index.html" could not be found."

Is the path hardcoded?

Revision history for this message
ilna (a-gaydenko) wrote :

I have tried last upstream version 4.3.6 (just started eryc4.py) - the issue doesn't exist. Probably the best way to resolve the bug is to upgrade the package.

Must I supply additional info to help with the bug?

Revision history for this message
Stephen Schaub (sschaub) wrote :

This issue exists on eric 4.3.7.1, which is the current version for karmic.

The problem appears to be due to the following line in line 4227 of /usr/share/eric/modules/UI/UserInterface.py:

home = '/usr/share/doc/python2.5-doc/html/index.html'

Clearly this is a hard-coded path, and it is overriding the value that the code earlier pulls from preferences. Commenting out this line fixed the problem for me.

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.