468,511 Members | 1,652 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,511 developers. It's quick & easy.

Strange exceptions in MySQLdb

Hi,
I have been using Python 2.3.4 with MySQL 4.0.16-max-nt (through
MySQLdb) for months. Today this messages showed up:

Exception exceptions.AttributeError: "'NoneType' object has no
attribute 'close'" in <bound method Cursor.__del__ of
<MySQLdb.cursors.Cursor instance at 0x0099C148>> ignored
Exception exceptions.AttributeError: "'NoneType' object has no
attribute 'close'" in <bound method Cursor.__del__ of
<MySQLdb.cursors.Cursor instance at 0x009AD080>> ignored
Exception exceptions.AttributeError: "'NoneType' object has no
attribute 'close'" in <bound method Cursor.__del__ of
<MySQLdb.cursors.Cursor instance at 0x009ABF58>> ignored

My scripts work just fine... everything is ok besides this messages
that mean nothing to me :(
Any suggestions? Thanks in advance!
Hector
Jul 18 '05 #1
1 3172
Hector Villafuerte wrote:
I have been using Python 2.3.4 with MySQL 4.0.16-max-nt (through
MySQLdb) for months. Today this messages showed up:

Exception exceptions.AttributeError: "'NoneType' object has no
attribute 'close'" in <bound method Cursor.__del__ of
<MySQLdb.cursors.Cursor instance at 0x0099C148>> ignored


this means that the Cursor destructor (the __del__ method) attempts to
call some global object during cleanup, but that object has already been
cleaned away.

for some more information on the cleanup procedure, see:

http://www.python.org/doc/essays/cleanup.html

(this should be mentioned in the reference documentation somewhere,
but I only got through to python.org for long enough to dig up that link)

it's most likely a bug in the MySQLdb driver (objects using destructors
*should* keep references to any object needed by the destructor). to
see if it's really harmless, you may want to check the source code: look
for "close" method calls in the Cursor destructor.

</F>

Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Dave Harrison | last post: by
1 post views Thread by Peter Nikolaidis | last post: by
reply views Thread by Elliot Peele | last post: by
2 posts views Thread by ws Wang | last post: by
1 post views Thread by Steve | last post: by
1 post views Thread by Grzegorz Smith | last post: by
1 post views Thread by Yi Xing | last post: by
reply views Thread by Steve Holden | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.