pype imports old wx, fails

Bug #176670 reported by rvconde
6
Affects Status Importance Assigned to Milestone
pype (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Binary package hint: pype

in Kubuntu Hardy,

pype doesn't import wx right.

$ pype
/usr/share/pype/pype.py:38: DeprecationWarning: The wxPython compatibility package is no longer automatically generated or actively maintained. Please switch to the wx package as soon as possible.
  from wxPython.wx import *
[ Sun Dec 16 13:42:22 2007 ] Loading menus from /home/tb/.pype/menus.txt
Loading history from /home/tb/.pype/history.txt
[ Sun Dec 16 13:42:25 2007 ] Traceback (most recent call last):
  File "/usr/bin/pype", line 7, in <module>
    pype.main()
  File "/usr/share/pype/pype.py", line 4350, in main
    filehistory.root = root = app.frame = MainWindow(None, -1, "PyPE", docs)
  File "/usr/share/pype/pype.py", line 676, in __init__
    menuAddM(menuBar, filemenu, "&File")
  File "/usr/share/pype/pype.py", line 248, in menuAddM
    if isinstance(parent, wxMenu) or isinstance(parent, wxMenuPtr):
NameError: global name 'wxMenuPtr' is not defined

ProblemType: Bug
Architecture: i386
Date: Sun Dec 16 13:47:31 2007
DistroRelease: Ubuntu 8.04
NonfreeKernelModules: nvidia
Uname: Linux osprey 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux

Tags: apport-bug
Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10?

Changed in pype:
status: New → Incomplete
Revision history for this message
Nick Depalma (ndepalma) wrote :

Yes. I'm receiving this problem in Intrepid Ibex (8.10) I have no experience with this but I suspect it has to do with having the wx distutil installed along side pype. For now I've been using SPE to solve my problems - anybody know of a good solution to this?

Revision history for this message
Nick Depalma (ndepalma) wrote :

Quick note - i did notice a few things - namely that pype uses deprecated methods of wx. I would go through and fix them all but I'm hard up for project delivery so I don't have the time right now - I did notice that they don't use wxMenuPtr or wxMenuItemPtr at all other than check if it "isinstance" so I just commented it out and it worked for now. It's not a very good solution - but those who want their pype and can't wait can use my attached patch file.

Revision history for this message
Nick Depalma (ndepalma) wrote :

Ok forget what I last said - I encountered a really nasty bug even if you get past the startup. Just install pype 2.8.8 - why isn't this in ibex??

Revision history for this message
Tomás Vírseda García (kaskaras) wrote :

This package is also broken in Ubuntu 9.04

Revision history for this message
xteejx (xteejx-deactivatedaccount) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. I have tested this in Maverick, pype version 2.5-2 and am not having any problem with starting the program.
Strange that it works in Maverick, yet the same version has been used since Hardy, therefore I'd like to think that pype isn't the offending package, but rather python-wx*
Is anyone still having problems with this in Maverick (current release)? Thank you.

Changed in pype (Ubuntu):
importance: Undecided → Low
Revision history for this message
Andreas Noteng (andreas-noteng) wrote :

teej: are you sure you are not having any old python-wx* packages around? I'm unable to start pype in maverick. And get the exact same errors as op. An updated package of pype has been released in debian sid/squeeze and ubuntu natty. Unfortunately my sync request didn't get attention in time for Maverick.

Revision history for this message
xteejx (xteejx-deactivatedaccount) wrote :

Yes, 100% sure - this is a fresh install of Maverick from the 10.10 RC iso. Is it possible that you are using an upgraded version of Ubuntu and that it could be remnants of the older python packages that are causing the error to appear on yours?
I don't see why this was marked as a duplicate of bug 616246, as that is a crash in an awn applet on initialisation.

Revision history for this message
Andreas Noteng (andreas-noteng) wrote :

Sorry about the dupe, must have misread the bugnumber. It's supposed to be bug #198586

Changed in pype (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Andreas Noteng (andreas-noteng) wrote :

Well, I've tested with debian sid/squeeze and ubuntu maverick/lucid. I'll check again once I get home, but as long as the packages I have installed in my system are from the official repo, I don't see how this could be. The only thing I can find is that my system has python-wxgtk2.6 installed. Do you have that?
Also, upgrading pype solves the problem, maybe the older pype chooses the wrong version of python-wxgtk if both 2.6 and 2.8 is installed?
Anyway, pype should be newer varsion, the debian maintainer abandoned the package in 2006, but didn't bother to file a rfa bug in debian, so the package has been unmaintained since.

Revision history for this message
xteejx (xteejx-deactivatedaccount) wrote :

Ok Andreas, no problem. Thanks for reduping this bug :)

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.