[google-appengine] Re: Initializing datastore with binary data

2009-04-09 Thread an0

Now it works, so it seems a server side problem that has been fixed.

On Apr 8, 6:37 pm, an0  wrote:
> I met the same error. My python version is 2.5.4.
> Anyone know how to fix it?
>
> On Mar 7, 4:54 am, Pavel Byles  wrote:
>
> > I have no idea why I'm getting errors when I do:
>
> > >>> import helloworld
> > >>> from google.appengine.ext import db
> > >>> entries = helloworld.Greeting.all().order("-date").fetch(10)
>
> > and my app.yaml contains:
> > - url: /remote_api
> >   script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
> >   login: admin
>
> > The dev_appserver gives this error:
> > INFO     2009-03-06 20:51:38,287 dev_appserver_index.py] Updating /
> > home/wikid/Code/google_appengine_v2/caribbeanvisit/index.yaml
> > INFO     2009-03-06 20:51:50,570 dev_appserver.py] "POST /remote_api?
> > HTTP/1.1" 404 -
>
> > Here's the error:
> > Traceback (most recent call last):
> >   File "", line 1, in 
> >   File "/home/wikid/Code/google_appengine_v2/google/appengine/ext/db/
> > __init__.py", line 1390, in fetch
> >     raw = self._get_query().Get(limit, offset)
> >   File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
> > datastore.py", line 942, in Get
> >     return self._Run(limit, offset)._Next(limit)
> >   File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
> > datastore.py", line 1536, in _Next
> >     apiproxy_stub_map.MakeSyncCall('datastore_v3', 'Next', req,
> > result)
> >   File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
> > apiproxy_stub_map.py", line 68, in MakeSyncCall
> >     apiproxy.MakeSyncCall(service, call, request, response)
> >   File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
> > apiproxy_stub_map.py", line 240, in MakeSyncCall
> >     stub.MakeSyncCall(service, call, request, response)
> >   File "/home/wikid/Code/google_appengine_v2/google/appengine/ext/
> > remote_api/remote_api_stub.py", line 169, in MakeSyncCall
> >     handler(request, response)
> >   File "/home/wikid/Code/google_appengine_v2/google/appengine/ext/
> > remote_api/remote_api_stub.py", line 207, in _Dynamic_Next
> >     'remote_datastore', 'RunQuery', request, query_result)
> >   File "/home/wikid/Code/google_appengine_v2/google/appengine/ext/
> > remote_api/remote_api_stub.py", line 135, in MakeSyncCall
> >     request_pb.Encode()))
> >   File "/home/wikid/Code/google_appengine_v2/google/appengine/tools/
> > appengine_rpc.py", line 303, in Send
> >     f = self.opener.open(req)
> >   File "/usr/lib/python2.5/urllib2.py", line 387, in open
> >     response = meth(req, response)
> >   File "/usr/lib/python2.5/urllib2.py", line 498, in http_response
> >     'http', request, response, code, msg, hdrs)
> >   File "/usr/lib/python2.5/urllib2.py", line 425, in error
> >     return self._call_chain(*args)
> >   File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
> >     result = func(*args)
> >   File "/usr/lib/python2.5/urllib2.py", line 506, in
> > http_error_default
> >     raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
> > HTTPError: HTTP Error 404: Not Found
>
> > On Mar 4, 9:18 am, Nick Johnson  wrote:
>
> > > You can do what you want with remote_api and a little custom code. See
> > > the article here:http://code.google.com/appengine/articles/remote_api.html
>
> > > -Nick Johnson
>
> > > On Mar 4, 3:04 am, Pavel Byles  wrote:
>
> > > > Is there a way to initialize thedatastorewith binary data to be stored 
> > > > in
> > > > a blob field (without using a form)?
>
> > > > I have tried putting the data into a CSV file and uploading it using
> > > > bulkloader, but that didn't seem to work.
>
> > > > Any help would be appreciated.
> > > > --
> > > > -Pav
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Initializing datastore with binary data

2009-04-08 Thread an0

But my order seems right:
handlers:
- url: /remote_api
  script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
  login: admin
- url: /abc
  script: abc.py
  login: admin
- url: /.*
  script: abc.py


On Mar 18, 7:49 pm, Nick Johnson  wrote:
> You're probably putting the remote_api handler _after_ your catchall
> handler. What does your app.yaml file look like?
>
> -Nick Johnson
>
> On Mar 6, 8:54 pm, Pavel Byles  wrote:
>
> > I have no idea why I'm getting errors when I do:
>
> > >>> import helloworld
> > >>> from google.appengine.ext import db
> > >>> entries = helloworld.Greeting.all().order("-date").fetch(10)
>
> > and my app.yaml contains:
> > - url: /remote_api
> >   script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
> >   login: admin
>
> > The dev_appserver gives this error:
> > INFO     2009-03-06 20:51:38,287 dev_appserver_index.py] Updating /
> > home/wikid/Code/google_appengine_v2/caribbeanvisit/index.yaml
> > INFO     2009-03-06 20:51:50,570 dev_appserver.py] "POST /remote_api?
> > HTTP/1.1" 404 -
>
> > Here's the error:
> > Traceback (most recent call last):
> >   File "", line 1, in 
> >   File "/home/wikid/Code/google_appengine_v2/google/appengine/ext/db/
> > __init__.py", line 1390, in fetch
> >     raw = self._get_query().Get(limit, offset)
> >   File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
> > datastore.py", line 942, in Get
> >     return self._Run(limit, offset)._Next(limit)
> >   File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
> > datastore.py", line 1536, in _Next
> >     apiproxy_stub_map.MakeSyncCall('datastore_v3', 'Next', req,
> > result)
> >   File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
> > apiproxy_stub_map.py", line 68, in MakeSyncCall
> >     apiproxy.MakeSyncCall(service, call, request, response)
> >   File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
> > apiproxy_stub_map.py", line 240, in MakeSyncCall
> >     stub.MakeSyncCall(service, call, request, response)
> >   File 
> > "/home/wikid/Code/google_appengine_v2/google/appengine/ext/remote_api/remote_api_stub.py",
> >  line 169, in MakeSyncCall
> >     handler(request, response)
> >   File 
> > "/home/wikid/Code/google_appengine_v2/google/appengine/ext/remote_api/remote_api_stub.py",
> >  line 207, in _Dynamic_Next
> >     'remote_datastore', 'RunQuery', request, query_result)
> >   File 
> > "/home/wikid/Code/google_appengine_v2/google/appengine/ext/remote_api/remote_api_stub.py",
> >  line 135, in MakeSyncCall
> >     request_pb.Encode()))
> >   File "/home/wikid/Code/google_appengine_v2/google/appengine/tools/
> > appengine_rpc.py", line 303, in Send
> >     f = self.opener.open(req)
> >   File "/usr/lib/python2.5/urllib2.py", line 387, in open
> >     response = meth(req, response)
> >   File "/usr/lib/python2.5/urllib2.py", line 498, in http_response
> >     'http', request, response, code, msg, hdrs)
> >   File "/usr/lib/python2.5/urllib2.py", line 425, in error
> >     return self._call_chain(*args)
> >   File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
> >     result = func(*args)
> >   File "/usr/lib/python2.5/urllib2.py", line 506, in
> > http_error_default
> >     raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
> > HTTPError: HTTP Error 404: Not Found
>
> > On Mar 4, 9:18 am, Nick Johnson  wrote:
>
> > > You can do what you want withremote_apiand a little custom code. See
> > > the article here:http://code.google.com/appengine/articles/remote_api.html
>
> > > -Nick Johnson
>
> > > On Mar 4, 3:04 am, Pavel Byles  wrote:
>
> > > > Is there a way to initialize thedatastorewith binary data to be stored 
> > > > in
> > > > a blob field (without using a form)?
>
> > > > I have tried putting the data into a CSV file and uploading it using
> > > > bulkloader, but that didn't seem to work.
>
> > > > Any help would be appreciated.
> > > > --
> > > > -Pav
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Initializing datastore with binary data

2009-04-08 Thread an0

I met the same error. My python version is 2.5.4.
Anyone know how to fix it?

On Mar 7, 4:54 am, Pavel Byles  wrote:
> I have no idea why I'm getting errors when I do:
>
> >>> import helloworld
> >>> from google.appengine.ext import db
> >>> entries = helloworld.Greeting.all().order("-date").fetch(10)
>
> and my app.yaml contains:
> - url: /remote_api
>   script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
>   login: admin
>
> The dev_appserver gives this error:
> INFO     2009-03-06 20:51:38,287 dev_appserver_index.py] Updating /
> home/wikid/Code/google_appengine_v2/caribbeanvisit/index.yaml
> INFO     2009-03-06 20:51:50,570 dev_appserver.py] "POST /remote_api?
> HTTP/1.1" 404 -
>
> Here's the error:
> Traceback (most recent call last):
>   File "", line 1, in 
>   File "/home/wikid/Code/google_appengine_v2/google/appengine/ext/db/
> __init__.py", line 1390, in fetch
>     raw = self._get_query().Get(limit, offset)
>   File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
> datastore.py", line 942, in Get
>     return self._Run(limit, offset)._Next(limit)
>   File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
> datastore.py", line 1536, in _Next
>     apiproxy_stub_map.MakeSyncCall('datastore_v3', 'Next', req,
> result)
>   File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
> apiproxy_stub_map.py", line 68, in MakeSyncCall
>     apiproxy.MakeSyncCall(service, call, request, response)
>   File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
> apiproxy_stub_map.py", line 240, in MakeSyncCall
>     stub.MakeSyncCall(service, call, request, response)
>   File "/home/wikid/Code/google_appengine_v2/google/appengine/ext/
> remote_api/remote_api_stub.py", line 169, in MakeSyncCall
>     handler(request, response)
>   File "/home/wikid/Code/google_appengine_v2/google/appengine/ext/
> remote_api/remote_api_stub.py", line 207, in _Dynamic_Next
>     'remote_datastore', 'RunQuery', request, query_result)
>   File "/home/wikid/Code/google_appengine_v2/google/appengine/ext/
> remote_api/remote_api_stub.py", line 135, in MakeSyncCall
>     request_pb.Encode()))
>   File "/home/wikid/Code/google_appengine_v2/google/appengine/tools/
> appengine_rpc.py", line 303, in Send
>     f = self.opener.open(req)
>   File "/usr/lib/python2.5/urllib2.py", line 387, in open
>     response = meth(req, response)
>   File "/usr/lib/python2.5/urllib2.py", line 498, in http_response
>     'http', request, response, code, msg, hdrs)
>   File "/usr/lib/python2.5/urllib2.py", line 425, in error
>     return self._call_chain(*args)
>   File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
>     result = func(*args)
>   File "/usr/lib/python2.5/urllib2.py", line 506, in
> http_error_default
>     raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
> HTTPError: HTTP Error 404: Not Found
>
> On Mar 4, 9:18 am, Nick Johnson  wrote:
>
> > You can do what you want with remote_api and a little custom code. See
> > the article here:http://code.google.com/appengine/articles/remote_api.html
>
> > -Nick Johnson
>
> > On Mar 4, 3:04 am, Pavel Byles  wrote:
>
> > > Is there a way to initialize thedatastorewith binary data to be stored in
> > > a blob field (without using a form)?
>
> > > I have tried putting the data into a CSV file and uploading it using
> > > bulkloader, but that didn't seem to work.
>
> > > Any help would be appreciated.
> > > --
> > > -Pav
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Initializing datastore with binary data

2009-03-18 Thread Nick Johnson

You're probably putting the remote_api handler _after_ your catchall
handler. What does your app.yaml file look like?

-Nick Johnson

On Mar 6, 8:54 pm, Pavel Byles  wrote:
> I have no idea why I'm getting errors when I do:
>
> >>> import helloworld
> >>> from google.appengine.ext import db
> >>> entries = helloworld.Greeting.all().order("-date").fetch(10)
>
> and my app.yaml contains:
> - url: /remote_api
>   script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
>   login: admin
>
> The dev_appserver gives this error:
> INFO 2009-03-06 20:51:38,287 dev_appserver_index.py] Updating /
> home/wikid/Code/google_appengine_v2/caribbeanvisit/index.yaml
> INFO 2009-03-06 20:51:50,570 dev_appserver.py] "POST /remote_api?
> HTTP/1.1" 404 -
>
> Here's the error:
> Traceback (most recent call last):
>   File "", line 1, in 
>   File "/home/wikid/Code/google_appengine_v2/google/appengine/ext/db/
> __init__.py", line 1390, in fetch
> raw = self._get_query().Get(limit, offset)
>   File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
> datastore.py", line 942, in Get
> return self._Run(limit, offset)._Next(limit)
>   File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
> datastore.py", line 1536, in _Next
> apiproxy_stub_map.MakeSyncCall('datastore_v3', 'Next', req,
> result)
>   File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
> apiproxy_stub_map.py", line 68, in MakeSyncCall
> apiproxy.MakeSyncCall(service, call, request, response)
>   File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
> apiproxy_stub_map.py", line 240, in MakeSyncCall
> stub.MakeSyncCall(service, call, request, response)
>   File 
> "/home/wikid/Code/google_appengine_v2/google/appengine/ext/remote_api/remote_api_stub.py",
>  line 169, in MakeSyncCall
> handler(request, response)
>   File 
> "/home/wikid/Code/google_appengine_v2/google/appengine/ext/remote_api/remote_api_stub.py",
>  line 207, in _Dynamic_Next
> 'remote_datastore', 'RunQuery', request, query_result)
>   File 
> "/home/wikid/Code/google_appengine_v2/google/appengine/ext/remote_api/remote_api_stub.py",
>  line 135, in MakeSyncCall
> request_pb.Encode()))
>   File "/home/wikid/Code/google_appengine_v2/google/appengine/tools/
> appengine_rpc.py", line 303, in Send
> f = self.opener.open(req)
>   File "/usr/lib/python2.5/urllib2.py", line 387, in open
> response = meth(req, response)
>   File "/usr/lib/python2.5/urllib2.py", line 498, in http_response
> 'http', request, response, code, msg, hdrs)
>   File "/usr/lib/python2.5/urllib2.py", line 425, in error
> return self._call_chain(*args)
>   File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
> result = func(*args)
>   File "/usr/lib/python2.5/urllib2.py", line 506, in
> http_error_default
> raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
> HTTPError: HTTP Error 404: Not Found
>
> On Mar 4, 9:18 am, Nick Johnson  wrote:
>
> > You can do what you want withremote_apiand a little custom code. See
> > the article here:http://code.google.com/appengine/articles/remote_api.html
>
> > -Nick Johnson
>
> > On Mar 4, 3:04 am, Pavel Byles  wrote:
>
> > > Is there a way to initialize thedatastorewith binary data to be stored in
> > > a blob field (without using a form)?
>
> > > I have tried putting the data into a CSV file and uploading it using
> > > bulkloader, but that didn't seem to work.
>
> > > Any help would be appreciated.
> > > --
> > > -Pav
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Initializing datastore with binary data

2009-03-10 Thread hideki

I got same issue but it was fixed after I deployed my project with

- url: /remote_api
  script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
  login: admin

On Mar 8, 10:29 am, Pavel Byles  wrote:
> When I follow the article 
> from:http://code.google.com/appengine/articles/bulkload.html
> I get this error:
>
> INFO     2009-03-08 11:22:39,197 bulkload_client.py] Starting import;
> maximum 10 entities per post
> INFO     2009-03-08 11:22:39,210 bulkload_client.py] Importing 2
> entities in 28 bytes
> ERROR    2009-03-08 11:22:42,421 bulkload_client.py] An error occurred
> while importing: Received code 404: Not Found
>
> 
> 
> 404 Not Found
> 
> 
> Error: Not Found
> The requested URL /load was not found on this
> server.
> 
> 
>
> ERROR    2009-03-08 11:22:42,421 bulkload_client.py] Import failed
>
> And dev_appserver.py gives this error:
> INFO     2009-03-08 16:27:22,004 dev_appserver.py] "POST /load HTTP/
> 1.1" 404 -
>
> Any help would be appreciated.
>
> On Mar 6, 3:54 pm, Pavel Byles  wrote:
>
> > I have no idea why I'm getting errors when I do:
>
> > >>> import helloworld
> > >>> from google.appengine.ext import db
> > >>> entries = helloworld.Greeting.all().order("-date").fetch(10)
>
> > and my app.yaml contains:
> > - url: /remote_api
> >   script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
> >   login: admin
>
> > The dev_appserver gives this error:
> > INFO     2009-03-06 20:51:38,287 dev_appserver_index.py] Updating /
> > home/wikid/Code/google_appengine_v2/caribbeanvisit/index.yaml
> > INFO     2009-03-06 20:51:50,570 dev_appserver.py] "POST /remote_api?
> > HTTP/1.1" 404 -
>
> > Here's the error:
> > Traceback (most recent call last):
> >   File "", line 1, in 
> >   File "/home/wikid/Code/google_appengine_v2/google/appengine/ext/db/
> > __init__.py", line 1390, in fetch
> >     raw = self._get_query().Get(limit, offset)
> >   File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
> > datastore.py", line 942, in Get
> >     return self._Run(limit, offset)._Next(limit)
> >   File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
> > datastore.py", line 1536, in _Next
> >     apiproxy_stub_map.MakeSyncCall('datastore_v3', 'Next', req,
> > result)
> >   File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
> > apiproxy_stub_map.py", line 68, in MakeSyncCall
> >     apiproxy.MakeSyncCall(service, call, request, response)
> >   File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
> > apiproxy_stub_map.py", line 240, in MakeSyncCall
> >     stub.MakeSyncCall(service, call, request, response)
> >   File "/home/wikid/Code/google_appengine_v2/google/appengine/ext/
> > remote_api/remote_api_stub.py", line 169, in MakeSyncCall
> >     handler(request, response)
> >   File "/home/wikid/Code/google_appengine_v2/google/appengine/ext/
> > remote_api/remote_api_stub.py", line 207, in _Dynamic_Next
> >     'remote_datastore', 'RunQuery', request, query_result)
> >   File "/home/wikid/Code/google_appengine_v2/google/appengine/ext/
> > remote_api/remote_api_stub.py", line 135, in MakeSyncCall
> >     request_pb.Encode()))
> >   File "/home/wikid/Code/google_appengine_v2/google/appengine/tools/
> > appengine_rpc.py", line 303, in Send
> >     f = self.opener.open(req)
> >   File "/usr/lib/python2.5/urllib2.py", line 387, in open
> >     response = meth(req, response)
> >   File "/usr/lib/python2.5/urllib2.py", line 498, in http_response
> >     'http', request, response, code, msg, hdrs)
> >   File "/usr/lib/python2.5/urllib2.py", line 425, in error
> >     return self._call_chain(*args)
> >   File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
> >     result = func(*args)
> >   File "/usr/lib/python2.5/urllib2.py", line 506, in
> > http_error_default
> >     raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
> > HTTPError: HTTP Error 404: Not Found
>
> > On Mar 4, 9:18 am, Nick Johnson  wrote:
>
> > > You can do what you want with remote_api and a little custom code. See
> > > the article here:http://code.google.com/appengine/articles/remote_api.html
>
> > > -Nick Johnson
>
> > > On Mar 4, 3:04 am, Pavel Byles  wrote:
>
> > > > Is there a way to initialize thedatastorewith binary data to be stored 
> > > > in
> > > > a blob field (without using a form)?
>
> > > > I have tried putting the data into a CSV file and uploading it using
> > > > bulkloader, but that didn't seem to work.
>
> > > > Any help would be appreciated.
> > > > --
> > > > -Pav

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Initializing datastore with binary data

2009-03-08 Thread Pavel Byles

When I follow the article from: 
http://code.google.com/appengine/articles/bulkload.html
I get this error:

INFO 2009-03-08 11:22:39,197 bulkload_client.py] Starting import;
maximum 10 entities per post
INFO 2009-03-08 11:22:39,210 bulkload_client.py] Importing 2
entities in 28 bytes
ERROR2009-03-08 11:22:42,421 bulkload_client.py] An error occurred
while importing: Received code 404: Not Found



404 Not Found


Error: Not Found
The requested URL /load was not found on this
server.



ERROR2009-03-08 11:22:42,421 bulkload_client.py] Import failed

And dev_appserver.py gives this error:
INFO 2009-03-08 16:27:22,004 dev_appserver.py] "POST /load HTTP/
1.1" 404 -

Any help would be appreciated.

On Mar 6, 3:54 pm, Pavel Byles  wrote:
> I have no idea why I'm getting errors when I do:
>
> >>> import helloworld
> >>> from google.appengine.ext import db
> >>> entries = helloworld.Greeting.all().order("-date").fetch(10)
>
> and my app.yaml contains:
> - url: /remote_api
>   script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
>   login: admin
>
> The dev_appserver gives this error:
> INFO     2009-03-06 20:51:38,287 dev_appserver_index.py] Updating /
> home/wikid/Code/google_appengine_v2/caribbeanvisit/index.yaml
> INFO     2009-03-06 20:51:50,570 dev_appserver.py] "POST /remote_api?
> HTTP/1.1" 404 -
>
> Here's the error:
> Traceback (most recent call last):
>   File "", line 1, in 
>   File "/home/wikid/Code/google_appengine_v2/google/appengine/ext/db/
> __init__.py", line 1390, in fetch
>     raw = self._get_query().Get(limit, offset)
>   File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
> datastore.py", line 942, in Get
>     return self._Run(limit, offset)._Next(limit)
>   File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
> datastore.py", line 1536, in _Next
>     apiproxy_stub_map.MakeSyncCall('datastore_v3', 'Next', req,
> result)
>   File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
> apiproxy_stub_map.py", line 68, in MakeSyncCall
>     apiproxy.MakeSyncCall(service, call, request, response)
>   File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
> apiproxy_stub_map.py", line 240, in MakeSyncCall
>     stub.MakeSyncCall(service, call, request, response)
>   File "/home/wikid/Code/google_appengine_v2/google/appengine/ext/
> remote_api/remote_api_stub.py", line 169, in MakeSyncCall
>     handler(request, response)
>   File "/home/wikid/Code/google_appengine_v2/google/appengine/ext/
> remote_api/remote_api_stub.py", line 207, in _Dynamic_Next
>     'remote_datastore', 'RunQuery', request, query_result)
>   File "/home/wikid/Code/google_appengine_v2/google/appengine/ext/
> remote_api/remote_api_stub.py", line 135, in MakeSyncCall
>     request_pb.Encode()))
>   File "/home/wikid/Code/google_appengine_v2/google/appengine/tools/
> appengine_rpc.py", line 303, in Send
>     f = self.opener.open(req)
>   File "/usr/lib/python2.5/urllib2.py", line 387, in open
>     response = meth(req, response)
>   File "/usr/lib/python2.5/urllib2.py", line 498, in http_response
>     'http', request, response, code, msg, hdrs)
>   File "/usr/lib/python2.5/urllib2.py", line 425, in error
>     return self._call_chain(*args)
>   File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
>     result = func(*args)
>   File "/usr/lib/python2.5/urllib2.py", line 506, in
> http_error_default
>     raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
> HTTPError: HTTP Error 404: Not Found
>
> On Mar 4, 9:18 am, Nick Johnson  wrote:
>
> > You can do what you want with remote_api and a little custom code. See
> > the article here:http://code.google.com/appengine/articles/remote_api.html
>
> > -Nick Johnson
>
> > On Mar 4, 3:04 am, Pavel Byles  wrote:
>
> > > Is there a way to initialize thedatastorewith binary data to be stored in
> > > a blob field (without using a form)?
>
> > > I have tried putting the data into a CSV file and uploading it using
> > > bulkloader, but that didn't seem to work.
>
> > > Any help would be appreciated.
> > > --
> > > -Pav
>
>
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Initializing datastore with binary data

2009-03-06 Thread Pavel Byles

I have no idea why I'm getting errors when I do:
>>> import helloworld
>>> from google.appengine.ext import db
>>> entries = helloworld.Greeting.all().order("-date").fetch(10)

and my app.yaml contains:
- url: /remote_api
  script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
  login: admin

The dev_appserver gives this error:
INFO 2009-03-06 20:51:38,287 dev_appserver_index.py] Updating /
home/wikid/Code/google_appengine_v2/caribbeanvisit/index.yaml
INFO 2009-03-06 20:51:50,570 dev_appserver.py] "POST /remote_api?
HTTP/1.1" 404 -

Here's the error:
Traceback (most recent call last):
  File "", line 1, in 
  File "/home/wikid/Code/google_appengine_v2/google/appengine/ext/db/
__init__.py", line 1390, in fetch
raw = self._get_query().Get(limit, offset)
  File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
datastore.py", line 942, in Get
return self._Run(limit, offset)._Next(limit)
  File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
datastore.py", line 1536, in _Next
apiproxy_stub_map.MakeSyncCall('datastore_v3', 'Next', req,
result)
  File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
apiproxy_stub_map.py", line 68, in MakeSyncCall
apiproxy.MakeSyncCall(service, call, request, response)
  File "/home/wikid/Code/google_appengine_v2/google/appengine/api/
apiproxy_stub_map.py", line 240, in MakeSyncCall
stub.MakeSyncCall(service, call, request, response)
  File "/home/wikid/Code/google_appengine_v2/google/appengine/ext/
remote_api/remote_api_stub.py", line 169, in MakeSyncCall
handler(request, response)
  File "/home/wikid/Code/google_appengine_v2/google/appengine/ext/
remote_api/remote_api_stub.py", line 207, in _Dynamic_Next
'remote_datastore', 'RunQuery', request, query_result)
  File "/home/wikid/Code/google_appengine_v2/google/appengine/ext/
remote_api/remote_api_stub.py", line 135, in MakeSyncCall
request_pb.Encode()))
  File "/home/wikid/Code/google_appengine_v2/google/appengine/tools/
appengine_rpc.py", line 303, in Send
f = self.opener.open(req)
  File "/usr/lib/python2.5/urllib2.py", line 387, in open
response = meth(req, response)
  File "/usr/lib/python2.5/urllib2.py", line 498, in http_response
'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.5/urllib2.py", line 425, in error
return self._call_chain(*args)
  File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
result = func(*args)
  File "/usr/lib/python2.5/urllib2.py", line 506, in
http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found

On Mar 4, 9:18 am, Nick Johnson  wrote:
> You can do what you want with remote_api and a little custom code. See
> the article here:http://code.google.com/appengine/articles/remote_api.html
>
> -Nick Johnson
>
> On Mar 4, 3:04 am, Pavel Byles  wrote:
>
> > Is there a way to initialize thedatastorewith binary data to be stored in
> > a blob field (without using a form)?
>
> > I have tried putting the data into a CSV file and uploading it using
> > bulkloader, but that didn't seem to work.
>
> > Any help would be appreciated.
> > --
> > -Pav
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Initializing datastore with binary data

2009-03-04 Thread Pavel Byles

Thanks Nick.

I will definitely try this.

-Pavel

On Mar 4, 9:18 am, Nick Johnson  wrote:
> You can do what you want with remote_api and a little custom code. See
> the article here:http://code.google.com/appengine/articles/remote_api.html
>
> -Nick Johnson
>
> On Mar 4, 3:04 am, Pavel Byles  wrote:
>
> > Is there a way to initialize the datastore with binary data to be stored in
> > a blob field (without using a form)?
>
> > I have tried putting the data into a CSV file and uploading it using
> > bulkloader, but that didn't seem to work.
>
> > Any help would be appreciated.
> > --
> > -Pav
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Initializing datastore with binary data

2009-03-04 Thread Nick Johnson

You can do what you want with remote_api and a little custom code. See
the article here: http://code.google.com/appengine/articles/remote_api.html

-Nick Johnson

On Mar 4, 3:04 am, Pavel Byles  wrote:
> Is there a way to initialize the datastore with binary data to be stored in
> a blob field (without using a form)?
>
> I have tried putting the data into a CSV file and uploading it using
> bulkloader, but that didn't seem to work.
>
> Any help would be appreciated.
> --
> -Pav
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---