I have solved my issue. It was a problem with mixed releases of web2py 
(rsync issues). Sorry for bothering.

On Friday, August 31, 2012 8:57:41 AM UTC+2, Daniel Gonzalez wrote:
>
> Sorry, I meant "model file"
>
> On Friday, August 31, 2012 8:54:24 AM UTC+2, Daniel Gonzalez wrote:
>>
>> python 2.7.2. Not in GAE.
>> I have several non-standard modules which my application uses, but the 
>> problem is happening in the module file, which if I understand correctly is 
>> one of the first files to be loaded by web2py.
>>
>> On Friday, August 31, 2012 8:40:37 AM UTC+2, Massimo Di Pierro wrote:
>>>
>>> All your problems in this and other threads are consistent with memory 
>>> corruption.
>>> Which python version are you using?
>>> Are you using any module which is not in the standard library?
>>> I do not think this is a web2py issue although web2py may trigger it.
>>>
>>>
>>> On Friday, August 31, 2012 1:20:55 AM UTC-5, Daniel Gonzalez wrote:
>>>>
>>>> I am having trouble understanding what is happening here:
>>>>
>>>> <type 'exceptions.AttributeError'> 'thread._local' object has no 
>>>> attribute 'request'
>>>>
>>>> Traceback (most recent call last):
>>>>   File "/home/gonvaled/tmp/web2py/gluon/restricted.py", line 209, 
>>>> inrestricted
>>>>     exec ccode in environment
>>>>   File 
>>>> "/home/gonvaled/tmp/web2py/applications/wavilon_portal/models/db.py",line 
>>>> 12, in <module>
>>>>     auth    = Auth(db)
>>>>   File "applications/wavilon_portal/modules/gluon/tools.py", line 1060, 
>>>> in __init__
>>>>     request = current.request
>>>> AttributeError: 'thread._local' object has no attribute 'request'
>>>>
>>>> I have not made many changes, and the application was working find 
>>>> before. I have moved recently to 2.0.3. Can this be related?
>>>> I have tried a minimal application which uses auth=Auth(db) and that is 
>>>> working fine.
>>>> How can I further investigate this problem?
>>>>
>>>> Thanks,
>>>> Daniel
>>>>
>>>

-- 



Reply via email to