The Artima Developer Community
Sponsored Link

Python Answers Forum
MySQLdb module problem

2 replies on 1 page. Most recent reply: Jan 10, 2007 5:21 AM by nnrr nac

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
rama kanth

Posts: 1
Nickname: ramakanth
Registered: Jun, 2004

MySQLdb module problem Posted: Jun 11, 2004 5:51 PM
Reply to this message Reply
Advertisement
hello friends,

iam completely newbie just i need to execute code of python

the code is as followed

______________________________________________________________
import sys
import os
import MySQLdb
import exceptions
import re

##
## Configuration section
##


## MySQL related variables
mysqlUser = 'cdradmin'
mysqlPasswd = 'ndd18vv'
mysqlHost = 'localhost'
mysqlDB = 'cdrtool'

## Use this to overwrite some of the settings above on a local basis if needed
try:
from _sertrace impor
.............................
..............................
............ ...............
______________________________________________________________

when i execute the code i get the following error


import MySQLdb
ImportError: No module named MySQLdb

does i need to install the that module or what may be the

problem exactly.

with regards
rama kanth


Greg Jorgensen

Posts: 65
Nickname: gregjor
Registered: Feb, 2004

Re: MySQLdb module problem Posted: Jun 16, 2004 10:06 AM
Reply to this message Reply
You need the mysql-python module, it's not part of the Python distribution.

You can find it at:
http://sourceforge.net/projects/mysql-python

Greg Jorgensen
PDXperts LLC - Portland, Oregon USA

nnrr nac

Posts: 1
Nickname: nrz
Registered: Jan, 2007

Re: MySQLdb module problem Posted: Jan 10, 2007 5:21 AM
Reply to this message Reply
i'm trying to install the rpm
from http://sourceforge.net/projects/mysql-python..

but having a lot of errors. like ;
"
_mysql.c:2342: hata: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:2349: hata: '_mysql_ConnectionObject' has no member named 'connection'
_mysql.c:2412: hata: '_mysql_ResultObject' has no member named 'converter'
_mysql.c:2412: hata: ilklendirici oge bir sabit degil
_mysql.c:2412: hata: ('_mysql_ResultObject_memberlist[0].offset' icin near ilklendirme)
_mysql.c: '_mysql_ConnectionObject_getattr' islevinde:
_mysql.c:2434: hata: '_mysql_ConnectionObject' has no member named 'open'
error: command 'gcc' failed with exit status 1
"
what can i now ? how can i install the packet?

Flat View: This topic has 2 replies on 1 page
Topic: Python + SQLALchemy under WIndows Previous Topic   Next Topic Topic: How to save all search engine results urls in a text file

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use