Having trouble getting drpython to run, come up with this message at startup
File "./drpython.pyw", line 35, in ?
File "/home/rcb/drPython_stuff/drpython-3.6.0/drpython.py", line 45, in ?
import wx, wx.stc
File "/usr/local/lib/python2.3/site-packages/wx/stc.py", line 10, in ?
ImportError: No module named _stc
I have scintilla installed from source and SciTE runs.
python is version 2.3.4
wxPython is version 22.214.171.124
Anyone ever see this? suggestions? another version of wxPython required?
Wow. This is a new one.
Allright. What flavor of unix/linux are you using?
How did you install wxPython? From source, or binary?
I believe scintilla itself is not distributed in python (as far as I know, the only way to get a new version of stc is to upgrade wxPython).
This baffles me quite frankly. The wx modules are clearly there, and yet stc is not loading properly.
Do you see _stc.pyd? _stc.*?
I am using fedora 2
I compiled/installed wxPython from source - however - on rechecking things I see that wxPython would not compile with BUILD_STC turned on.
So I guess this is a wxPython issue.
I have trying to find some info on wxPython and stc but so far nothing that sheds any light. So I don't think this is a drPython problem per se. Sorry.....
No worries. You might want to try the mailing list,
or in the meantime, try the binary build.
Hi, I'm completely new to Python and DrPython, so excuse me if I'm doing something stupid, but I'm getting a similar error when I run drpython.pyw or drpython.lin from the command line:
Pharos:~ bierer$ /Applications/drpython-3.6.6/drpython.pyw
Traceback (most recent call last):
File "/Applications/drpython-3.6.6/drpython.pyw", line 35, in ?
File "/Applications/drpython-3.6.6/drpython.py", line 45, in ?
import wx, wx.stc
ImportError: No module named wx
I'm running Mac OS X 10.3.5 with version 2.3.3 of Python, and I've downloaded and installed the binary version of wxPython for Panther v.126.96.36.199. The sample apps that come with wxPython seem to run just fine.
Any help would be greatly appreciated.
This is very curious.
How did you launch the demo? Where is the demo located on your machine?
python is having trouble finding the wx module...
Well, either you have more than one version of python on your machine, and wxPython is only installed on one of them, or something is very very screwy with the installation itself.
My first suggestion is quick:
locate the wxPython libs on your machine (pathtopython/site-packages/wx)
make sure you run THAT python executable with drpython.
If this does not work (or is too confusing), try the wxpython documentation (on the binary page, there are some notes about mac install), or the email list.
Try downloading another app that uses wxpython, and see if that works.