wxPython demo is not installing properly

Bug #196834 reported by Aaron Ahlemeyer
18
Affects Status Importance Assigned to Milestone
wxwidgets2.8 (Ubuntu)
Invalid
Low
Unassigned

Bug Description

1) ubuntu release: Ubuntu 7.10 gutsy
2) source package: wxwidgets2.8
3) package version: wx2.8-examples 2.8.4.0-0ubuntu3
4) I expected to start the wxPython demo with the command line:
  python '/usr/share/doc/wx2.8-examples/examples/wxPython/demo.py'
5) This command resulted in the following error:
  Traceback (most recent call last):
    File "/usr/share/doc/wx2.8-examples/examples/wxPython/demo.py", line 3, in <module>
      import Main
  ImportError: No module named Main

I discovered that about half of the python scripts in /usr/share/doc/wx2.8-examples/examples/wxPython are gzipped.

Cheers,
Aaron Ahlemeyer

PS: This same problem also exists for the wx2.4-examples and wx2.6-examples. I am not sure if additional bugs should be filed or if this bug can be associated to the other source packages.

Tags: packaging
Revision history for this message
Aaron Ahlemeyer (fatespeaks) wrote :

"sudo gzip -d *.gz" in the /usr/share/doc/wx2.8-examples/examples/wxPython and /usr/share/doc/wx2.8-examples/examples/wxPython/data directories seems to have resolved the issue on my system.

Revision history for this message
Ralph Janke (txwikinger) wrote :

I can confirm this behaviour on gutsy and on hardy (updated 20080229 wx2.8-examples 2.8.7.1-0ubuntu1).

Changed in wxwidgets2.8:
assignee: nobody → txwikinger
status: New → Confirmed
Revision history for this message
Ralph Janke (txwikinger) wrote :

I believe it is a packaging issue. Not all .gz files in examples are decompressed as necessary.

Changed in wxwidgets2.8:
assignee: txwikinger → nobody
status: Confirmed → Triaged
importance: Undecided → Low
Revision history for this message
Devid Antonio Filoni (d.filoni) wrote :

debian/unpack_examples.sh should do this work.

Revision history for this message
Devid Antonio Filoni (d.filoni) wrote :

I'm working on this.

Changed in wxwidgets2.8:
assignee: nobody → d.filoni
status: Triaged → In Progress
Revision history for this message
Devid Antonio Filoni (d.filoni) wrote :

This isn't a bug because some of the examples have been compressed in accordance with Debian policy and some of they need to write in the same dir, so sudo gzip -d *.gz the /usr/share/doc/wx2.8-examples/examples/wxPython etc.. shouldn't be used to unpack examples. Please read this file:
/usr/share/doc/wx2.8-examples/examples/README.examples
and use this to unpack examples:
/usr/share/doc/wx2.8-examples/examples/unpack_examples.sh

Changed in wxwidgets2.8:
assignee: d.filoni → nobody
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.