You must use an older version of mysqlclient for such an old (and 
unsupported) version of Django.

On Friday, February 1, 2019 at 7:50:11 AM UTC-5, christia...@itsv.at wrote:
>
>
> while trying to build an app around an existing database, inspectdb bails 
> out on me. the server is running fine and says "0 errors found". any ideas ?
>
> root@lpgaixmgmtlx01:/root/django/aixregistry_nxt>./manage.py runserver 0.0
> .0.0:8000
> Validating models...
>
> 0 errors found
> February 01, 2019 - 12:41:31
> Django version 1.6.11.7, using settings 'aixregistry_nxt.settings'
> Starting development server at http://0.0.0.0:8000/
> Quit the server with CONTROL-C.
>
>
>
>
> root@lpgaixmgmtlx01:/root/django/aixregistry_nxt>./manage.py inspectdb
> Traceback (most recent call last):
>   File "./manage.py", line 10, in <module>
>     execute_from_command_line(sys.argv)
>   File 
> "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", 
> line 399, in execute_from_command_line
>     utility.execute()
>   File 
> "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", 
> line 392, in execute
>     self.fetch_command(subcommand).run_from_argv(self.argv)
>   File "/usr/lib/python2.7/site-packages/django/core/management/base.py", 
> line 242, in run_from_argv
>     self.execute(*args, **options.__dict__)
>   File "/usr/lib/python2.7/site-packages/django/core/management/base.py", 
> line 285, in execute
>     output = self.handle(*args, **options)
>   File "/usr/lib/python2.7/site-packages/django/core/management/base.py", 
> line 415, in handle
>     return self.handle_noargs(**options)
>   File 
> "/usr/lib/python2.7/site-packages/django/core/management/commands/inspectdb.py"
> , line 27, in handle_noargs
>     for line in self.handle_inspection(options):
>   File 
> "/usr/lib/python2.7/site-packages/django/core/management/commands/inspectdb.py"
> , line 40, in handle_inspection
>     cursor = connection.cursor()
>   File "/usr/lib/python2.7/site-packages/django/db/backends/__init__.py", 
> line 160, in cursor
>     cursor = self.make_debug_cursor(self._cursor())
>   File "/usr/lib/python2.7/site-packages/django/db/backends/__init__.py", 
> line 132, in _cursor
>     self.ensure_connection()
>   File "/usr/lib/python2.7/site-packages/django/db/backends/__init__.py", 
> line 127, in ensure_connection
>     self.connect()
>   File "/usr/lib/python2.7/site-packages/django/db/backends/__init__.py", 
> line 115, in connect
>     self.connection = self.get_new_connection(conn_params)
>   File "/usr/lib/python2.7/site-packages/django/db/backends/mysql/base.py"
> , line 437, in get_new_connection
>     conn.encoders[SafeBytes] = conn.encoders[bytes]
> KeyError: <type 'str'>
> Enter code here...
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b8b50a18-b234-438c-85fc-e8c11d462b91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to