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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:39:30+00:00 2026-06-13T21:39:30+00:00

I installed the mysqldb for python on mac os x, but it gives me

  • 0

I installed the mysqldb for python on mac os x, but it gives me the following error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "build/bdist.macosx-10.6-intel/egg/MySQLdb/__init__.py", line 19, in <module>
  File "build/bdist.macosx-10.6-intel/egg/_mysql.py", line 7, in <module>
  File "build/bdist.macosx-10.6-intel/egg/_mysql.py", line 6, in __bootstrap__
ImportError: dynamic module does not define init function (init_mysql)

How can I solve this issue?

  • 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-13T21:39:32+00:00Added an answer on June 13, 2026 at 9:39 pm

    This is most likely due to a mismatch in architectures between the Python you are using, the MySQLdb adapter you installed, and the MySQL client libraries you have installed. They all need to have at least one common architecture and execute in that architecture. You may have a 32-bit-only Python and a 64-bit-only MySQL client library or vice versa. Make sure they match.

    Unless you need the Python you are using, I strongly suggest installing a complete solution from a third-party package manager. For example, if you install the MacPorts base, you can then install everything you need (Python 2.7, MySQLdb, MySQL client library, and all dependencies) with one command:

    sudo port install py27-mysql
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Python import MySQLdb error - Mac 10.6 I've tried everything I can
I just compiled and installed mysqldb for python 2.7 on my mac os 10.6.
I'm using the most recent versions of all software (Django, Python, virtualenv, MySQLdb) and
After I installed MySQLdb by sudo apt-get install python-mysqldb I can import and use
I'm new to python and django but wanted to start following some tutorials. I
i recently switched to mac. first and foremost i installed xampp. then for django-python-mysql
I have MYSQL & MYSQLdb installed with Python 2.6 & Django 1.2.3. I can
I have installed MySqldb through .exe(precompiled). Its is stored in site-packages. But now i
I installed django using following commands cd Django-1.4.1 sudo python setup.py install cd mkdir
I'd like to query a MySQL database using Python, but evidently the MySQLdb package

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.