Opened 15 years ago

Last modified 14 years ago

#13322 closed

Problem with inspectdb and encoding — at Initial Version

Reported by: josemaria@… Owned by: nobody
Component: Core (Management commands) Version: 1.2-beta
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: yes Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

While trying to generate model from database with manage.py inspectdb I get the following error:

class Categorias(models.Model):
Traceback (most recent call last):

File "./manage.py", line 11, in <module>

execute_manager(settings)

File "/usr/local/lib/python2.6/site-packages/django/core/management/init.py", line 438, in execute_manager

utility.execute()

File "/usr/local/lib/python2.6/site-packages/django/core/management/init.py", line 379, in execute

self.fetch_command(subcommand).run_from_argv(self.argv)

File "/usr/local/lib/python2.6/site-packages/django/core/management/base.py", line 196, in run_from_argv

self.execute(*args, options.dict)

File "/usr/local/lib/python2.6/site-packages/django/core/management/base.py", line 223, in execute

output = self.handle(*args, options)

File "/usr/local/lib/python2.6/site-packages/django/core/management/base.py", line 352, in handle

return self.handle_noargs(options)

File "/usr/local/lib/python2.6/site-packages/django/core/management/commands/inspectdb.py", line 22, in handle_noargs

for line in self.handle_inspection(options):

File "/usr/local/lib/python2.6/site-packages/django/core/management/commands/inspectdb.py", line 113, in handle_inspection

field_desc = '%s = models.%s' % (att_name, field_type)

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 4: ordinal not in range(128)

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top