Opened 17 years ago

Closed 17 years ago

#3637 closed (duplicate)

syncdb error caused by "rsplit"

Reported by: joe4444 Owned by: Adrian Holovaty
Component: Core (Other) 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

It seems Python 2.3 does not have rsplit, which is causing this bug (I think).
I have Python 2.3.4-14.3 and PostgreSQL 7.4.16-1 and psycopg 1.1.21-1
I think this bug can be reproduced with any new project using Python 2.3.x and Django SVN.

Revisions 4662 - 4664 produce the following traceback:

$ python manage.py syncdb

Creating table auth_message
Creating table auth_group
Creating table auth_user
Creating table auth_permission
Creating table django_content_type
Creating table django_session
Creating table django_site

You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no): no
Installing index for auth.Message model
Installing index for auth.Permission model
Loading 'initial_data' fixtures...
Traceback (most recent call last):
  File "manage.py", line 11, in ?
    execute_manager(settings)
  File "/usr/lib/python2.3/site-packages/django/core/management.py", line 1665, in execute_manager
    execute_from_command_line(action_mapping, argv)
  File "/usr/lib/python2.3/site-packages/django/core/management.py", line 1564, in execute_from_command_line
    action_mapping[action](int(options.verbosity), options.interactive)
  File "/usr/lib/python2.3/site-packages/django/core/management.py", line 590, in syncdb
    load_data(['initial_data'], verbosity=verbosity)
  File "/usr/lib/python2.3/site-packages/django/core/management.py", line 1358, in load_data
    fixture_name, format = fixture_label.rsplit('.', 1)
AttributeError: 'str' object has no attribute 'rsplit'

Change History (1)

comment:1 by joe4444, 17 years ago

Resolution: duplicate
Status: newclosed

Sorry, I didn't notice that someone else already filed a ticket #3625 for the same issue.

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