It is not finding the apps folder. You can pass the full path to 
wsgi(apps_folder='/full/path/to/apps')

On Thursday, 10 October 2019 22:38:53 UTC-7, Kevin Fonseca wrote:
>
> i am having problems when i tried to run PY4WEB 
> de error log is :
>
> 2019-10-10 13:23:10,259: Error running WSGI application
> 2019-10-10 13:23:10,277: FileNotFoundError: [Errno 2] No such file or 
> directory: 'apps/__init__.py'
> 2019-10-10 13:23:10,277:   File 
> "/var/www/kevin2811_pythonanywhere_com_wsgi.py", line 22, in <module>
> 2019-10-10 13:23:10,277:     from bottle_app import application
> 2019-10-10 13:23:10,278: 
> 2019-10-10 13:23:10,278:   File "/home/kevin2811/bottle_app.py", line 4, in 
> <module>
> 2019-10-10 13:23:10,278:     application = wsgi(password_file=password_file, 
> dashboard_mode='full')
> 2019-10-10 13:23:10,278: 
> 2019-10-10 13:23:10,278:   File 
> "/home/kevin2811/.local/lib/python3.7/site-packages/py4web/core.py", line 
> 771, in wsgi
> 2019-10-10 13:23:10,279:     Reloader.import_apps()
> 2019-10-10 13:23:10,279: 
> 2019-10-10 13:23:10,279:   File 
> "/home/kevin2811/.local/lib/python3.7/site-packages/py4web/core.py", line 
> 664, in import_apps
> 2019-10-10 13:23:10,279:     'apps', path).load_module()
> 2019-10-10 13:23:10,279: ***************************************************
> 2019-10-10 13:23:10,280: If you're seeing an import error and don't know why,
> 2019-10-10 13:23:10,281: we have a dedicated help page to help you debug: 
> 2019-10-10 13:23:10,281: 
> https://help.pythonanywhere.com/pages/DebuggingImportError/
> 2019-10-10 
> <https://help.pythonanywhere.com/pages/DebuggingImportError/2019-10-10> 
> 13:23:10,281: ***************************************************
> 2019-10-10 13:23:13,431: Error running WSGI application
> 2019-10-10 13:23:13,433: FileNotFoundError: [Errno 2] No such file or 
> directory: 'apps/__init__.py'
> 2019-10-10 13:23:13,434:   File 
> "/var/www/kevin2811_pythonanywhere_com_wsgi.py", line 22, in <module>
> 2019-10-10 13:23:13,435:     from bottle_app import application
> 2019-10-10 13:23:13,435: 
> 2019-10-10 13:23:13,436:   File "/home/kevin2811/bottle_app.py", line 4, in 
> <module>
> 2019-10-10 13:23:13,437:     application = wsgi(password_file=password_file, 
> dashboard_mode='full')
> 2019-10-10 13:23:13,438: 
> 2019-10-10 13:23:13,438:   File 
> "/home/kevin2811/.local/lib/python3.7/site-packages/py4web/core.py", line 
> 771, in wsgi
> 2019-10-10 13:23:13,441:     Reloader.import_apps()
> 2019-10-10 13:23:13,441: 
> 2019-10-10 13:23:13,442:   File 
> "/home/kevin2811/.local/lib/python3.7/site-packages/py4web/core.py", line 
> 664, in import_apps
> 2019-10-10 13:23:13,442:     'apps', path).load_module()
> 2019-10-10 13:23:13,442: ***************************************************
> 2019-10-10 13:23:13,443: If you're seeing an import error and don't know why,
> 2019-10-10 13:23:13,443: we have a dedicated help page to help you debug: 
> 2019-10-10 13:23:13,443: 
> https://help.pythonanywhere.com/pages/DebuggingImportError/
> 2019-10-10 
> <https://help.pythonanywhere.com/pages/DebuggingImportError/2019-10-10> 
> 13:23:13,444: ***************************************************
> 2019-10-10 13:23:13,895: Error running WSGI application
> 2019-10-10 13:23:13,896: FileNotFoundError: [Errno 2] No such file or 
> directory: 'apps/__init__.py'
> 2019-10-10 13:23:13,896:   File 
> "/var/www/kevin2811_pythonanywhere_com_wsgi.py", line 22, in <module>
> 2019-10-10 13:23:13,896:     from bottle_app import application
> 2019-10-10 13:23:13,897: 
> 2019-10-10 13:23:13,897:   File "/home/kevin2811/bottle_app.py", line 4, in 
> <module>
> 2019-10-10 13:23:13,898:     application = wsgi(password_file=password_file, 
> dashboard_mode='full')
> 2019-10-10 13:23:13,898: 
> 2019-10-10 13:23:13,898:   File 
> "/home/kevin2811/.local/lib/python3.7/site-packages/py4web/core.py", line 
> 771, in wsgi
> 2019-10-10 13:23:13,899:     Reloader.import_apps()
> 2019-10-10 13:23:13,899: 
> 2019-10-10 13:23:13,900:   File 
> "/home/kevin2811/.local/lib/python3.7/site-packages/py4web/core.py", line 
> 664, in import_apps
> 2019-10-10 13:23:13,900:     'apps', path).load_module()
> 2019-10-10 13:23:13,900: ***************************************************
> 2019-10-10 13:23:13,900: If you're seeing an import error and don't know why,
> 2019-10-10 13:23:13,900: we have a dedicated help page to help you debug: 
> 2019-10-10 13:23:13,901: 
> https://help.pythonanywhere.com/pages/DebuggingImportError/
> 2019-10-10 
> <https://help.pythonanywhere.com/pages/DebuggingImportError/2019-10-10> 
> 13:23:13,901: ***************************************************
>
>

-- 
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/502b1be5-ce4b-4155-b92b-aae5d0e4a31a%40googlegroups.com.

Reply via email to