Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 709701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:31:56+00:00 2026-05-14T04:31:56+00:00

Recently I upgraded to Snow Leopard, and now I can’t run programs built with

  • 0

Recently I upgraded to Snow Leopard, and now I can’t run programs built with wxPython. The errors I get are (from Eclipse + PyDev):

  import wx 
  File "/var/tmp/wxWidgets/wxWidgets-13~231/2.6/DSTROOT/System/Library/Frameworks
  /Python.framework/Versions/2.6/Extras/lib/
  python/wx-2.8-mac-unicode/wx/__init__.py", line 45, in <module>

  File "/var/tmp/wxWidgets/wxWidgets-13~231/2.6/DSTROOT
  /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib
  /python/wx-2.8-mac-unicode/wx/_core.py", line 4, in <module>
  ImportError:/System/Library/Frameworks
  /Python.framework/Versions/2.6/Extras/lib/python
  /wx-2.8-mac-unicode/wx/_core_.so: no appropriate 64-bit architecture 
  (see "man python" for running in 32-bit mode)

I don’t really understand them and would appreciate if you could help me to do so, also, if you do know what’s going on, how can I go about fixing them? Maybe this has something to do with the fact that Snow Leopard is 64-bit?

Thanks!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T04:31:57+00:00Added an answer on May 14, 2026 at 4:31 am

    The problem is that WxPython is only available on the Mac in 32-bit mode; however, by default, Python will start up in 64-bit mode. To fix this problem, create the following shell script named python_32:

    #! /bin/bash
    export VERSIONER_PYTHON_PREFER_32_BIT=yes
    /usr/bin/python "$@"
    

    Make the script executable (chmod a+x python_32) and place the script in your path. Now, simply invoke python_32 to get an interactive Python console in which you can use WxPython. If you want to write a Python script that uses this, you can use the shebang: #! /usr/bin/env python_32.

    Now to explain… the basic problem is that 32-bit and 64-bit code uses a different application binary interface (ABI), and so 32-bit code and 64-bit code cannot coexist in the same library/executable/process. In order to support 64-bit mode, it needs to have been compiled in 64-bit mode; likewise, to support 32-bit mode, it needs to have been compiled in 32-bit mode. Under OS X, it is possible, using universal binaries to support both… however, it needs to be compiled in both modes (and then merged). WxWidgets probably uses Carbon, which is only available in 32-bit mode (Cocoa is available in both 32-bit and 64-bit mode… Apple didn’t bother making Carbon available in both modes, since it is being deprecated), which would explain why WxPython, in turn, could only be provided in 32-bit mode. This, in turn, means that using it in Python requires you to launch Python in 32-bit mode (Python is a universal binary with both 32-bit and 64-bit versions of itself available in the same binary file, so it can be launched in either mode).

    Alternative Option
    I don’t recommend doing this, because I think you should leave the defaults as they are, but since you might not have enough shell scripting knowledge (you need to use “./python_32” or place it in a folder that is listed in your “$PATH” environment variable and invoke it as “python_32”) to follow the former option, you might want to simply execute the following command which will make 32-bit mode the default:

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

    If you decide you want to switch back into 64-bit mode, you can then use the following command:

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

    Note that both commands are to be executed on the Terminal (not within Python).

    Source
    I should point out that both recomendations are based on man python on Mac OS X. So, if you have any other questions, you should definitely read the man page as the error message has urged you to do.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently upgraded to Eclipse Ganymede from Europa and now I'm finding that when
I recently upgraded a VS2005 web deployment project to VS2008 - and now I
I recently upgraded to Subversion 1.5, and now I cannot commit my code to
I recently upgraded my oracle client to 10g (10.2.0.1.0). Now when I try to
I recently upgraded a c# windows service to run as a 64 bit .net
I recently upgraded from Delphi 4 to Delphi 2009. With Delphi 4 I had
I recently upgraded a Web Application Project (as well as some dependent projects) from
I recently upgraded VS 2005 to VS 2008. Unfortunately I have a very basic
I recently upgraded a 1.1 web project to a 2.0 web application. After going
I recently upgraded one of my applications to Rails 2.2.2. Having done that, I've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.