peppy

Nobody nobody at nowhere.com
Tue Dec 1 02:35:52 EST 2009


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.




More information about the Python-list mailing list