Opened 16 years ago

Last modified 16 years ago

#8228 closed

Failure to use manage.py syncdb after updating to revision 8301. — at Version 1

Reported by: guneeyoufix@… Owned by: nobody
Component: Uncategorized Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Jacob)

Here is what I did to update my version of django:

I deleted the django directory from my site-packages directory.
I updated the source code from SVN using 'svn up' in the django trunk directory
I run the setup.py script with the install command

And after that, the python manage.py syncdb command doesn't work anymore.

Here us the trace of the error:

# ~/mysite $ python manage.py syncdb
Traceback (most recent call last):
  File "manage.py", line 11, in ?
    execute_manager(settings)
  File "/usr/lib/python2.3/site-packages/django/core/management/__init__.py", line 328, in execute_manager
    utility.execute()
  File "/usr/lib/python2.3/site-packages/django/core/management/__init__.py", line 290, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.3/site-packages/django/core/management/base.py", line 77, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.3/site-packages/django/core/management/base.py", line 95, in execute
    self.validate()
  File "/usr/lib/python2.3/site-packages/django/core/management/base.py", line 122, in validate
    num_errors = get_validation_errors(s, app)
  File "/usr/lib/python2.3/site-packages/django/core/management/validation.py", line 22, in get_validation_errors
    from django.db import models, connection
  File "/usr/lib/python2.3/site-packages/django/db/__init__.py", line 16, in ?
    backend = __import__('%s%s.base' % (_import_path, settings.DATABASE_ENGINE), {}, {}, [''])
  File "/usr/lib/python2.3/site-packages/django/db/backends/sqlite3/base.py", line 11, in ?
    from django.db.backends.sqlite3.creation import DatabaseCreation
  File "/usr/lib/python2.3/site-packages/django/db/backends/sqlite3/creation.py", line 4, in ?
    from django.db.backends.creation import BaseDatabaseCreation
  File "/usr/lib/python2.3/site-packages/django/db/backends/creation.py", line 11, in ?
    class BaseDatabaseCreation(object):
  File "/usr/lib/python2.3/site-packages/django/db/backends/creation.py", line 23, in BaseDatabaseCreation
    def sql_create_model(self, model, style, known_models=set()):
NameError: name 'set' is not defined

Is the error mine ?

Thanks

Change History (1)

comment:1 by Jacob, 16 years ago

Description: modified (diff)

(fixed formatting)

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