I found what seems to be a fix:

web2py/gluon/dal.py, 

line 15 is 
{
from pydal.objects import Row, Rows, Table, Query, Expression
}

replacing that with 
{
from pydal.objects import Row, Rows, Table, Query, *Set*, Expression

}

solves the problem


On Tuesday, May 19, 2015 at 11:00:46 PM UTC-5, Auden RovelleQuartz wrote:
>
> here is the traceback:
>
> {
> <type 'exceptions.ImportError'> cannot import name SetVersionweb2py™Version 
> 2.10.4-stable+timestamp.2015.04.26.15.11.54PythonPython 2.7.3: 
> /usr/bin/python (prefix: /usr)Traceback
>
> 1.
> 2.
> 3.
> 4.
> 5.
> 6.
> 7.
> 8.
> 9.
> 10.
> 11.
> 12.
> 13.
> 14.
> 15.
> 16.
>
> Traceback (most recent call last):
>   File "/home/www-data/web2py/gluon/restricted.py", line 227, in restricted
>     exec ccode in environment
>   File 
> "/home/www-data/web2py/applications/omniavx_cxn/controllers/valuecache.py" 
> <https://ovxdev.us/admin/default/edit/omniavx_cxn/controllers/valuecache.py>, 
> line 6897, in <module>
>   File "/home/www-data/web2py/gluon/globals.py", line 393, in <lambda>
>     self._caller = lambda f: f()
>   File 
> "/home/www-data/web2py/applications/omniavx_cxn/controllers/valuecache.py" 
> <https://ovxdev.us/admin/default/edit/omniavx_cxn/controllers/valuecache.py>, 
> line 6584, in browse_bacct_callback
>     from plugin_PowerGrid.CallBack import CallBack
>   File "/home/www-data/web2py/gluon/custom_import.py", line 95, in 
> custom_importer
>     return base_importer(pname, globals, locals, fromlist, level)
>   File "/home/www-data/web2py/gluon/custom_import.py", line 134, in __call__
>     result = NATIVE_IMPORTER(name, globals, locals, fromlist, level)
>   File "applications/omniavx_cxn/modules/plugin_PowerGrid/CallBack.py", line 
> 41, in <module>
>     from gluon.dal import Table ,Query, Set, Rows, Row
> ImportError: cannot import name Set
>
> }
>
> same code produces no error in earlier version of web2py
>
> is this a known issue with some workaround available?
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to