[python-gtk2-tutorial] some examples broken in Yelp

Bug #42016 reported by Chris Kühl
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-gtk2-tutorial (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

I get the following error msg when clicking on the example links in yelp.

The Uniform Resource Identifier ‘file:///usr/share/doc/python-gtk2-tutorial/html/examples/uimanager.py’ is invalid or does not point to an actual file.

some of the links work and some don't (arrow.py works, drawarea.py doesn't)

list of broken links:

packbox.py
rangewidgets.py
progressbar.py
wheelbarrow.py
spinbutton.py
calendar.py
toolbar.py
drawingarea.py
uimanager.py
textview-basic.py
testtext.py
filelisting-gtm.py
clipboard.py
actiongroup.py
dragndrop.py

Tags: yelp
Revision history for this message
Chris Kühl (blixtra) wrote :

running:

sudo gunzip *.gz

in the examples folder fixes this problem

seems as if not all the files were unpacked.

Revision history for this message
Matthew East (mdke) wrote :

Thanks for reporting the problem.

Can you tell us where these links were found please?

Changed in ubuntu-docs:
status: Unconfirmed → Needs Info
Revision history for this message
Will Simpson (linux.photo.geek) wrote :

I don't have a /usr/share/doc/python-gtk2-tutorial/ directory. This seems to be part of a non-default package. Sounds kind of interesting though.

Chris, which package did you add to get this tutorial?

Revision history for this message
Dean Sas (dsas) wrote :

We don't link directly to the pygtk docs anywhere except to the "front page" at file:///usr/share/doc/python-gtk2-tutorial/html/index.html and we don't do that until we've said "install them please".

Browsing the pygtk tutorial (go to the front page, linked above, scroll to the bottom and choose "9.4 progress bar example", then scroll down and press "progressbar.py" underneath the image and yelp will complain about not finding the file.

Changed in ubuntu-docs:
status: Needs Info → Confirmed
Revision history for this message
Will Simpson (linux.photo.geek) wrote :

This does not appear to be a problem with yelp. Yelp complains because these files are gunziped.

This is a problem with how the tutorial is packaged. Either the *.gz files in file:///usr/share/doc/python-gtk2-tutorial/html/examples should be decompressed before packaging, as part of the apt-get install post process or the user should be instructed to sudo gunzip *.gz in that directory.

Attached screen shot of before and after "sudo gunzip *.gz" and now all links word great.

Revision history for this message
Duncan Lithgow (duncan-lithgow) wrote :

Still seeing this bug in Ubuntu Hardy.

Revision history for this message
Giulio Malventi (giulio-people) wrote :

I can confirm having this bug while browsing the documentation with any browser in Hardy. "sudo gunzip /usr/share/doc/python-gtk2-tutorial/html/examples/*.gz" fixes it.

Revision history for this message
Omegamormegil (omegamormegil) wrote :

Example pygtkconsole.py from the tutorial doesn't run properly. In Idle, I get an error about indenting (see screenshot). If I just try running the program with python, I get an empty window. It is supposed to give me some sample buttons that activate a "Hello World!" message. See page file:///usr/share/doc/python-gtk2-tutorial/html/ch-Introduction.html

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.