Attempting to run runsnake gives
ImportError: No module named wx
Opening an ipython or python session seems to work fine:
>>> import wx
>>> import sys
>>> print [p for p in sys.path if 'wx' in p]
['/usr/local/lib/wxPython-2.9.4.0/lib/python2.7/site-packages', '/usr/local/lib/wxPython-2.9.4.0/lib/python2.7/site-packages/wx-2.9.4-osx_cocoa', '/usr/local/lib/wxPython-2.9.4.0/lib/python2.7/site-packages/wx-2.9.1-osx_cocoa/tools']
as does putting that code in a script and calling python script.py
. But putting that code at the beginning of runsnake.py
prints an empty list (printing the whole sys.path
prints a path quite different from my $PYTHONPATH).
Why would it be different, and how to I get it to recognize wxPython?
Edit: pip freeze
output contains
SquareMap==1.0.1
RunSnakeRun==2.0.2b1
wxPython==2.9.4.0
wxPython-common==2.9.4.0
pip install RunSnakeRun
– Bird Jaguar IV Oct 21 '12 at 16:59pip freeze
shows bothRunSnakeRun
andwxPython==2.9.4.0
andwxPython-common==2.9.4.0
? – dnozay Oct 21 '12 at 17:03sys.path.extend(['wx directories...'])
. That got rid of theimport wx
problem, now I have what looks like an unrelated error along the lines of "Please run with a Framework build of python...". – Bird Jaguar IV Oct 21 '12 at 17:04