Hello
Just trying to teach someone some web2py stuff from the web2py book and i
got stuck at the beginning.
My friend computer returns this error.
The same code in my pc is ok
def first():
    form = SQLFORM.factory(Field('visitor_name',
                                 label='what is your name?',
                                 requires=IS_NOT_EMPTY()))


any help ?

Regards
Error ticket for "teste" Ticket ID

127.0.0.1.2022-05-12.16-13-34.312f7acc-fcaf-4e3b-baff-b070321e1706
<class 'TypeError'> __init__() got an unexpected keyword argument 'requires'
Versão
web2py™ Version 2.22.3-stable+timestamp.2022.02.15.15.14.38
Python Python 3.8.3rc1:
C:\Users\convidado\AppData\Local\Programs\Python\Python38-32\python.exe
(prefix: C:\Users\convidado\AppData\Local\Programs\Python\Python38-32)
Traceback

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.

Traceback (most recent call last):
  File "C:\web2py\gluon\restricted.py", line 219, in restricted
    exec(ccode, environment)
  File "C:/web2py/applications/teste/controllers/teste.py"
<http://127.0.0.1:8000/admin/default/edit/teste/controllers/teste.py>,
line 47, in <module>
  File "C:\web2py\gluon\globals.py", line 430, in <lambda>
    self._caller = lambda f: f()
  File "C:/web2py/applications/teste/controllers/teste.py"
<http://127.0.0.1:8000/admin/default/edit/teste/controllers/teste.py>,
line 34, in primeiro
    form = SQLFORM.factory(Field('visitor_name',requires=IS_NOT_EMPTY()))
TypeError: __init__() got an unexpected keyword argument 'requires'



>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAEM0BxMfiChe5%2Bb4x8%3DL9S94eEodvTGU4qi-KD94AAFy43%2BS8A%40mail.gmail.com.

Reply via email to