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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:29:17+00:00 2026-05-31T18:29:17+00:00

I built/installed MySQL-python successfully; set DYLD_LIBRARY_PATH=/usr/local/mysql/lib:$DYLD_LIBRARY_PATH in .bash_profile (OS X Lion). When I execute

  • 0

I built/installed MySQL-python successfully; set DYLD_LIBRARY_PATH="/usr/local/mysql/lib:$DYLD_LIBRARY_PATH" in .bash_profile (OS X Lion). When I execute python from the command line and import MySQLdb, everything is fine.

But when I try to import MySQLdb in IDLE, I get the following:

ImportError:
dlopen(/Users/mstath/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.6-intel.egg-tmp/_mysql.so,
2): Library not loaded: libmysqlclient.18.dylib Referenced from:
/Users/mstath/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.6-intel.egg-tmp/_mysql.so
Reason: image not found

I would like to know if there is something I could configure for IDLE to be able to look in /usr/local/mysql/lib/ to find libmysqlclient.

Installed Python/IDLE through python.org installer; no package managers.

  • 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-31T18:29:18+00:00Added an answer on May 31, 2026 at 6:29 pm

    You are likely launching IDLE via the IDLE.app application bundle, for example, by double-clicking on the IDLE icon. On OS X, GUI apps launched this way do not use a shell, like bash, and thus .bash_profile is not executed for them. While there are other ways to work around this, the simplest way in this case is to launch IDLE from a shell command line in a terminal window rather than from IDLE.app. Something like this should work if you used the default install options:

    $ /usr/local/bin/idle3   # for idle3.x
    

    or

    $ /usr/local/bin/idle    # for idle2.x
    

    You can also use a specific version number if you have multiple Python versions installed locally:

    $ /usr/local/bin/idle3.2
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am running Mac OS X 10.5.8. I have installed Python 2.6 from the
I need to query a Mysql database with Python. I have virtual env installed
I installed wxWidgets 2.8.9 on a Windows XP SP2 box and built the library
I have installed the new asp:chart control on my machine and have built an
We recently built a new dev server for flex builder and installed coldfusion 8.
My Leopard system has dtrace built in. I also have Java 6 installed, using
I installed ActiveReports from their site. The version was labeled as .NET 2.0 build
I want to build an executable to distribute to people without python installed on
I want to get MySQL working with the system Python 2.7 in Mac OS
I need to install MySQLdb. I write: $ tar xfz MySQL-python-1.2.1.tar.gz $ cd MySQL-python-1.2.1

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.