How to run runnakerun on mac os x inside a conda environment?

I created a conda environment, so I can use runnakerun on my Mac as follows:

conda create -n runsnake wxPython source activate runsnake pip install runsnakerun 

However, when I try to use runnake, I get:

 $ 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 run runnake?

+6
source share
1 answer

The problem is that conda python not a "python framework" on Mac, their solution is that you should use pythonw . Unfortunately, pip creates entry-point scripts using python not pythonw , and, even worse, RunSnakeRun does a terrible subprocess dance to start itself in 32-bit mode on 64-bit poppies.

The result is that the only hacky workaround I can come up with for running runsnake is as follows:

 VERSIONER_PYTHON_PREFER_32_BIT=yes pythonw `which runsnake32` 

Actually, I'm not sure if the environment variable is needed even more, but the above does what it tries to create an entry point, and at least runs the RunSnakeRun GUI.

+4
source

Source: https://habr.com/ru/post/988910/


All Articles