thanks for this test. very useful. fixed.

On Saturday, 8 June 2019 01:06:07 UTC-7, 黄祥 wrote:
>
> *steps*
>> apt install -y git python3-pip
>> pip3 install git+https://github.com/web2py/web3py --upgrade
>> git clone https://github.com/web2py/web3py
>> python3 -c "from pydal.validators import CRYPT; 
>> open('password.txt','w').write(str(CRYPT()('a' )[0] ) )"
>> web3py-start -p ./password.txt -a 0.0.0.0:8000 /web3py/apps
>>
>> *result*
>> [FAILED] loading myapp
>> Traceback (most recent call last):
>>   File "/usr/local/lib/python3.6/dist-packages/web3py/core.py", line 607, 
>> in import_apps
>>     module = importlib.machinery.SourceFileLoader(module_name, init).
>> load_module()
>>   File "<frozen importlib._bootstrap_external>", line 399, in 
>> _check_name_wrapper
>>   File "<frozen importlib._bootstrap_external>", line 823, in load_module
>>   File "<frozen importlib._bootstrap_external>", line 682, in load_module
>>   File "<frozen importlib._bootstrap>", line 265, in _load_module_shim
>>   File "<frozen importlib._bootstrap>", line 684, in _load
>>   File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
>>   File "<frozen importlib._bootstrap_external>", line 678, in exec_module
>>   File "<frozen importlib._bootstrap>", line 219, in 
>> _call_with_frames_removed
>>   File "/root/web3py/apps/myapp/__init__.py", line 1, in <module>
>>     from . import models
>> ModuleNotFoundError: No module named 'apps'
>>
>
> think error traceback is related with the path, but not sure, try it 
> different steps got the same result
> cd web3py/
> web3py-start -p /password.txt -a 0.0.0.0:8000 ./apps
>
> but when execute as written on github readme.md, it can work (notice it 
> execute the one ship with git, not the one installed on 
> /usr/local/bin/web3py-start)
> cd web3py/
> *./*web3py-start -p /password.txt -a 0.0.0.0:8000 ./apps
>
> 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/dfa6e461-ab3d-49ff-bc51-930c9e37e6bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to