#24741: migration error
----------------------------+--------------------
     Reporter:  drakkan     |      Owner:  nobody
         Type:  Bug         |     Status:  new
    Component:  Migrations  |    Version:  1.8
     Severity:  Normal      |   Keywords:
 Triage Stage:  Unreviewed  |  Has patch:  0
Easy pickings:  0           |      UI/UX:  0
----------------------------+--------------------
 If there are no migrations to apply I get this error:


 {{{
 Synchronizing apps without migrations:
   Creating tables...
     Running deferred SQL...
   Installing custom SQL...
 Running migrations:
   No migrations to apply.
 Traceback (most recent call last):
   File "manage.py", line 10, in <module>
     execute_from_command_line(sys.argv)
   File "/home/nicola/django18/lib/python2.7/site-
 packages/Django-1.8.1-py2.7.egg/django/core/management/__init__.py", line
 338, in execute_from_command_line
     utility.execute()
   File "/home/nicola/django18/lib/python2.7/site-
 packages/Django-1.8.1-py2.7.egg/django/core/management/__init__.py", line
 330, in execute
     self.fetch_command(subcommand).run_from_argv(self.argv)
   File "/home/nicola/django18/lib/python2.7/site-
 packages/Django-1.8.1-py2.7.egg/django/core/management/base.py", line 390,
 in run_from_argv
     self.execute(*args, **cmd_options)
   File "/home/nicola/django18/lib/python2.7/site-
 packages/Django-1.8.1-py2.7.egg/django/core/management/base.py", line 441,
 in execute
     output = self.handle(*args, **options)
   File "/home/nicola/django18/lib/python2.7/site-
 packages/Django-1.8.1-py2.7.egg/django/core/management/commands/migrate.py",
 line 207, in handle
     changes = autodetector.changes(graph=executor.loader.graph)
   File "/home/nicola/django18/lib/python2.7/site-
 packages/Django-1.8.1-py2.7.egg/django/db/migrations/autodetector.py",
 line 43, in changes
     changes = self._detect_changes(convert_apps, graph)
   File "/home/nicola/django18/lib/python2.7/site-
 packages/Django-1.8.1-py2.7.egg/django/db/migrations/autodetector.py",
 line 186, in _detect_changes
     self.generate_altered_fields()
   File "/home/nicola/django18/lib/python2.7/site-
 packages/Django-1.8.1-py2.7.egg/django/db/migrations/autodetector.py",
 line 850, in generate_altered_fields
     if old_field_dec != new_field_dec:
   File "/home/nicola/django18/lib/python2.7/site-
 packages/Django-1.8.1-py2.7.egg/django/utils/functional.py", line 165, in
 __eq__
     return self.__cast() == other
   File "/home/nicola/django18/lib/python2.7/site-
 packages/Django-1.8.1-py2.7.egg/django/utils/functional.py", line 153, in
 __cast
     return self.__text_cast()
   File "/home/nicola/django18/lib/python2.7/site-
 packages/Django-1.8.1-py2.7.egg/django/utils/functional.py", line 141, in
 __text_cast
     return func(*self.__args, **self.__kw)
   File "/home/nicola/django18/lib/python2.7/site-
 packages/Django-1.8.1-py2.7.egg/django/utils/translation/__init__.py",
 line 84, in ugettext
     return _trans.ugettext(message)
   File "/home/nicola/django18/lib/python2.7/site-
 packages/Django-1.8.1-py2.7.egg/django/utils/translation/trans_real.py",
 line 327, in ugettext
     return do_translate(message, 'ugettext')
   File "/home/nicola/django18/lib/python2.7/site-
 packages/Django-1.8.1-py2.7.egg/django/utils/translation/trans_real.py",
 line 307, in do_translate
     result = getattr(translation_object,
 translation_function)(eol_message)
   File "/usr/lib64/python2.7/gettext.py", line 220, in ugettext
     return unicode(message)
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 3:
 ordinal not in range(128)
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24741>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.ceccad8b6bcbd4bac4d7eb1e5f88c3f3%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to