Development Console - Datastore Error

4 views
Skip to first unread message

Tony Smith

unread,
Sep 15, 2008, 10:31:57 PM9/15/08
to Google App Engine
Hi,

I just upgraded to GoogleAppEngine_1.1.3 and when I go into the
Development Console/datastore I get these errors.
I only get them if I have something in the Datastore. I tried deleting
everything and recreating and I still get these errors. If I don't
have anything in the datastore, then I get a regular page saying that
I need to create the entities before viewing them.
Is it a bug in the latest release?

Thanks,
Tony

http://localhost:8080/_ah/admin/datastore
---

Traceback (most recent call last):
File "C:\Program Files (x86)\Google\google_appengine\google\appengine
\ext\webapp\__init__.py", line 496, in __call__
handler.get(*groups)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine
\ext\admin\__init__.py", line 558, in get
'kinds': self.get_kinds(),
File "C:\Program Files (x86)\Google\google_appengine\google\appengine
\ext\admin\__init__.py", line 485, in get_kinds
schema = datastore_admin.GetSchema()
File "C:\Program Files (x86)\Google\google_appengine\google\appengine
\api\datastore_admin.py", line 58, in GetSchema
_Call('GetSchema', req, resp)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine
\api\datastore_admin.py", line 124, in _Call
apiproxy_stub_map.MakeSyncCall('datastore_v3', call, req, resp)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine
\api\apiproxy_stub_map.py", line 46, in MakeSyncCall
stub.MakeSyncCall(service, call, request, response)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine
\api\datastore_file_stub.py", line 263, in MakeSyncCall
(getattr(self, "_Dynamic_" + call))(request, response)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine
\api\datastore_file_stub.py", line 626, in _Dynamic_GetSchema
value_pb.set_doublevalue(float('-inf'))
ValueError: invalid literal for float(): -inf

Karsten Petersen

unread,
Sep 16, 2008, 9:19:51 AM9/16/08
to google-a...@googlegroups.com
float('-inf') works on Linux/OS X but not on Windows, this was
probably not noticed during testing. Please try again after changing
datastore_file_stub.py like this:

old:
value_pb.set_doublevalue(float('-inf'))

new:
value_pb.set_doublevalue(-1e300000)

If this works it might be worth to file a bug...

Karsten

Marzia Niccolai

unread,
Sep 16, 2008, 1:56:45 PM9/16/08
to google-a...@googlegroups.com
Hi Tony,

This specific line of code wasn't changed from 1.1.2 to 1.1.3, so I think something more may be going on here.  Can you provide the data model you are using and the type of data being stored so that I can try to replicate the issue?

Also, what version of Windows and Python are you using?

Thanks,
Marzia

royleban

unread,
Sep 16, 2008, 7:34:54 PM9/16/08
to Google App Engine
I'm having the same issue since upgrading to 1.1.3 (from 1.1.0).
Windows XP Pro, Python 2.5.2.

On Sep 16, 10:56 am, "Marzia Niccolai" <ma...@google.com> wrote:
> Hi Tony,
>
> This specific line of code wasn't changed from 1.1.2 to 1.1.3, so I think
> something more may be going on here.  Can you provide the data model you are
> using and the type of data being stored so that I can try to replicate the
> issue?
>
> Also, what version of Windows and Python are you using?
>
> Thanks,
> Marzia
>

Marzia Niccolai

unread,
Sep 16, 2008, 9:30:13 PM9/16/08
to google-a...@googlegroups.com
Hi,

I believe that Karsten had it right, please implement his workaround.

Thanks,
Marzia

Roy Leban

unread,
Sep 18, 2008, 2:33:59 AM9/18/08
to Google App Engine
Yup, that fixes it. I'm going to add a little extra explanation to
help others who have this problem search for this thread.

It appears that the problem only occurs when you have a model with
floating point values and/or Point values. When this is the case, any
attempt to load the Development console will get a Python error. There
are three lines in datastore_file_stub.py that should be changed,
replacing "float('-inf')" with "-1e300000".

No idea why this didn't cause a problem earlier, but in my own case,
it's possible I hadn't used the console since adding float values to
my model.

-Roy.

On Sep 16, 6:30 pm, "Marzia Niccolai" <ma...@google.com> wrote:
> Hi,
>
> I believe that Karsten had it right, please implement his workaround.
>
> Thanks,
> Marzia
>

John

unread,
Sep 19, 2008, 6:41:47 PM9/19/08
to Google App Engine
Thanks,

I followed Marzias recommendation, and changed the line, (also deleted
the pyc file) and restarted the local server and it now I can view my
admin console again.
I'm running win XP.
Reply all
Reply to author
Forward
0 new messages