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

  • SEARCH
  • Home
  • 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 9186357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:30:25+00:00 2026-06-17T19:30:25+00:00

My question is similar to Installing Pygame for Mac OS X 10.6.8 , unable

  • 0

My question is similar to

Installing Pygame for Mac OS X 10.6.8,

unable to import pygame, and

Pygame for Python 3.2 on mac – import error.

When I try to import pygame *, I get ImportError: dlopen(/Library/Python/2.7/site-packages/pygame/base.so, 2): Library not loaded: @executable_path/../Frameworks/SDL.framework/Versions/A/SDL
Referenced from: /Library/Python/2.7/site-packages/pygame/base.so

I’m trying to figure out whether or not it applies to my system. I don’t remember how I installed pygame, but if I do port search pygame, I get

py-game @1.9.1 (python, devel, multimedia, graphics)
py24-game @1.9.1 (python, devel, multimedia, graphics)
py25-game @1.9.1 (python, devel, multimedia, graphics)
py26-game @1.9.1 (python, devel, multimedia, graphics)
py27-game @1.9.1 (python, devel, multimedia, graphics)
py31-game @1.9.1 (python, devel, multimedia, graphics)
py32-game @1.9.1 (python, devel, multimedia, graphics)

My hunch was that
port install py32-game would fix the issue, but It doesn’t change anything (maybe python needs to somehow point to a different version of pygame?). Does anyone have experience with my particular config? It’s unclear to me how to ascertain which version of pygame I need to be running.

OSX 10.7.5
Python 2.7.3

  • 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-06-17T19:30:27+00:00Added an answer on June 17, 2026 at 7:30 pm

    AFAICT, It turned out to be two issues:

    1. pygame needed to be installed again after I switched python versions from the OSX native version to the ports version of 2.7 (I uninstalled the macports version)

    2. my .bash_profile path was messed up and I needed to export the correct locations to the newly installed version so that python could find what it needed

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

Sidebar

Related Questions

I get this error after installing a web site on a test server using
Note: There is a similar question called 'installing nodejs on windows machine'. And various
I see a similar question here . However, that is related to installing on
I'm asking a question similar to this, but with python 2.7 instead. I know
Question similar to this: select from two tables where linked column can be null
I have a question similar to this: how to manually assign imagefield in Django
This is a question similar to a question here . I wonder is there
I have asked a question similar to this in the past but this is
I have been searching in stackoverflow for a question similar to mine because it
I'm looking for an answer to a question similar to this one: protect users'

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.