I've created a conda environment so I can use runsnakerun on my Mac as follows:
我创建了一个conda环境,因此我可以在我的Mac上使用runsnakerun如下:
conda create -n runsnake wxPython
source activate runsnake
pip install runsnakerun
However, when I now attempt to use runsnake I get:
然而,当我现在尝试使用runsnake时,我得到:
$ runsnake
This program needs access to the screen.
Please run with a Framework build of python, and only when you are
logged in on the main display of your Mac.
How can I get runsnake to work?
我怎么才能让朗斯内克去上班?
1 个解决方案
#1
4
The problem is that conda's python
is not a "framework python" on Mac, their decision is that you have to use pythonw
instead. Unfortunately, pip
builds entry point scripts using python
not pythonw
and, to make matters worse, RunSnakeRun does a horrible subprocess dance to launch itself in 32-bit mode on 64-bit macs.
问题是,conda的python并不是Mac上的“框架python”,他们的决定是您必须使用pythonw。不幸的是,pip使用python而不是pythonw构建入口点脚本,更糟糕的是,RunSnakeRun做了一个可怕的子进程舞蹈,在64位mac上以32位模式启动自己。
The upshot is that the only hacky workaround I can think of to launch runsnake
is as follows:
最后的结果是,我能想到的让runsnake上市的唯一简单的办法是:
VERSIONER_PYTHON_PREFER_32_BIT=yes pythonw `which runsnake32`
I'm not actually sure that environment variable is even needed anymore, but the above does what the entry point appears to be trying to do and does at least start the RunSnakeRun gui.
实际上,我不确定是否还需要环境变量,但是上面的操作完成了入口点看起来要做的事情,并且至少启动了RunSnakeRun gui。
#1
4
The problem is that conda's python
is not a "framework python" on Mac, their decision is that you have to use pythonw
instead. Unfortunately, pip
builds entry point scripts using python
not pythonw
and, to make matters worse, RunSnakeRun does a horrible subprocess dance to launch itself in 32-bit mode on 64-bit macs.
问题是,conda的python并不是Mac上的“框架python”,他们的决定是您必须使用pythonw。不幸的是,pip使用python而不是pythonw构建入口点脚本,更糟糕的是,RunSnakeRun做了一个可怕的子进程舞蹈,在64位mac上以32位模式启动自己。
The upshot is that the only hacky workaround I can think of to launch runsnake
is as follows:
最后的结果是,我能想到的让runsnake上市的唯一简单的办法是:
VERSIONER_PYTHON_PREFER_32_BIT=yes pythonw `which runsnake32`
I'm not actually sure that environment variable is even needed anymore, but the above does what the entry point appears to be trying to do and does at least start the RunSnakeRun gui.
实际上,我不确定是否还需要环境变量,但是上面的操作完成了入口点看起来要做的事情,并且至少启动了RunSnakeRun gui。