473,472 Members | 1,882 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

problems with MySQLdb

Is there a mailing list or anything like that for users of the MySQLdb
module?

Using version 0.9.2 with Python 2.3.2 and whenever I try to open a
connection I get this error:

File "/home/webserver/localhost/dvdlookup/MyMySQL.py", line 23, in
_connect
passwd = self.password, db = self.db )
File
"/home/webserver/python2.3/lib/python2.3/site-packages/MySQLdb/__init__.py",
line 63, in Connect
return apply(Connection, args, kwargs)
File
"/home/webserver/python2.3/lib/python2.3/site-packages/MySQLdb/connections.py",
line 116, in __init__
self.converter[types.StringType] = self.string_literal
TypeError: object does not support item assignment
Segmentation fault
This code has worked with older combination of Python and MySQLdb. Any
idea what's wrong?

Here is the code that accesses MySQLdb:

self.connection = MySQLdb.connect (
host = self.host, user = self.user,
passwd = self.password, db = self.db )

Thanks.

Jul 18 '05 #1
1 1538
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, 27 Mar 2004 14:26:08 -0800, Michael wrote:

self.connection = MySQLdb.connect (
host = self.host, user = self.user,
passwd = self.password, db = self.db )


Are any of the parameters perhaps lists or tuples themselves on accident?
:: Jon-Pierre Gentil
:: PGP Key ID 0xA21BC30E
:: Jabber: jg*****@jabber.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iEYEARECAAYFAkBn1e8ACgkQOrVFmaIbww70JgCfcdx5iyPU7W SoePcnAT1bx/rS
b1MAnjqc5QBrQzLP9OXAG8Nkh60+tcHh
=sg0s
-----END PGP SIGNATURE-----

Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Peter Nikolaidis | last post by:
Greetings, I am attempting to get MySQLdb 0.9.2 installed on Mac OS 10.2 with a Fink distribution of Python 2.2.2. I have seen only a few posts on the subject, some of them relate to...
0
by: google account | last post by:
*sigh* I have done all that I know how.... I am using fedora core1, I believe. I have updated the MySQL version to 4.0.17-0. I am trying this: rpm -i MySQL-python2.1-0.9.2-1.i386.rpm
7
by: rodmc | last post by:
I have written an application that connects to a database on a remote machine which uses MySQLdb 1.2.0. The application works perfectly when connecting to the database from a remote machine,...
15
by: John Nagle | last post by:
I've been installing Python and its supporting packages on a dedicated server with Fedora Core 6 for about a day now. This is a standard dedicated rackmount server in a colocation facility,...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.