GAE deployment problem with gluon.settings

37 views
Skip to first unread message

Francisco García

unread,
Mar 13, 2014, 7:56:32 AM3/13/14
to web...@googlegroups.com

Hello all,

I am trying to upload a Web2py application to GAE, as I use to do with other web2py apps (without problems).

I find the following error in GAE logs:

<type 'exceptions.AttributeError'>: 'module' object has no attribute 'settings'
Traceback (most recent call last):
  File "/base/data/home/apps/s~proy1/1.374388951966188608/gaehandler.py", line 47, in <module>
    from gluon.settings import global_settings
  File "/base/data/home/apps/s~proy1/1.374388951966188608/gluon/__init__.py", line 15, in <module>
    from globals import current
  File "/base/data/home/apps/s~proy1/1.374388951966188608/gluon/globals.py", line 24, in <module>
    from gluon.serializers import json, custom_json
  File "/base/data/home/apps/s~proy1/1.374388951966188608/gluon/serializers.py", line 10, in <module>
    from gluon.languages import lazyT
  File "/base/data/home/apps/s~proy1/1.374388951966188608/gluon/languages.py", line 30, in <module>
    import gluon.settings as settings

It looks like a circular error. I can't fix it.
I tried to upload it with Web2py-2.9.4.

Have you got some idea about the problem?.
Thank you in advance for your support.

Regards,
Francisco


Massimo Di Pierro

unread,
Mar 13, 2014, 9:41:34 AM3/13/14
to web...@googlegroups.com
I made a change in trunk about this. Can you please check it?

Francisco García Claramonte

unread,
Mar 14, 2014, 8:12:23 AM3/14/14
to web...@googlegroups.com
Hello Massimo,

2014-03-13 14:41 GMT+01:00 Massimo Di Pierro <massimo....@gmail.com>:
> I made a change in trunk about this. Can you please check it?
>
>
Thank you for your fast answer and patch.
I'll test it in next days and I'll tell to the list.

Thank you for your work. ;)
Regards,
Francisco
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/xZ55VKMwnS0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> web2py+un...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Francisco M. García Claramonte
Debian GNU/Linux Developer <fran...@debian.org>
GPG: public key ID 556ABA51
http://people.debian.org/~francisco/
http://garciac.es - <fran...@garciac.es>

Francisco García Claramonte

unread,
Mar 31, 2014, 1:46:16 PM3/31/14
to web...@googlegroups.com
Hello all,

The problem persists. But I fixed it upgrading to python 2.7.
With app.yaml parameters:

runtime: python27
threadsafe: true # true for WSGI & concurrent requests (Python 2.7 only)
default_expiration: "24h" # for static files

- url: .*
script: gaehandler.wsgiapp # WSGI (Python 2.7 only)
secure: optional

I suppose that it was my fault by using python 2.5.
Now it works perfectly.

Thanks.
Regards,
Francisco


2014-03-13 14:41 GMT+01:00 Massimo Di Pierro <massimo....@gmail.com>:
Reply all
Reply to author
Forward
0 new messages