django 1.2 was requested, but 0.96.4.None is already in use

103 views
Skip to first unread message

Sagi

unread,
Jan 25, 2012, 12:59:06 PM1/25/12
to Google App Engine
I am encountering a sporadic issue with requests failing because
"django 1.2 was requested, but 0.96.4.None is already in use".
The first two lines in my main.py read:

from google.appengine.dist import use_library
use_library('django', '1.2')

...so I'm not sure how come 0.96 is already in use.

This has been affecting my production site for a while and I'm at a
loss on how to remedy it.

The site might be up and running fine for a couple of days and then it
out of nowhere (no new deployment) refuses to serve requests because
of this and in order to fix it all I do is upload a new version with a
trivial change (e.g. an extra empty line somewhere).

The full error is:

<class 'google.appengine.dist._library.UnacceptableVersionError'>:
django 1.2 was requested, but 0.96.4.None is already in use
Traceback (most recent call last):
File "/base/data/home/apps/s~dingitapp/1.356297547119531589/
main.py", line 2, in <module>
use_library('django', '1.2')
File "/base/python_runtime/python_lib/versions/1/google/appengine/
dist/_library.py", line 414, in use_library
InstallLibrary(name, version, explicit=True)
File "/base/python_runtime/python_lib/versions/1/google/appengine/
dist/_library.py", line 367, in InstallLibrary
CheckInstalledVersion(name, version, explicit=True)
File "/base/python_runtime/python_lib/versions/1/google/appengine/
dist/_library.py", line 300, in CheckInstalledVersion
(name, desired_version, installed_version))

Any suggestion?

Sagi

unread,
Jan 25, 2012, 1:25:27 PM1/25/12
to Google App Engine
Perhaps worthwhile mentioning:

1. templates are the only part of django I'm using
2. main.py is my only script handler
3. I'm using python 2.5

Sagi

PK

unread,
Jan 25, 2012, 6:23:40 PM1/25/12
to google-a...@googlegroups.com
Sagi,

read here how I have solved this problem:


PK

Reply all
Reply to author
Forward
0 new messages