Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#2827 closed defect (fixed)

manage.py broken after svn update

Reported by: gtaylor@… Owned by: Adrian Holovaty
Component: Tools Version: dev
Severity: blocker Keywords: manage.py
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

After an update to the latest svn (r 3865), I get the following error when doing a 'python manage.py syncdb'

Traceback (most recent call last):

File "manage.py", line 11, in ?

execute_manager(settings)

File "/usr/lib/python2.4/site-packages/django/core/management.py", line 1404, in execute_manager

execute_from_command_line(action_mapping, argv)

File "/usr/lib/python2.4/site-packages/django/core/management.py", line 1315, in execute_from_command_line

action_mapping[action](int(options.verbosity), options.interactive)

File "/usr/lib/python2.4/site-packages/django/core/management.py", line 436, in syncdb

_check_for_validation_errors()

File "/usr/lib/python2.4/site-packages/django/core/management.py", line 1045, in _check_for_validation_errors

num_errors = get_validation_errors(s, app)

File "/usr/lib/python2.4/site-packages/django/core/management.py", line 868, in get_validation_errors

db_version = connection.get_server_version()

File "/usr/lib/python2.4/site-packages/django/db/backends/mysql/base.py", line 122, in get_server_version

self.server_version = tuple([int(x) for x in version[:3]]) + tuple(version[3:])

ValueError: invalid literal for int(): 24a

Here's my Python info:
Python 2.4.4c0 (#2, Jul 30 2006, 15:43:58)
[GCC 4.1.2 20060715 (prerelease) (Debian 4.1.1-9)] on linux2

Change History (4)

comment:1 by gtaylor@…, 18 years ago

Looking at http://code.djangoproject.com/changeset/3855, the error is happening in the section that was recently added.

comment:2 by Adrian Holovaty, 18 years ago

Resolution: fixed
Status: newclosed

(In [3867]) Fixed #2827 -- Reverted [3855]

comment:3 by Adrian Holovaty, 18 years ago

(In [3868]) Removed one more legacy bit from [3855]. Refs #2827.

comment:4 by Malcolm Tredinnick, 18 years ago

(In [3872]) Reintroduced the changes from [3855] with more flexible handling of version
strings. Refs #2188, #2827.

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