Thanks Joe, I recompiled the python with zlib support and tried to install mysqldb, now I am not getting the error of zlib anymore. But got error with gcc compiler. Part of the error is something like,-
---------------------------------------------------------------------------------------------------------------------------------------------------------------- _mysql.c:2475: warning: passing argument 1 of âstrlenâ from incompatible pointer type _mysql.c:2475: error: invalid operands to binary - _mysql.c:2475: warning: comparison between pointer and integer _mysql.c:2475: warning: passing argument 2 of â__builtin_strcmpâ from incompatible pointer type _mysql.c:2475: error: invalid operands to binary - _mysql.c:2475: warning: comparison between pointer and integer _mysql.c:2475: warning: passing argument 2 of â__builtin_strcmpâ from incompatible pointer type _mysql.c:2475: error: invalid operands to binary - _mysql.c:2475: warning: comparison between pointer and integer _mysql.c:2475: warning: passing argument 1 of âstrlenâ from incompatible pointer type _mysql.c:2475: warning: passing argument 2 of â__builtin_strcmpâ from incompatible pointer type _mysql.c:2475: error: invalid operands to binary - _mysql.c:2475: error: invalid operands to binary - _mysql.c:2475: warning: statement with no effect _mysql.c:2475: error: invalid operands to binary - _mysql.c:2475: warning: statement with no effect _mysql.c:2475: error: invalid operands to binary - _mysql.c:2475: warning: statement with no effect _mysql.c:2475: warning: passing argument 2 of â__builtin_strcmpâ from incompatible pointer type _mysql.c:2476: warning: passing argument 1 of âPyMember_GetOneâ from incompatible pointer type _mysql.c:2478: warning: passing argument 2 of âPyErr_SetStringâ from incompatible pointer type _mysql.c: At top level: _mysql.c:2486: error: syntax error before â*â token _mysql.c:2489: warning: function declaration isnât a prototype _mysql.c: In function â_mysql_ConnectionObject_setattrâ: _mysql.c:2490: error: âvâ undeclared (first use in this function) _mysql.c:2501: error: ânameâ undeclared (first use in this function) _mysql.c:2501: warning: passing argument 1 of âstrlenâ from incompatible pointer type _mysql.c:2501: error: invalid operands to binary - _mysql.c:2501: warning: comparison between pointer and integer _mysql.c:2501: warning: passing argument 2 of â__builtin_strcmpâ from incompatible pointer type _mysql.c:2501: error: invalid operands to binary - _mysql.c:2501: warning: comparison between pointer and integer _mysql.c:2501: warning: passing argument 2 of â__builtin_strcmpâ from incompatible pointer type _mysql.c:2501: error: invalid operands to binary - _mysql.c:2501: warning: comparison between pointer and integer _mysql.c:2501: warning: passing argument 1 of âstrlenâ from incompatible pointer type _mysql.c:2501: warning: passing argument 2 of â__builtin_strcmpâ from incompatible pointer type _mysql.c:2501: error: invalid operands to binary - _mysql.c:2501: error: invalid operands to binary - _mysql.c:2501: warning: statement with no effect _mysql.c:2501: error: invalid operands to binary - _mysql.c:2501: warning: statement with no effect _mysql.c:2501: error: invalid operands to binary - _mysql.c:2501: warning: statement with no effect _mysql.c:2501: warning: passing argument 2 of â__builtin_strcmpâ from incompatible pointer type _mysql.c:2502: error: âselfâ undeclared (first use in this function) _mysql.c:2502: warning: passing argument 1 of âPyMember_SetOneâ from incompatible pointer type _mysql.c:2502: warning: passing argument 3 of âPyMember_SetOneâ from incompatible pointer type _mysql.c:2504: warning: passing argument 2 of âPyErr_SetStringâ from incompatible pointer type _mysql.c: At top level: _mysql.c:2511: error: syntax error before â*â token _mysql.c:2514: warning: function declaration isnât a prototype _mysql.c: In function â_mysql_ResultObject_setattrâ: _mysql.c:2515: error: âvâ undeclared (first use in this function) _mysql.c:2526: error: ânameâ undeclared (first use in this function) _mysql.c:2526: warning: passing argument 1 of âstrlenâ from incompatible pointer type _mysql.c:2526: error: invalid operands to binary - _mysql.c:2526: warning: comparison between pointer and integer _mysql.c:2526: warning: passing argument 2 of â__builtin_strcmpâ from incompatible pointer type _mysql.c:2526: error: invalid operands to binary - _mysql.c:2526: warning: comparison between pointer and integer _mysql.c:2526: warning: passing argument 2 of â__builtin_strcmpâ from incompatible pointer type _mysql.c:2526: error: invalid operands to binary - _mysql.c:2526: warning: comparison between pointer and integer _mysql.c:2526: warning: passing argument 1 of âstrlenâ from incompatible pointer type _mysql.c:2526: warning: passing argument 2 of â__builtin_strcmpâ from incompatible pointer type _mysql.c:2526: error: invalid operands to binary - _mysql.c:2526: error: invalid operands to binary - _mysql.c:2526: warning: statement with no effect _mysql.c:2526: error: invalid operands to binary - _mysql.c:2526: warning: statement with no effect _mysql.c:2526: error: invalid operands to binary - _mysql.c:2526: warning: statement with no effect _mysql.c:2526: warning: passing argument 2 of â__builtin_strcmpâ from incompatible pointer type _mysql.c:2527: error: âselfâ undeclared (first use in this function) _mysql.c:2527: warning: passing argument 1 of âPyMember_SetOneâ from incompatible pointer type _mysql.c:2527: warning: passing argument 3 of âPyMember_SetOneâ from incompatible pointer type _mysql.c:2529: warning: passing argument 2 of âPyErr_SetStringâ from incompatible pointer type error: command 'gcc' failed with exit status 1 ---------------------------------------------------------------------------------------------------------------------------------------------------------------- I searched the intrenet for solutions and some people suggested to install mysql-devel package. I tried to install mysql-devel package, but getting lots of "Failed dependencies" error. I am working on Fedora 4 system. Do I have to upgrade my system to setup django properly? Any idea? Many thanks, Swati On Oct 3, 10:25 pm, "Joseph Heck" <[EMAIL PROTECTED]> wrote: > You're on the right track - missing the MySQL python libraries. It > looks like Python is also missing the zlib libraries... > > not sure which OS you're using, but there's probably an "apt-get > install ..." or "rpm -Uvh ..." command that will get you the MySQL > Python libraries that you need. Looking on an Ubuntu box, the package > I installed was: > > "apt-get install python-mysqldb" > > -joe > > On 10/3/07, swati <[EMAIL PROTECTED]> wrote: > > > > > Hi All, > > > I am setting up first django project. When I set up django without any > > database settings, I could see the first welcome page from django. > > After this initial success, when I specify the database settings in > > the 'settings.py' and tried to run django, I am getting error,- > > > "ImproperlyConfigured: Error loading MySQLdb module: No module named > > MySQLdb" > > > I have downloaded python-mysql and tried installing it, where I am > > getting error,- > > > --------------------------------------------------------------------------------------------------------------------------------------- > > Traceback (most recent call last): > > File "setup.py", line 5, in ? > > import ez_setup; ez_setup.use_setuptools() > > File "/home/djtstdir/MySQL-python-1.2.2/ez_setup.py", line 85, in > > use_setuptools > > import setuptools; setuptools.bootstrap_install_from = egg > > zipimport.ZipImportError: can't decompress data; zlib not available > > --------------------------------------------------------------------------------------------------------------------------------------- > > > I have installed zlib also, but getting same error. > > > I am working remotly on linux > > I am working as root > > I have apache, mysql, python 2.4, and mod_python installed in my > > machine. > > > Any idea what I am missing out? Please help. > > > Many Thanks, > > Swati --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---