did you by any chance update web2py using the "update" button on admin ? if 
so, and if you were running a rather old web2py instance, the updater 
probably left some files behind that shouldn't be there (mainly DAL 
structure with the new subpackage).
See what the standard folder structure in gluon/ is and watch out for any 
leftovers...

On Friday, June 5, 2015 at 11:59:17 AM UTC+2, weheh wrote:
>
> Alright. I took the error message over to another machine that has an 
> older version of web2py running. Looks pretty fundamental.
>
> CountFileError10_0_globals.pyAttributeError: type object 'DAL' has no 
> attribute 'Field' <http://127.0.0.1:8000/admin/errors/admin#>+ details 
> <http://127.0.0.1:8000/admin/ticket/admin/127.0.0.1.2015-06-05.02-55-08.02729837-2dc6-4e87-abb3-9875cf7b3015>
>
> 1.
> 2.
> 3.
> 4.
> 5.
> 6.
> 7.
> 8.
> 9.
> 10.
> 11.
>
> Traceback (most recent call last):
>   File "G:\web2py\gluon\restricted.py", line 227, in restricted
>     exec ccode in environment
>   File "G:\web2py\applications\myapp\models\0_0_globals.py", line 18, in 
> <module>
>     from gluon.tools import *
>   File "G:\web2py\gluon\custom_import.py", line 108, in custom_importer
>     return NATIVE_IMPORTER(name, globals, locals, fromlist, level)
>   File "G:\web2py\gluon\tools.py", line 50, in <module>
>     Field = DAL.Field
> AttributeError: type object 'DAL' has no attribute 'Field'
>
>

-- 
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