Your message dated Sat, 19 Mar 2005 20:31:58 -0500
with message-id <[EMAIL PROTECTED]>
and subject line [Fwd: Re: Bug#298561: python-mysqldb + mod_python = TypeError: 
object does not support item assignment]
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 8 Mar 2005 14:01:36 +0000
>From [EMAIL PROTECTED] Tue Mar 08 06:01:36 2005
Return-path: <[EMAIL PROTECTED]>
Received: from smtp816.mail.sc5.yahoo.com [66.163.170.2] 
        by spohr.debian.org with smtp (Exim 3.35 1 (Debian))
        id 1D8fHE-0003oi-00; Tue, 08 Mar 2005 06:01:36 -0800
Received: from unknown (HELO ?192.168.2.29?) ([EMAIL PROTECTED]@66.72.39.146 
with plain)
  by smtp816.mail.sc5.yahoo.com with SMTP; 8 Mar 2005 14:01:35 -0000
Message-ID: <[EMAIL PROTECTED]>
Date: Tue, 08 Mar 2005 09:02:11 -0500
From: Aarre Laakso <[EMAIL PROTECTED]>
Organization: Sisu Software
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20050105 
Debian/1.7.5-1 StumbleUpon/1.999
X-Accept-Language: en
MIME-Version: 1.0
To: [EMAIL PROTECTED]
Subject: python-mysqldb + mod_python = TypeError: object does not support
 item assignment
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.5 required=4.0 tests=BAYES_00,HAS_PACKAGE,
        HTML_MESSAGE autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: python-mysqldb
Version: 1.1.6-1
Severity: normal


mysqldb + mod_python recently broke for me (perhaps with Python 2.3.5?
not sure). Everything was working fine until today, even though I
upgraded to 2.3.5 a few days ago. Apache got restarted today, though.

The following script works when executed from the command line:

-----
#! /usr/bin/env python2.3

import MySQLdb

host="localhost"
user="test"
passwd="test"
dbname="test"

db_connection = MySQLdb.connect(host,user,passwd,dbname)
-----

However, the following script:

-----
from mod_python import apache

import MySQLdb

def handler(req):
     req.content_type = "text/html; charset=UTF-8"
     req.send_http_header()
     req.write("<html><body><code>")
     req.write("Entered handler...<br>\n")
     db = MySQLdb.connect( host="localhost", user="test", passwd="test", 
db="test" )
     req.write("OK it works!\n")
     req.write("</code></body></html>")
     return apache.OK
----

Returns this error to the browser:

Entered handler...
Mod_python error: "PythonHandler testmysqldb" Traceback (most recent
call last): File
"/usr/lib/python2.3/site-packages/mod_python/apache.py", line 193, in
Dispatch result = object(req) File
"/home/aarre/websites/laakshmi/test/testmysqldb.py", line 13, in handler
db = MySQLdb.connect( host="localhost", user="test", passwd="test",
db="test" ) File "/usr/lib/python2.3/site-packages/MySQLdb/__init__.py",
line 64, in Connect return Connection(*args, **kwargs) File
"/usr/lib/python2.3/site-packages/MySQLdb/connections.py", line 101, in
__init__ self.converter[types.StringType] = self.string_literal
TypeError: object does not support item assignment






-- System Information:
Debian Release: 3.1
   APT prefers unstable
   APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-k7
Locale: LANG=POSIX, LC_CTYPE=POSIX (charmap=ANSI_X3.4-1968) (ignored: 
LC_ALL set to POSIX)

Versions of packages python-mysqldb depends on:
ii  python                        2.3.5-1    An interactive high-level 
object-o
ii  python2.3-mysqldb             1.1.6-1    A Python interface to MySQL

-- no debconf information

---------------------------------------
Received: (at 298561-done) by bugs.debian.org; 20 Mar 2005 01:32:00 +0000
>From [EMAIL PROTECTED] Sat Mar 19 17:32:00 2005
Return-path: <[EMAIL PROTECTED]>
Received: from smtp815.mail.sc5.yahoo.com [66.163.170.1] 
        by spohr.debian.org with smtp (Exim 3.35 1 (Debian))
        id 1DCpIN-00059E-00; Sat, 19 Mar 2005 17:31:59 -0800
Received: from unknown (HELO ?192.168.2.29?) ([EMAIL PROTECTED]@68.76.217.9 
with plain)
  by smtp815.mail.sc5.yahoo.com with SMTP; 20 Mar 2005 01:31:59 -0000
Message-ID: <[EMAIL PROTECTED]>
Date: Sat, 19 Mar 2005 20:31:58 -0500
From: Aarre Laakso <[EMAIL PROTECTED]>
Organization: Sisu Software
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20050105 
Debian/1.7.5-1 StumbleUpon/1.999
X-Accept-Language: en
MIME-Version: 1.0
To: [EMAIL PROTECTED]
Subject: [Fwd: Re: Bug#298561: python-mysqldb + mod_python = TypeError: object
 does not support item assignment]
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 2



-------- Original Message --------
Subject: Re: Bug#298561: python-mysqldb + mod_python = TypeError: object 
does not support item assignment
Date: Sat, 19 Mar 2005 20:24:28 -0500
From: Aarre Laakso <[EMAIL PROTECTED]>
Organization: Sisu Software
To: Jonas Meurer <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
References: <[EMAIL PROTECTED]> 
<[EMAIL PROTECTED]>

Yes, python-mysqldb_1.1.6-1.1 resolves this issue. I will close the bug.

Thank you.

--
Aarre Laakso
http://www245.pair.com/aarre/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to