UnboundLocalError: local variable 'full_path' referenced before assignment

Using Window 7 64Bit with Python 2.7 and Django 1.4.

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Django-1.4\django\bin\cms2>manage.py syncdb
Creating tables ...
Installing custom SQL ...
Installing indexes ...
Traceback (most recent call last):
  File "C:\Django-1.4\django\bin\cms2\manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line
443, in execute_from_command_line
    utility.execute()
  File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line
382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Python27\lib\site-packages\django\core\management\base.py", line 196,
 in run_from_argv
    self.execute(*args, **options.__dict__)
  File "C:\Python27\lib\site-packages\django\core\management\base.py", line 232,
 in execute
    output = self.handle(*args, **options)
  File "C:\Python27\lib\site-packages\django\core\management\base.py", line 371,
 in handle
    return self.handle_noargs(**options)
  File "C:\Python27\lib\site-packages\django\core\management\commands\syncdb.py"
, line 164, in handle_noargs
    call_command('loaddata', 'initial_data', verbosity=verbosity, database=db)
  File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line
150, in call_command
    return klass.execute(*args, **defaults)
  File "C:\Python27\lib\site-packages\django\core\management\base.py", line 232,
 in execute
    output = self.handle(*args, **options)
  File "C:\Python27\lib\site-packages\django\core\management\commands\loaddata.p
y", line 239, in handle
    (full_path, ''.join(traceback.format_exception(sys.exc_type,
UnboundLocalError: local variable 'full_path' referenced before assignment

Error

UnboundLocalError: local variable 'full_path' referenced before assignment

I installed it myself, but it gives me errors. What's wrong with it? I tried on Google but nothing came of it.

+5
source share
6 answers

I also had this problem. This was called (by someone else) by adding this to mine settings.py:

SERIALIZATION_MODULES = {
    'json': 'wadofstuff.django.serializers.json'
}

And I did not install this thing. You can install it using:

pip install wadofstuff-django-serializers

I assume a similar error occurs for other missing software as well.

+10
source

Django , .

, , ,

manage.py syncdb --traceback

, ,

manage.py --traceback syncdb

, Django. , , , .

+2

, Windows , python. Windows, python: python manage.py.

0

Django 1.4.1. , , , git. . , , .

, , - , .

0

loaddata.py, , , full_path 163, , . "full_path = '" handle(), .

0
source

Django 1.4 3.x is not compatible with the Python .

It might be worth trying again with Python 2.7 and see if you run into the same problem.

-1
source

All Articles