Hey Alex,
Thanks for the reply -- when I load in all of my modules (app.yaml and
loadandprocess.yaml), I now have this error when I go to the cron tab on
the devserver admin page:
Error loading cron.yaml:
Traceback (most recent call last):
File
"/home/adrian/google_appengine/google/appengine/tools/devappserver2/admin/cron_handler.py"
, line 42, in get
values['cronjobs'] = self._get_cron_jobs()
File
"/home/adrian/google_appengine/google/appengine/tools/devappserver2/admin/cron_handler.py"
, line 48, in _get_cron_jobs
cron_info = self._parse_cron_yaml()
File
"/home/adrian/google_appengine/google/appengine/tools/devappserver2/admin/cron_handler.py"
, line 80, in _parse_cron_yaml
cron_info = croninfo.LoadSingleCron(f)
File "/home/adrian/google_appengine/google/appengine/api/croninfo.py",line
151, in LoadSingleCron
listener.Parse(cron_info)
File "/home/adrian/google_appengine/google/appengine/api/yaml_listener.py"
, line 226, in Parse
self._HandleEvents(self._GenerateEventParameters(stream, loader_class))
File "/home/adrian/google_appengine/google/appengine/api/yaml_listener.py"
, line 177, in _HandleEvents
raise yaml_errors.EventError(e, event_object)
EventError: Unable to assign value 'America/New_York' to attribute
'timezone':
timezone 'America/New_York' is unknown
Any ideas? Thanks..
On Tuesday, January 7, 2014 7:15:40 PM UTC-5, alex wrote:
>
> > Aside from just having the [module name].yaml file in the directory with
> my default app.yaml file, do I need to do anything else to get the
> dev_server to recognize the additional module?
>
> Make sure you supply all *.yaml files to dev_appserver in cmdline args,
> e.g.:
>
> dev_appserver.py app.yaml module1.yaml module2.yaml dispatch.yaml
>
> Execute dev_appserver.py -h for more details.
>
> On Tuesday, January 7, 2014 9:19:12 PM UTC+1, Adrian wrote:
>>
>> Thank you for the suggestions... this is odd... my directory has a
>> "loadandprocess.yaml" module, with the following text:
>>
>> application: [my app name]
>> module: loadandprocess
>> version: one
>> runtime: python27
>> api_version: 1
>> threadsafe: true
>> instance_class: B4_1G
>> basic_scaling:
>> max_instances: 1
>>
>> handlers:
>> - url: /.*
>> script: loadAndProcess.application
>> login: admin
>>
>> But whenever I call
>> logging.info(modules.get_modules())
>>
>> It only recognizes my default application:
>>
>> INFO 2014-01-07 20:15:50,482 callLoadAndProcess.py:10] ['default']
>>
>> Aside from just having the [module name].yaml file in the directory with
>> my default app.yaml file, do I need to do anything else to get the
>> dev_server to recognize the additional module?
>>
>> Thanks!
>>
>>
>>
>>
>> On Tuesday, January 7, 2014 2:47:39 AM UTC-5, Vinny P wrote:
>>>
>>> On Mon, Jan 6, 2014 at 7:03 PM, Adrian <[email protected]> wrote:
>>>
>>>> File "/home/adrian/arapphost/callLoadAndProcess.py", line 10, in get
>>>> modules.start_module("loadandprocess","1")
>>>> File
>>>> "/home/adrian/google_appengine/google/appengine/api/modules/modules.py",
>>>> line 385, in start_module
>>>> rpc.get_result()
>>>>
>>>
>>>
>>> The traceback claims that the module and version you're referring to
>>> doesn't exist. Try to debug the problem by:
>>>
>>> 1. Sometimes modules throw up unusual errors when versions are expressed
>>> as pure numbers instead of a mix of letters and numbers. In
>>> loadandprocess.yaml, change *version: 1* to *version: one*. Remember to
>>> update *callLoadAndProcess.py* with the correct version (the
>>> *start_module* call).
>>>
>>> 2. You can use *get_modules()* and *get_versions(module=___)* in the
>>> *modules* package to enumerate all the modules and all the versions of
>>> a given module that App Engine recognizes within your application. App
>>> Engine may be recording the module under a different name or version.
>>>
>>> -----------------
>>> -Vinny P
>>> Technology & Media Advisor
>>> Chicago, IL
>>>
>>> App Engine Code Samples: http://www.learntogoogleit.com
>>>
>>>
>>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.