[google-appengine] Re: Django version conflicts - now also in production

2010-10-20 Thread Terje Dahl
Well.  I saw now other sollution.  The errors were hurting me.
I reverted to using the default version of Django (0.96.x).

I simply removed the use_library statement.
And i my case I only had to fix a couple of temlates (by removing the
safe-filter),
and one client had to be fixed, as I guess the HttResponseRedirect in
0.96 doesn't seem to reslove a relative url to an absolute one.
But no problem, though.

Oh.  And don't forget to switch to using the documentation for 0.96.

Now back to my care-free life.   ;-)




On Oct 18, 1:47 pm, Terje Dahl te...@terjedahl.no wrote:
 In my app I use Django version 1.0, in stead of the default version
 0.96.

 To do this I have the following statements in my application entry
 point script (as per instructions):

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

 This has from the start (the last 16 months)  often caused an error
 which has forced me to restart my developer environment.
 But I have thought nothing of it, as it has worked flawlessy in
 production - until now.

 Now, the last couple of weeks I have gotten the same type of error a
 couple of times in production.
 The only cure has been to quickly upload a new version and make it
 default.  Luckily I have had non-altered code at hand so I could do
 this quickly and easily.  But I might have been in the middle of
 altering my code for a next version.  What then? ...  (Yes, yes.  I
 know. Version controlled code repository.)  But I digress.

 Anyways.  Why has this error now started appearing?
 And what is to be done about it?!

 Here is the error message from the log:

 10-18 04:03AM 17.255
 class 'google.appengine.dist._library.UnacceptableVersionError':
 django 1.0 was requested, but 0.96.4.None is already in use
 Traceback (most recent call last):
   File /base/data/home/apps/spraklab35/6.345421897971373021/main.py,
 line 6, in module
     use_library('django', '1.0')
   File /base/python_runtime/python_lib/versions/1/google/appengine/
 dist/_library.py, line 284, in use_library
     InstallLibrary(name, version, explicit=True)
   File /base/python_runtime/python_lib/versions/1/google/appengine/
 dist/_library.py, line 243, in InstallLibrary
     CheckInstalledVersion(name, version, explicit=True)
   File /base/python_runtime/python_lib/versions/1/google/appengine/
 dist/_library.py, line 190, in CheckInstalledVersion
     (name, desired_version, installed_version))

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Django version conflicts - now also in production

2010-10-19 Thread Terje Dahl
I don't.  But has it now been added by Google in GAE?
Can I remove it from there?

On Oct 18, 3:22 pm, Rafael Sierra rafaeljs...@gmail.com wrote:
 On Mon, Oct 18, 2010 at 8:47 AM, Terje Dahl te...@terjedahl.no wrote:
  In my app I use Django version 1.0, in stead of the default version
  0.96.

  To do this I have the following statements in my application entry
  point script (as per instructions):

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

  This has from the start (the last 16 months)  often caused an error
  which has forced me to restart my developer environment.
  But I have thought nothing of it, as it has worked flawlessy in
  production - until now.

  Now, the last couple of weeks I have gotten the same type of error a
  couple of times in production.
  The only cure has been to quickly upload a new version and make it
  default.  Luckily I have had non-altered code at hand so I could do
  this quickly and easily.  But I might have been in the middle of
  altering my code for a next version.  What then? ...  (Yes, yes.  I
  know. Version controlled code repository.)  But I digress.

  Anyways.  Why has this error now started appearing?
  And what is to be done about it?!

  Here is the error message from the log:

  10-18 04:03AM 17.255
  class 'google.appengine.dist._library.UnacceptableVersionError':
  django 1.0 was requested, but 0.96.4.None is already in use
  Traceback (most recent call last):
   File /base/data/home/apps/spraklab35/6.345421897971373021/main.py,
  line 6, in module
     use_library('django', '1.0')
   File /base/python_runtime/python_lib/versions/1/google/appengine/
  dist/_library.py, line 284, in use_library
     InstallLibrary(name, version, explicit=True)
   File /base/python_runtime/python_lib/versions/1/google/appengine/
  dist/_library.py, line 243, in InstallLibrary
     CheckInstalledVersion(name, version, explicit=True)
   File /base/python_runtime/python_lib/versions/1/google/appengine/
  dist/_library.py, line 190, in CheckInstalledVersion
     (name, desired_version, installed_version))

 Check if you already have 'django' into your sys.modules, you may need
 removed before import the other version

  --
  You received this message because you are subscribed to the Google Groups 
  Google App Engine group.
  To post to this group, send email to google-appeng...@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-appengine+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-appengine?hl=en.

 --
 Rafael Sierrahttp://blog.rafaelsdm.com

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: Django version conflicts - now also in production

2010-10-19 Thread Ryan Weber
I often see this error too (although almost exclusively on dev, not
production). Still, it is pretty annoying to have to constantly be
restarting my dev server each time. Pretty sure it happens whenever I'm
messing around in the Development Console.

Has this issue been formally logged, and if so, is there any plan to fix it
anytime soon?  I sure would appreciate it...perhaps even willing to trade my
first born son for it (I'd have to consult with the wife first though).

On Tue, Oct 19, 2010 at 3:28 PM, Terje Dahl te...@terjedahl.no wrote:

 I don't.  But has it now been added by Google in GAE?
 Can I remove it from there?

 On Oct 18, 3:22 pm, Rafael Sierra rafaeljs...@gmail.com wrote:
  On Mon, Oct 18, 2010 at 8:47 AM, Terje Dahl te...@terjedahl.no wrote:
   In my app I use Django version 1.0, in stead of the default version
   0.96.
 
   To do this I have the following statements in my application entry
   point script (as per instructions):
 
   from google.appengine.dist import use_library
   use_library('django', '1.0')
 
   This has from the start (the last 16 months)  often caused an error
   which has forced me to restart my developer environment.
   But I have thought nothing of it, as it has worked flawlessy in
   production - until now.
 
   Now, the last couple of weeks I have gotten the same type of error a
   couple of times in production.
   The only cure has been to quickly upload a new version and make it
   default.  Luckily I have had non-altered code at hand so I could do
   this quickly and easily.  But I might have been in the middle of
   altering my code for a next version.  What then? ...  (Yes, yes.  I
   know. Version controlled code repository.)  But I digress.
 
   Anyways.  Why has this error now started appearing?
   And what is to be done about it?!
 
   Here is the error message from the log:
 
   10-18 04:03AM 17.255
   class 'google.appengine.dist._library.UnacceptableVersionError':
   django 1.0 was requested, but 0.96.4.None is already in use
   Traceback (most recent call last):
File /base/data/home/apps/spraklab35/6.345421897971373021/main.py,
   line 6, in module
  use_library('django', '1.0')
File /base/python_runtime/python_lib/versions/1/google/appengine/
   dist/_library.py, line 284, in use_library
  InstallLibrary(name, version, explicit=True)
File /base/python_runtime/python_lib/versions/1/google/appengine/
   dist/_library.py, line 243, in InstallLibrary
  CheckInstalledVersion(name, version, explicit=True)
File /base/python_runtime/python_lib/versions/1/google/appengine/
   dist/_library.py, line 190, in CheckInstalledVersion
  (name, desired_version, installed_version))
 
  Check if you already have 'django' into your sys.modules, you may need
  removed before import the other version
 
   --
   You received this message because you are subscribed to the Google
 Groups Google App Engine group.
   To post to this group, send email to google-appengine@googlegroups.com
 .
   To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
   For more options, visit this group athttp://
 groups.google.com/group/google-appengine?hl=en.
 
  --
  Rafael Sierrahttp://blog.rafaelsdm.com

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Django version conflicts - now also in production

2010-10-19 Thread Terje Dahl
Yeah.  Better check with your wife about that.  ;-)

The dev-server I can live with, but in production is serious.
And it has only starter happening recently.

I don't know how to formally log it as an error.  If you do, please do
it.
(And share what you did.)

On Oct 19, 9:40 pm, Ryan Weber ryan.we...@gmail.com wrote:
 I often see this error too (although almost exclusively on dev, not
 production). Still, it is pretty annoying to have to constantly be
 restarting my dev server each time. Pretty sure it happens whenever I'm
 messing around in the Development Console.

 Has this issue been formally logged, and if so, is there any plan to fix it
 anytime soon?  I sure would appreciate it...perhaps even willing to trade my
 first born son for it (I'd have to consult with the wife first though).



 On Tue, Oct 19, 2010 at 3:28 PM, Terje Dahl te...@terjedahl.no wrote:
  I don't.  But has it now been added by Google in GAE?
  Can I remove it from there?

  On Oct 18, 3:22 pm, Rafael Sierra rafaeljs...@gmail.com wrote:
   On Mon, Oct 18, 2010 at 8:47 AM, Terje Dahl te...@terjedahl.no wrote:
In my app I use Django version 1.0, in stead of the default version
0.96.

To do this I have the following statements in my application entry
point script (as per instructions):

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

This has from the start (the last 16 months)  often caused an error
which has forced me to restart my developer environment.
But I have thought nothing of it, as it has worked flawlessy in
production - until now.

Now, the last couple of weeks I have gotten the same type of error a
couple of times in production.
The only cure has been to quickly upload a new version and make it
default.  Luckily I have had non-altered code at hand so I could do
this quickly and easily.  But I might have been in the middle of
altering my code for a next version.  What then? ...  (Yes, yes.  I
know. Version controlled code repository.)  But I digress.

Anyways.  Why has this error now started appearing?
And what is to be done about it?!

Here is the error message from the log:

10-18 04:03AM 17.255
class 'google.appengine.dist._library.UnacceptableVersionError':
django 1.0 was requested, but 0.96.4.None is already in use
Traceback (most recent call last):
 File /base/data/home/apps/spraklab35/6.345421897971373021/main.py,
line 6, in module
   use_library('django', '1.0')
 File /base/python_runtime/python_lib/versions/1/google/appengine/
dist/_library.py, line 284, in use_library
   InstallLibrary(name, version, explicit=True)
 File /base/python_runtime/python_lib/versions/1/google/appengine/
dist/_library.py, line 243, in InstallLibrary
   CheckInstalledVersion(name, version, explicit=True)
 File /base/python_runtime/python_lib/versions/1/google/appengine/
dist/_library.py, line 190, in CheckInstalledVersion
   (name, desired_version, installed_version))

   Check if you already have 'django' into your sys.modules, you may need
   removed before import the other version

--
You received this message because you are subscribed to the Google
  Groups Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
  .
To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib 
  e...@googlegroups.com
  .
For more options, visit this group athttp://
  groups.google.com/group/google-appengine?hl=en.

   --
   Rafael Sierrahttp://blog.rafaelsdm.com

  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine group.
  To post to this group, send email to google-appeng...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib 
  e...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.