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 920409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:42:30+00:00 2026-05-15T18:42:30+00:00

I got the following error when compiling sip with –arch x86_64 option. prosseek:siplib smcho$

  • 0

I got the following error when compiling sip with –arch x86_64 option.

prosseek:siplib smcho$ python -c 'import sip; print sip'
Traceback (most recent call last):
  File "", line 1, in 
ImportError: dlopen(./sip.so, 2): no suitable image found.  Did find:
        ./sip.so: mach-o, but wrong architecture

I found that the prebuilt Mac OS X python (snow leopard) is universal, and it doesn’t get the 64 bit library. I guess it’s running on 32bit mode.

file /usr/bin/python 
/usr/bin/python: Mach-O universal binary with 3 architectures
/usr/bin/python (for architecture x86_64):      Mach-O 64-bit executable x86_64
/usr/bin/python (for architecture i386):        Mach-O executable i386
/usr/bin/python (for architecture ppc7400):     Mach-O executable ppc
prosseek:siplib smcho$ file sip.so
sip.so: Mach-O 64-bit bundle x86_64

How can I force python to run on 64bit mode? When I run the same code on Textmate, there’s no problem. So, I think Textmate should run on 64 bit mode anyway.

Added

  • This link shows how to identify if a python that I’m running is 32bit or 64bit. And I checked my python is 32 bit.
  • This link shows how to make 32/64bit python. But it doesn’t work for me.
  • 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-15T18:42:30+00:00Added an answer on May 15, 2026 at 6:42 pm

    Try using arch(1), and supply the specific version of Python:

    arch -x86_64 /usr/bin/python2.6
    

    Actually the system should choose the first suitable architecture for you. As

    $ file /usr/bin/python2.5
    /usr/bin/python2.5: Mach-O universal binary with 2 architectures
    /usr/bin/python2.5 (for architecture i386): Mach-O executable i386
    /usr/bin/python2.5 (for architecture ppc7400):  Mach-O executable ppc
    
    $ file /usr/bin/python2.6
    /usr/bin/python2.6: Mach-O universal binary with 3 architectures
    /usr/bin/python2.6 (for architecture x86_64):   Mach-O 64-bit executable x86_64
    /usr/bin/python2.6 (for architecture i386): Mach-O executable i386
    /usr/bin/python2.6 (for architecture ppc7400):  Mach-O executable ppc
    

    If that python somehow chooses 2.5, then you can’t use 64-bit, but if it chooses 2.6 then the x86_64 variant should be automatically selected, as commented below. If it’s the former, try to get python_select and change the version to 2.6.

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

Sidebar

Related Questions

I've got the following java code, which is giving the error below: import java.io.File;
After changing my logo, i got the following error: Error compiling asset header_logo_v2.png: Errno::EACCES:
I got the following error wwhile compiling this c++ code . What can be
I got the following error message while compiling, but I'm sure I have the
After compiling my java code under Eclipse, I got the following error messages: SLF4J:
Oh man, I've got yet another error while compiling the following inline assembly code
while compiling the following code i have got error @Override public void routeCustomerRequest (int
I got following error... System.NullReferenceException: Object reference not set to an instance of an
I tried installing TurboGears 1.0 on Windows 7 using tgsetup.py. and got following error
I got the following error of Oracle, ORA-25226: dequeue failed, queue string.string is not

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.