Hello,

Request Method:         GET
Request URL:    https://age86.internetdsl.tpnet.pl/
Exception Type:         AttributeError
Exception Value:        'Connection' object has no attribute 'ping'
Exception Location:     /usr/django/django/db/backends/mysql/base.py in
_valid_connection, line 162
Python Executable:      /usr/bin/python
Python Version:         2.5.0

Traceback:
File "/usr/django/django/core/handlers/base.py" in get_response
  82.                 response = callback(request, *callback_args,
**callback_kwargs)
File "/usr/django/django/contrib/auth/decorators.py" in __call__
  66.         if self.test_func(request.user):
File "/usr/django/django/contrib/auth/middleware.py" in __get__
  5.             request._cached_user = get_user(request)
File "/usr/django/django/contrib/auth/__init__.py" in get_user
  83.         user = backend.get_user(user_id) or AnonymousUser()
File "/usr/django/django/contrib/auth/backends.py" in get_user
  68.             return User.objects.get(pk=user_id)
File "/usr/django/django/db/models/manager.py" in get
  82.         return self.get_query_set().get(*args, **kwargs)
File "/usr/django/django/db/models/query.py" in get
  192.         num = len(clone)
File "/usr/django/django/db/models/query.py" in __len__
  53.                 self._result_cache = list(self.iterator())
File "/usr/django/django/db/models/query.py" in iterator
  162.         for row in self.query.results_iter():
File "/usr/django/django/db/models/sql/query.py" in results_iter
  200.         for rows in self.execute_sql(MULTI):
File "/usr/django/django/db/models/sql/query.py" in execute_sql
  1473.         cursor = self.connection.cursor()
File "/usr/django/django/db/backends/__init__.py" in cursor
  33.         cursor = self._cursor(settings)
File "/usr/django/django/db/backends/mysql/base.py" in _cursor
  170.         if not self._valid_connection():
File "/usr/django/django/db/backends/mysql/base.py" in
_valid_connection
  162.                 self.connection.ping()

It occured after I had recompiled mod_python 3.3.1 on Apache2.2.3 with
Python2.5 instead of Python2.4.

I can import MySQLdb using both Python2.5 and Python2.4.

With Python2.4 I could perform 'syncdb' but now it is: Connection
object has no attribute 'get_server_info'.

My distro is Debian Etch 4.0 Stable. Django is the newest SVN.

Does anybody know how to fix it?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to