You have an old version of pydal. The new pydal may not be on pypi, may
need to get it from gitbub. I will post it on pypi over the week-end
On Saturday, 13 April 2019 02:58:46 UTC-7, 黄祥 wrote:
>
> *test the latest commit*
> $ python web3py.py applications/
> Traceback (most recent call last):
> File "web3py.py", line 438, in import_apps
> module = importlib.import_module(app_name)
> File
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/importlib/__init__.py",
>
> line 127, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
> File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
> File "<frozen importlib._bootstrap>", line 983, in _find_and_load
> File "<frozen importlib._bootstrap>", line 967, in
> _find_and_load_unlocked
> File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 728, in exec_module
> File "<frozen importlib._bootstrap>", line 219, in
> _call_with_frames_removed
> File
> "/Users/sugizo/project/python/web3py/applications/examples/__init__.py",
> line 3, in <module>
> from pydal.validators import IS_NOT_EMPTY, IS_INT_IN_RANGE
> File
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/reloader.py",
>
> line 158, in _import
> base = _baseimport(name, globals, locals, fromlist, level)
> ModuleNotFoundError: No module named 'pydal.validators'
>
> *trying to access change *
> web3py/applications/myapp/controllers.py
> def helloworld(): return dict(name=request.forms.get('name', 'visitor')) #
> change visitor into another value e.g. guest, ended must restart server to
> take effect in browser http://localhost:8000/myapp/helloworld, is it
> normal ?
> in another thread (web3py again) report about new app created must restart
> server, in this test, the app called myapp already loaded in web server,
> just change the value, must restart the server too, not sure if this
> acceptable behaviour
>
> *cant access *
> http://localhost:8000/examples/oops
> http://localhost:8000/examples/form
> http://localhost:8000/examples/
>
> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.