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" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I believe that Karsten had it right, please implement his workaround.
>
> Thanks,
> Marzia
>
> On Tue, Sep 16, 2008 at 4:34 PM, royleban <[EMAIL PROTECTED]> wrote:
>
> > 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" <[EMAIL PROTECTED]> 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
>
> > > On Mon, Sep 15, 2008 at 7:31 PM, Tony Smith <[EMAIL PROTECTED]> wrote:
>
> > > > 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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to