Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#2827 closed defect (fixed)

manage.py broken after svn update

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

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 Changed 9 years ago by gtaylor@…

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

comment:2 Changed 9 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:3 Changed 9 years ago by adrian

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

comment:4 Changed 9 years ago by mtredinnick

(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