Hi,
i have installed django on my website but i receive always this message.
I think there is a problem with Mysqldb-python.
My installation is Mysql 4.0 and python2.3-mysqldb 1.2.1c2-1.
Could anyone give me any tips ?
ciao
Patrick
Mod_python error: "PythonHandler django.core.handlers.modpython"
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
result = object(req)
File "/usr/lib/python2.3/site-packages/django/core/handlers/modpython.py", line 161, in handler
return ModPythonHandler()(req)
File "/usr/lib/python2.3/site-packages/django/core/handlers/modpython.py", line 137, in call
response = middleware_method(request, response)
File "/usr/lib/python2.3/site-packages/django/contrib/sessions/middleware.py", line 81, in process_response
session_key = request.session.session_key or Session.objects.get_new_session_key()
File "/usr/lib/python2.3/site-packages/django/contrib/sessions/models.py", line 21, in get_new_session_key
self.get(session_key=session_key)
File "/usr/lib/python2.3/site-packages/django/db/models/manager.py", line 70, in get
return self.get_query_set().get(args, *kwargs)
File "/usr/lib/python2.3/site-packages/django/db/models/query.py", line 202, in get
obj_list = list(clone)
File "/usr/lib/python2.3/site-packages/django/db/models/query.py", line 94, in iter
return iter(self._get_data())
File "/usr/lib/python2.3/site-packages/django/db/models/query.py", line 412, in _get_data
self._result_cache = list(self.iterator())
File "/usr/lib/python2.3/site-packages/django/db/models/query.py", line 161, in iterator
cursor = connection.cursor()
File "/usr/lib/python2.3/site-packages/django/db/backends/mysql/base.py", line 90, in cursor
self.connection = Database.connect(**kwargs)
File "/usr/lib/python2.3/site-packages/MySQLdb/init.py", line 66, in Connect
return Connection(args, *kwargs)
File "/usr/lib/python2.3/site-packages/MySQLdb/connections.py", line 151, in init
self.converter[types.StringType] = string_literal
TypeError: object does not support item assignment
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Like I said on the django-users list, it's a problem with your installation. However, you have failed to mention what OS and what packaging you are using. I am going to guess you are using Debian packages.
If you search the forums for your exception, you see it crops up every once in a while, so check these out.
Hi,
i have installed django on my website but i receive always this message.
I think there is a problem with Mysqldb-python.
My installation is Mysql 4.0 and python2.3-mysqldb 1.2.1c2-1.
Could anyone give me any tips ?
ciao
Patrick
Mod_python error: "PythonHandler django.core.handlers.modpython"
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
result = object(req)
File "/usr/lib/python2.3/site-packages/django/core/handlers/modpython.py", line 161, in handler
return ModPythonHandler()(req)
File "/usr/lib/python2.3/site-packages/django/core/handlers/modpython.py", line 137, in call
response = middleware_method(request, response)
File "/usr/lib/python2.3/site-packages/django/contrib/sessions/middleware.py", line 81, in process_response
session_key = request.session.session_key or Session.objects.get_new_session_key()
File "/usr/lib/python2.3/site-packages/django/contrib/sessions/models.py", line 21, in get_new_session_key
self.get(session_key=session_key)
File "/usr/lib/python2.3/site-packages/django/db/models/manager.py", line 70, in get
return self.get_query_set().get(args, *kwargs)
File "/usr/lib/python2.3/site-packages/django/db/models/query.py", line 202, in get
obj_list = list(clone)
File "/usr/lib/python2.3/site-packages/django/db/models/query.py", line 94, in iter
return iter(self._get_data())
File "/usr/lib/python2.3/site-packages/django/db/models/query.py", line 412, in _get_data
self._result_cache = list(self.iterator())
File "/usr/lib/python2.3/site-packages/django/db/models/query.py", line 161, in iterator
cursor = connection.cursor()
File "/usr/lib/python2.3/site-packages/django/db/backends/mysql/base.py", line 90, in cursor
self.connection = Database.connect(**kwargs)
File "/usr/lib/python2.3/site-packages/MySQLdb/init.py", line 66, in Connect
return Connection(args, *kwargs)
File "/usr/lib/python2.3/site-packages/MySQLdb/connections.py", line 151, in init
self.converter[types.StringType] = string_literal
TypeError: object does not support item assignment
Like I said on the django-users list, it's a problem with your installation. However, you have failed to mention what OS and what packaging you are using. I am going to guess you are using Debian packages.
If you search the forums for your exception, you see it crops up every once in a while, so check these out.
http://sourceforge.net/search/index.php?group_id=22307&search_summary=1&search_details=1&search_comments=1&type_of_search=artifact&all_words=&exact_phrase=TypeError%3A+object+does+not+support+item+assignment+&some_word=&group_artifact_id%5B%5D=374932&artifact_id=&submitted_by=&assigned_to=&open_date_start=&open_date_end=&last_update_date_start=&last_update_date_end=&form_submit=Search
http://sourceforge.net/tracker/index.php?func=detail&aid=1097600&group_id=22307&atid=374932
I still don't really know what the root cause is, but it doesn't affect very many people.
Sadly, SourceForge forums are retarded about URLs, so you will have to copy and paste those.