How can I make PyCharm launch a 32-bit Python in OS X?

I have a Python project that uses pyglet. Pyglet doesn't work in 64-bit Python (because it uses 32-bit QuickTime). Is it possible to have PyCharm start a 32-bit version of Python?

On the command-line, I'm using

  export VERSIONER_PYTHON_PREFER_32_BIT=yes

or

  defaults write com.apple.versioner.python Prefer-32-Bit -bool yes

(to make the setting "stick")

I tried adding the VERSIONER_PYTHON_PREFER_32_BIT to the Environment Variables, but this doesn't work.

I'm using Pycharm (2.0 Beta) PY-110.451 on OS X 10.7.2.

0
1 comment

I'm also having this problem. I don't see a good way to solve this without having to use lipo to suction out the 64-bit'ness of my python executable. The trouble is that I can make this work correctly from the command line without any trouble. Also, dragging my python script on top of Python Launcher also does the right thing. It's simply poor UI design on PyCharm's side that they failed to add a run in 64-bit vs run in 32-bit mode. I'm going to file a bug if one isn't already filed.

0

Please sign in to leave a comment.