Infeasible
Status Update
Comments
da...@gmail.com <da...@gmail.com> #2
Ignore! Apparently this is WAI
pr...@google.com <pr...@google.com> #3
Indeed, but I think it's good feedback to improve the doc.
[Deleted User] <[Deleted User]> #5
[Comment deleted]
ma...@gmail.com <ma...@gmail.com> #6
Same issue again:
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/memcache/memcache_stub.py", line 320, in _internal_increment
new_value = max(old_value + delta, 0) % (2**64)
ZeroDivisionError: long division or modulo by zero
This error occurs when trying to increment memcache.
I've included a patch file for the 3 issues reported here.
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/memcache/memcache_stub.py", line 320, in _internal_increment
new_value = max(old_value + delta, 0) % (2**64)
ZeroDivisionError: long division or modulo by zero
This error occurs when trying to increment memcache.
I've included a patch file for the 3 issues reported here.
jo...@gmail.com <jo...@gmail.com> #7
Here is another spot I needed to patch
File: /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/django_1_2/django/http/multipartparser.py
line 88
-self._chunk_size = min([2**31-4] + possible_sizes)
+self._chunk_size = min([2L**31-4] + possible_sizes)
File: /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/django_1_2/django/http/multipartparser.py
line 88
-self._chunk_size = min([2**31-4] + possible_sizes)
+self._chunk_size = min([2L**31-4] + possible_sizes)
mm...@gmail.com <mm...@gmail.com> #8
I went ahead and find/replaced every instance of 2** to 2L** in the /google_appengine/google/appengine/ folder. Seems to work now.
pr...@google.com <pr...@google.com> #9
Another workaround is to use python2.7 (which should be the default on 10.8).
Do you have a special setup that causes you to uses python2.5 by default?
Do you have a special setup that causes you to uses python2.5 by default?
jo...@gmail.com <jo...@gmail.com> #10
one reason to run the dev server under python2.5 when developing for the python2.5 runtime is it prevents you from using python2.7 only features of python that wouldn't work when deployed.
am...@google.com <am...@google.com> #12
Hi,
We've decided not to take any action since this is an issue with the interpreter build on OSX 10.8. As a work around, you can specify using Python 2.6 or 2.7 in the launcher, or not specify a version in which case it will default to 2.7.
If you need to use Python 2.5, the changes to the SDK mentioned above can be applied locally.
We've decided not to take any action since this is an issue with the interpreter build on OSX 10.8. As a work around, you can specify using Python 2.6 or 2.7 in the launcher, or not specify a version in which case it will default to 2.7.
If you need to use Python 2.5, the changes to the SDK mentioned above can be applied locally.
gv...@gmail.com <gv...@gmail.com> #13
For anyone who still cares, Apple released OSX 10.8.3 with a rebuilt Python 2.5.6, and this particular issue is fixed!
$ python2.5
Python 2.5.6 (r256:88840, Oct 11 2012, 20:14:10)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 2**31-1
2147483647L
>>> ^D
$
$ python2.5
Python 2.5.6 (r256:88840, Oct 11 2012, 20:14:10)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 2**31-1
2147483647L
>>> ^D
$
Description
BadArgumentError: offset must not be negative
query.count() fails when no offset or limit is provided. In this case, limit is set to _MAX_INT_32, which is (improperly) calculated to a negative value in Python 2.5.6 on Mac OS X 10.8 (Mountain Lion).
See the following output from python 2.5.6 on Mac OS X 10.8:
>>> 2**31-1
-2147483649L
>>> 2L**31-1
2147483647L
Python 2.6.7 and 2.7.2 on Mac OS X 10.8 gives the following output:
>>> 2**31-1
2147483647
>>> 2L**31-1
2147483647L
The Python bug tracker (