bhanu1225 0 Junior Poster in Training

Hello All.

I am working on Mac OS X.
I installed Python 2.5.4 and Mysql 5.1.31.
For the interface, i installed Mysql-Python 1.2.2.
I did the right steps for the installation.
But , getting some warnings.

So, i checked in Python shell for the modules.

Python 2.5.4 (r254:67917, Dec 23 2008, 14:57:27)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
Type "copyright", "credits" or "license()" for more information.

****************************************************************
Personal firewall software may warn about the connection IDLE
makes to its subprocess using this computer's internal loopback
interface. This connection is not visible on any external
interface and no data is sent to or received from the Internet.
****************************************************************

IDLE 1.2.4
>>> help()

Welcome to Python 2.5! This is the online help utility.

If this is your first time using Python, you should definitely check out
the tutorial on the Internet at http://www.python.org/doc/tut/.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules. To quit this help utility and
return to the interpreter, just type "quit".

To get a list of available modules, keywords, or topics, type "modules",
"keywords", or "topics". Each module also comes with a one-line summary
of what it does; to list the modules whose summaries contain a given word
such as "spam", type "modules spam".

help> modules

Please wait a moment while I gather a list of all available modules...


Warning (from warnings module):
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/pkgutil.py", line 110
__import__(name)
DeprecationWarning: The wxPython compatibility package is no longer automatically generated or actively maintained. Please switch to the wx package as soon as possible.
1 _heapq fpformat resource
Audio_mac _hotshot ftplib rexec
BaseHTTPServer _locale functools rfc822
Bastion _lsprof gc rgbimg
CGIHTTPServer _multibytecodec gensuitemodule rlcompleter
Canvas _mysql gestalt robotparser
Carbon _mysql_exceptions getopt runpy
CodeWarrior _random getpass sched
ColorPicker _sha256 gettext select
ConfigParser _sha512 glob sets
Cookie _socket gopherlib setuptools
Dialog _sqlite3 grp sgmllib
DocXMLRPCServer _sre gzip sha
EasyDialogs _ssl hashlib shelve
Explorer _strptime heapq shlex
FileDialog _struct hmac shutil
Finder _symtable hotshot signal
FixTk _testcapi htmlentitydefs site
FrameWork _threading_local htmllib smtpd
HTMLParser _tkinter httplib smtplib
IN _types ic sndhdr
MacOS _weakref icglue socket
MimeWriter aepack icopen sort
MiniAEFrame aetools idlelib sqlite3
MySQLdb aetypes idlemain sre
Nav aifc ihooks sre_compile
Netscape anydbm imageop sre_constants
OSATerminology applesingle imaplib sre_parse
PixMapWrapper appletrawmain imghdr stat
Queue appletrunner imp statvfs
ScrolledText argvemulator imputil string
SimpleDialog array inspect stringold
SimpleHTTPServer asynchat itertools stringprep
SimpleXMLRPCServer asyncore keyword strop
SocketServer atexit linecache struct
StdSuites audiodev locale subprocess
StringIO audioop logging sunau
SystemEvents autoGIL logmod sunaudio
Terminal base64 macerrors symbol
Tix bdb macfs symtable
Tkconstants bgenlocations macostools sys
Tkdnd binascii macpath syslog
Tkinter binhex macresource tabnanny
UserDict bisect macurl2path tarfile
UserList bsddb mailbox telnetlib
UserString buildtools mailcap tempfile
_AE bundlebuilder makemenu terminalcommand
_AH bz2 markupbase termios
_App cPickle marshal test
_CF cProfile math tests
_CG cStringIO md5 textwrap
_CarbonEvt calendar mhlib this
_Cm cfmfile mimetools thread
_Ctl cgi mimetypes threading
_Dlg cgitb mimify time
_Drag chunk mmap timeit
_Evt cmath modulefinder tkColorChooser
_File cmd multifile tkCommonDialog
_Fm code mutex tkFileDialog
_Folder codecs netrc tkFont
_Help codeop new tkMessageBox
_IBCarbon collections nis tkSimpleDialog
_Icn colorsys nntplib toaiff
_LWPCookieJar command ntpath token
_Launch commands nturl2path tokenize
_List compileall opcode trace
_Menu compiler operator traceback
_Mlte contextlib optparse tty
_MozillaCookieJar cookielib os turtle
_OSA copy os2emxpath types
_Qd copy_reg parser unicodedata
_Qdoffs crypt pdb unittest
_Qt csv pickle urllib
_Res ctypes pickletools urllib2
_Scrap curses pimp urlparse
_Snd datetime pipes user
_TE dbhash pkg_resources uu
_Win dbm pkgutil uuid
__builtin__ decimal platform videoreader
__future__ difflib plistlib warnings
_ast dircache popen2 wave
_bisect dis poplib weakref
_bsddb distutils posix webbrowser
_builtinSuites dl posixfile whichdb
_codecs doctest posixpath wsgiref
_codecs_cn dumbdbm pprint wx
_codecs_hk dummy_thread profile wx1
_codecs_iso2022 dummy_threading pstats wx2
_codecs_jp easy_install pty wxPython
_codecs_kr email pwd wxhack
_codecs_tw encodings py_compile wxversion
_csv errno pyclbr xdrlib
_ctypes exceptions pydoc xml
_ctypes_test fcntl pyexpat xmllib
_curses filecmp quopri xmlrpclib
_curses_panel fileinput random xxsubtype
_elementtree findertools re zipfile
_functools fnmatch readline zipimport
_hashlib formatter repr zlib

Enter any module name to get more help. Or, type "modules spam" to search
for modules whose descriptions contain the word "spam".

help> MySQLdb
problem in MySQLdb - <type 'exceptions.ImportError'>: dynamic module does not define init function (init_mysql)

help>

So, please anyone can help me out of this problem...

Regards
Bhanu

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.