如何使用MacPorts在OS X上安装RunSnakeRun?

时间:2014-04-07 18:53:26

标签: python macos wxpython macports

我已经安装了wxWidgets-3.0 py27-wxpython-3.0个MacPorts套餐。在一个干净的virtualenv中,我安装了wxSquareMapRunSnakeRun pip包。尝试运行runsnake失败如下:

Traceback (most recent call last):
  File "/Users/lhn/.virtualenvs/snake/bin/runsnake32", line 9, in <module>
    load_entry_point('RunSnakeRun==2.0.4', 'gui_scripts', 'runsnake32')()
  File "/Users/lhn/.virtualenvs/snake/lib/python2.7/site-packages/pkg_resources.py", line 353, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/Users/lhn/.virtualenvs/snake/lib/python2.7/site-packages/pkg_resources.py", line 2321, in load_entry_point
    return ep.load()
  File "/Users/lhn/.virtualenvs/snake/lib/python2.7/site-packages/pkg_resources.py", line 2048, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/Users/lhn/.virtualenvs/snake/lib/python2.7/site-packages/runsnakerun/runsnake.py", line 14, in <module>
    from squaremap import squaremap
  File "/Users/lhn/.virtualenvs/snake/lib/python2.7/site-packages/squaremap/squaremap.py", line 3, in <module>
    import wx.lib.newevent
ImportError: No module named lib.newevent

在IDLE中,我看到同样的导入错误:

Python 2.7.6 (default, Nov 18 2013, 15:12:51)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> import wx.lib.newevent
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named lib.newevent

0 个答案:

没有答案