How can I run runsnakerun on Mac OS X inside a conda environment?

Chris Withers

I've created a conda environment so I can use runsnakerun on my Mac as follows:

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

However, when I now attempt to use runsnake 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 get runsnake to work?

Chris Withers

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.

The upshot is that the only hacky workaround I can think of to launch runsnake is as follows:

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.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I define an environment variable in Mac OS X 10.9?

From Dev

How can I run two copies of PostgreSQL on Mac OS X?

From Dev

How can I run two copies of PostgreSQL on Mac OS X?

From Dev

How to detect if Mac OS X is being run inside a Virtual Machine

From Dev

How can I get DNS resolution to work inside a Mac OS X `chroot` on El Capitan?

From Dev

How can I get a script to run every day on Mac OS X?

From Dev

How do I install htop inside mac os x?

From Dev

How do I get lua to run on a mac OS X 10.11.6

From Java

How can I rename a conda environment?

From Dev

How can I rename a conda environment?

From Java

How can I install pandas 1.1.0 on Mac under anaconda and get past conda hanging on "Solving environment"

From Dev

How can I run simple f# program on Mac OS

From Dev

How can I run an application with command line arguments in Mac OS

From Java

How can I start PostgreSQL server on Mac OS X?

From Java

How can I clear previous output in Terminal in Mac OS X?

From Java

How can I install zlib on Mac OS X Mojave (10.14)?

From Dev

How can I change an application icon in Mac OS X?

From Dev

How can I invert colors on ONE screen in Mac OS X?

From Dev

How can I grep with color in Mac OS X's terminal?

From Dev

How can I type text from a file on Mac OS X?

From Dev

How can I find a path to a running application on Mac OS X

From Dev

How can I change the defaults for new accounts in Mac OS X?

From Dev

How can I view .swf files within Mac OS X?

From Dev

How can you run QtConsole in a specific Conda environment?

From Dev

How can you run QtConsole in a specific Conda environment?

From Dev

How can I run a process with a hard memory limit on OS X?

From Dev

Using systemd to run airflow inside conda environment

From Dev

Can I run Mac OS X as a Hyper-V Virtual Machine?

From Dev

How can I make an executable python script run inside the current virtual environment?

Related Related

  1. 1

    How can I define an environment variable in Mac OS X 10.9?

  2. 2

    How can I run two copies of PostgreSQL on Mac OS X?

  3. 3

    How can I run two copies of PostgreSQL on Mac OS X?

  4. 4

    How to detect if Mac OS X is being run inside a Virtual Machine

  5. 5

    How can I get DNS resolution to work inside a Mac OS X `chroot` on El Capitan?

  6. 6

    How can I get a script to run every day on Mac OS X?

  7. 7

    How do I install htop inside mac os x?

  8. 8

    How do I get lua to run on a mac OS X 10.11.6

  9. 9

    How can I rename a conda environment?

  10. 10

    How can I rename a conda environment?

  11. 11

    How can I install pandas 1.1.0 on Mac under anaconda and get past conda hanging on "Solving environment"

  12. 12

    How can I run simple f# program on Mac OS

  13. 13

    How can I run an application with command line arguments in Mac OS

  14. 14

    How can I start PostgreSQL server on Mac OS X?

  15. 15

    How can I clear previous output in Terminal in Mac OS X?

  16. 16

    How can I install zlib on Mac OS X Mojave (10.14)?

  17. 17

    How can I change an application icon in Mac OS X?

  18. 18

    How can I invert colors on ONE screen in Mac OS X?

  19. 19

    How can I grep with color in Mac OS X's terminal?

  20. 20

    How can I type text from a file on Mac OS X?

  21. 21

    How can I find a path to a running application on Mac OS X

  22. 22

    How can I change the defaults for new accounts in Mac OS X?

  23. 23

    How can I view .swf files within Mac OS X?

  24. 24

    How can you run QtConsole in a specific Conda environment?

  25. 25

    How can you run QtConsole in a specific Conda environment?

  26. 26

    How can I run a process with a hard memory limit on OS X?

  27. 27

    Using systemd to run airflow inside conda environment

  28. 28

    Can I run Mac OS X as a Hyper-V Virtual Machine?

  29. 29

    How can I make an executable python script run inside the current virtual environment?

HotTag

Archive