already tried define the length on field constructor and change web server 
because error above refer to rocket.py
*ref:*
https://groups.google.com/d/msg/web2py/2B9B9o151II/UyfREFmlBgAJ

*modules/table_test.py*
test = db.define_table('test', 
    Field('test', length = 255), 
    on_define = on_define_test)

$ python ~/learn/python/web2py/anyserver.py -s gevent -i 0.0.0.0 -p 8000
starting gevent on 0.0.0.0:8000...
Traceback (most recent call last):
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gevent/pywsgi.py"
, line 976, in handle_one_response
    self.run_application()
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gevent/pywsgi.py"
, line 924, in run_application
    self.process_result()
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gevent/pywsgi.py"
, line 910, in process_result
    self.write(data)
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gevent/pywsgi.py"
, line 757, in write
    self._write_with_headers(data)
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gevent/pywsgi.py"
, line 778, in _write_with_headers
    self._write(data)
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gevent/pywsgi.py"
, line 733, in _write
    header_str = b'%x\r\n' % len(data)
TypeError: object of type 'Field' has no len()
2019-07-03T10:07:08Z {'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '63729', 
'HTTP_HOST': 'localhost:8000', (hidden keys: 28)} failed with TypeError

btw, anyserver.py cant run gunicorn in 2.18.5, no error occured on 
terminal, but cant be access on browser

$ python ~/learn/python/web2py/anyserver.py -s gunicorn -i 0.0.0.0 -p 8000
starting gunicorn on 0.0.0.0:8000...
[2019-07-03 17:01:19 +0700] [71683] [INFO] Starting gunicorn 19.9.0
[2019-07-03 17:01:19 +0700] [71683] [INFO] Listening at: http://0.0.0.0:8000 
(71683)
[2019-07-03 17:01:19 +0700] [71683] [INFO] Using worker: sync
[2019-07-03 17:01:19 +0700] [71687] [INFO] Booting worker with pid: 71687

any way out ?

thx n best regards,
stifan

-- 
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/40c55b2d-0a29-420d-9453-bcf701dbb009%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to