peppy

J

Johann Spies

After reading about peppy on Freshmeat I decided to try it out after
installing it using easy_install. But:

$ peppy
Traceback (most recent call last):
File "/usr/bin/peppy", line 5, in <module>
pkg_resources.run_script('peppy==0.13.2', 'peppy')
File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 452, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1179, in run_script
execfile(script_filename, namespace, namespace)
File "/usr/lib/python2.5/site-packages/peppy-0.13.2-py2.5.egg/EGG-INFO/scripts/peppy", line 13, in <module>
import peppy.main
File "/usr/lib/python2.5/site-packages/peppy-0.13.2-py2.5.egg/peppy/main.py", line 16, in <module>
from peppy.buffers import *
File "/usr/lib/python2.5/site-packages/peppy-0.13.2-py2.5.egg/peppy/buffers.py", line 11, in <module>
from peppy.actions import *
File "/usr/lib/python2.5/site-packages/peppy-0.13.2-py2.5.egg/peppy/actions/__init__.py", line 31, in <module>
from peppy.lib.multikey import KeyAccelerator
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'

This is on Debian squeeze.

How do I solve this?

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

"Lo, children are an heritage of the LORD: and the
fruit of the womb is his reward." Psalms 127:3
 
N

Nobody

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.
 
J

Johann Spies

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).


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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,533
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top