Please use a different thread for this. On the other thread, can you show 
the query that cases this traceback?

On Monday, 28 March 2016 13:50:46 UTC-5, rif wrote:
>
> Unfortunately __init__ is present in my case. Moreover when I start the 
> app using local development server I get another stacktrace (pasted below).
>
>   File "/home/rif/Documents/webframeworks/firmoasa/gluon/restricted.py", 
> line 227, in restricted
>     exec ccode in environment
>   File 
> "/home/rif/Documents/webframeworks/firmoasa/applications/firmoasa/controllers/default.py",
>  
> line 87, in <module>
>   File "/home/rif/Documents/webframeworks/firmoasa/gluon/globals.py", line 
> 417, in <lambda>
>     self._caller = lambda f: f()
>   File "/home/rif/Documents/webframeworks/firmoasa/gluon/tools.py", line 
> 4250, in f
>     return action(*a, **b)
>   File 
> "/home/rif/Documents/webframeworks/firmoasa/applications/firmoasa/controllers/default.py",
>  
> line 8, in firme
>     form = crud.update(db.firma, a0, next=URL('firme'))
>   File "/home/rif/Documents/webframeworks/firmoasa/gluon/tools.py", line 
> 4899, in update
>     **attributes  # contains hidden
>   File "/home/rif/Documents/webframeworks/firmoasa/gluon/sqlhtml.py", line 
> 1295, in __init__
>     inp = self.widgets.options.widget(field, default)
>   File "/home/rif/Documents/webframeworks/firmoasa/gluon/sqlhtml.py", line 
> 313, in widget
>     options = requires[0].options()
>   File "/home/rif/Documents/webframeworks/firmoasa/gluon/validators.py", 
> line 2645, in _options
>     options = self.other.options(*args, **kwargs)
>   File "/home/rif/Documents/webframeworks/firmoasa/gluon/validators.py", 
> line 600, in options
>     self.build_set()
>   File "/home/rif/Documents/webframeworks/firmoasa/gluon/validators.py", 
> line 586, in build_set
>     records = self.dbset(table).select(*fields, **dd)
>   File 
> "/home/rif/Documents/webframeworks/firmoasa/gluon/packages/dal/pydal/objects.py",
>  
> line 2020, in select
>     return adapter.select(self.query, fields, attributes)
>   File 
> "/home/rif/Documents/webframeworks/firmoasa/gluon/packages/dal/pydal/adapters/google_adapters.py",
>  
> line 500, in select
>     (items, tablename, fields) = self.select_raw(query,fields,attributes)
>   File 
> "/home/rif/Documents/webframeworks/firmoasa/gluon/packages/dal/pydal/adapters/google_adapters.py",
>  
> line 390, in select_raw
>     filters = self.expand(query)
>   File 
> "/home/rif/Documents/webframeworks/firmoasa/gluon/packages/dal/pydal/adapters/google_adapters.py",
>  
> line 246, in expand
>     return expression.op(expression.first, expression.second)
>   File 
> "/home/rif/Documents/webframeworks/firmoasa/gluon/packages/dal/pydal/adapters/google_adapters.py",
>  
> line 262, in AND
>     first = self.expand(first)
>   File 
> "/home/rif/Documents/webframeworks/firmoasa/gluon/packages/dal/pydal/adapters/google_adapters.py",
>  
> line 246, in expand
>     return expression.op(expression.first, expression.second)
>   File 
> "/home/rif/Documents/webframeworks/firmoasa/gluon/packages/dal/pydal/adapters/google_adapters.py",
>  
> line 266, in AND
>     return ndb.AND(first, second)
>   File "/opt/google_appengine/google/appengine/ext/ndb/query.py", line 
> 574, in __new__
>     ' received a non-Node instance %r' % node)
> TypeError: ConjunctionNode() expects Node instances as arguments; received 
> a non-Node instance None
>
>
> luni, 28 martie 2016, 21:28:52 UTC+3, Dave S a scris:
>>
>>
>>
>> On Monday, March 28, 2016 at 2:52:02 AM UTC-7, rif wrote:
>>>
>>> After a long while of not updating one app running on gae I tried 2.14.3 
>>> and I have the error below. Can anyone suggest a fix?
>>>
>>> Thanks,
>>> -rif
>>>
>>>  Unable to store in FILE: 
>>> /base/data/home/apps/s~firmoasa/11.391689743844727003/applications/firmoasa/models/db.py
>>>
>>> Traceback (most recent call last):
>>>   File 
>>> "/base/data/home/apps/s~firmoasa/11.391689743844727003/gluon/restricted.py",
>>>  line 227, in restricted
>>>     exec ccode in environment
>>>   File 
>>> "/base/data/home/apps/s~firmoasa/11.391689743844727003/applications/firmoasa/models/db.py",
>>>  line 15, in <module>
>>>     session.connect(request, response, db = db)
>>>   File 
>>> "/base/data/home/apps/s~firmoasa/11.391689743844727003/gluon/globals.py", 
>>> line 935, in connect
>>>     session_data = pickle.loads(row.session_data)
>>>   File 
>>> "/base/data/home/runtimes/python27/python27_dist/lib/python2.7/pickle.py", 
>>> line 1382, in loads
>>>     return Unpickler(file).load()
>>>   File 
>>> "/base/data/home/runtimes/python27/python27_dist/lib/python2.7/pickle.py", 
>>> line 858, in load
>>>     dispatch[key](self)
>>>   File 
>>> "/base/data/home/runtimes/python27/python27_dist/lib/python2.7/pickle.py", 
>>> line 1090, in load_global
>>>     klass = self.find_class(module, name)
>>>   File 
>>> "/base/data/home/runtimes/python27/python27_dist/lib/python2.7/pickle.py", 
>>> line 1124, in find_class
>>>     __import__(module)
>>>   File 
>>> "/base/data/home/apps/s~firmoasa/11.391689743844727003/gluon/custom_import.py",
>>>  line 108, in custom_importer
>>>     return NATIVE_IMPORTER(name, globals, locals, fromlist, level)
>>> ImportError: No module named objects
>>>
>>>
>>
>> Reminds me of my problem last week.  I missed copying the application 
>> level __init__.py and that broke imports of modules.   Your traceback looks 
>> different from mine (I had an explicit import, for instance), but it is 
>> something to double check.
>>
>> /dps
>>
>>

-- 
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 the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to