Note: if the folder, translations, that is being complained about is added, 
the app still can't be reached, but there is no longer an exception 
reported: just the 404 page.

- Scott

On Saturday, May 11, 2019 at 9:55:34 PM UTC-4, 黄祥 wrote:
>
> $ ./web3py-start applications/
> Dashboard is at: http://127.0.0.1:8000/_dashboard
> Traceback (most recent call last):
>   File "/Users/sugizo/learn/python/web3py/web3py/core.py", line 560, in 
> import_apps
>     module = importlib.machinery.SourceFileLoader(app_name, init).
> load_module()
>   File "<frozen importlib._bootstrap_external>", line 407, in 
> _check_name_wrapper
>   File "<frozen importlib._bootstrap_external>", line 907, in load_module
>   File "<frozen importlib._bootstrap_external>", line 732, in load_module
>   File "<frozen importlib._bootstrap>", line 265, in _load_module_shim
>   File "<frozen importlib._bootstrap>", line 696, in _load
>   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/learn/python/web3py/applications/_dashboard/__init__.py", 
> line 12, in <module>
>     T = Translator(T_FOLDER)
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pluralize/__init__.py"
> , line 60, in __init__
>     self.load(folder)
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pluralize/__init__.py"
> , line 65, in load
>     for filename in os.listdir(folder):
> FileNotFoundError: [Errno 2] No such file or directory: 
> '/Users/sugizo/learn/python/web3py/applications/_dashboard/translations'
>
> Traceback (most recent call last):
>   File "/Users/sugizo/learn/python/web3py/web3py/core.py", line 560, in 
> import_apps
>     module = importlib.machinery.SourceFileLoader(app_name, init).
> load_module()
>   File "<frozen importlib._bootstrap_external>", line 407, in 
> _check_name_wrapper
>   File "<frozen importlib._bootstrap_external>", line 907, in load_module
>   File "<frozen importlib._bootstrap_external>", line 732, in load_module
>   File "<frozen importlib._bootstrap>", line 265, in _load_module_shim
>   File "<frozen importlib._bootstrap>", line 696, in _load
>   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/learn/python/web3py/applications/toys/__init__.py", 
> line 5, in <module>
>     db = DAL('sqlite://storage.db', folder=os.path.join(os.path.dirname(
> __file__), 'databases'))
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/base.py"
> , line 171, in __call__
>     obj = super(MetaDAL, cls).__call__(*args, **kwargs)
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/base.py"
> , line 477, in __init__
>     "Failure to connect, tried %d times:\n%s" % (attempts, tb)
> RuntimeError: Failure to connect, tried 5 times:
> Traceback (most recent call last):
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/base.py"
> , line 457, in __init__
>     self._adapter = adapter(**kwargs)
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/__init__.py"
> , line 39, in __call__
>     obj = super(AdapterMeta, cls).__call__(*args, **kwargs)
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/base.py"
> , line 369, in __init__
>     super(SQLAdapter, self).__init__(*args, **kwargs)
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/base.py"
> , line 53, in __init__
>     self.reconnect()
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/connection.py"
> , line 154, in reconnect
>     self.connection = self.connector()
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/sqlite.py"
> , line 42, in connector
>     return self.driver.Connection(self.dbpath, **self.driver_args)
> sqlite3.OperationalError: unable to open database file
>
> 127.0.0.1 - - [12/May/2019 08:44<span styl
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/956c3063-6f68-43c7-883f-e8af0f0e0294%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to