peppy

Johann Spies jspies at sun.ac.za
Thu Dec 3 04:50:42 EST 2009


On Tue, Dec 01, 2009 at 07:35:52AM +0000, Nobody wrote:
> On Tue, 01 Dec 2009 08:51:20 +0200, Johann Spies wrote:
> 
> > After reading about peppy on Freshmeat I decided to try it out after
> > installing it using easy_install.  But:
> > 
> > $ peppy
> 
> >   File "/usr/lib/python2.5/site-packages/peppy-0.13.2-py2.5.egg/peppy/lib/multikey.py", line 120, in <module>
> >     'C-': wx.ACCEL_CMD,
> > AttributeError: 'module' object has no attribute 'ACCEL_CMD'
> 
> wx.ACCEL_CMD exists in wxPython 2.8 but not in 2.6, so I'd guess that
> peppy requires 2.8 but you have 2.6 (or if you have both, 2.6 is the
> default).
> 
> > This is on Debian squeeze.
> > 
> > How do I solve this?
> 
> First, ensure that wxPython 2.8 is installed. If you have both 2.6 and
> 2.8, you may need to add the following at the beginning of the main
> "peppy" script:
> 
> 	import wxversion
> 	wxversion.select("2.8")
> 
> This will cause subsequent "import wx" commands to use wxPython 2.8.

Thanks.  That was indeed the problem that I had both 2.6 and 2.8
installed.

Regards
Johann

-- 
Johann Spies          Telefoon: 021-808 4599
Informasietegnologie, Universiteit van Stellenbosch

     "What shall we then say to these things? If God be for 
      us, who can be against us?"              Romans 8:31 



More information about the Python-list mailing list