tested commit (123), need to create folder databases on examples webapp 
(mkdir apps/examples/databases)
*phase 1 ([FAILED] loading examples)*
rm -rf /tmp/*
rm -rf web3py
git clone https://github.com/web2py/web3py
cd web3py
pip3 install -U -r requirements.txt
$ ./web3py-start apps
 _______  ____________  ____  ______  __
|  ____/ / / ____/ __ |/___ \/ __ \ \/ /
| |     / / /_  / /_/ /___/ / /_/ /\  /
| | /| / / __/ / __  //__  / ____/ / /
| |/ |/ / /___/ /_/ /___/ / / ____/ /
|___/|_/_____/_____/_____/_/ /_____/
It is still experimental...
Dashboard is at: http://127.0.0.1:8000/_dashboard
[OK] loaded _dashboard     
[OK] loaded _scaffold     
[FAILED] loading examples     
[OK] loaded myapp     
[OK] loaded superheroes     
[OK] loaded todo

*phase 2 go to http://127.0.0.1:8000/_dashboard via web browser click 
examples an got an error traceback*
Traceback (most recent call last):
  File "/Users/sugizo/learn/python/web3py/web3py/core.py", line 571, in 
import_apps
    module = importlib.machinery.SourceFileLoader(module_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/apps/examples/__init__.py", line 7
, in <module>
    db = DAL('sqlite://test', 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

*phase 3 check on terminal there is an error*
ERROR:root:Traceback (most recent call last):
  File "/Users/sugizo/learn/python/web3py/web3py/core.py", line 384, in 
wrapper
    ret = func(*func_args, **func_kwargs)
  File "/Users/sugizo/learn/python/web3py/apps/_dashboard/__init__.py", 
line 135, in api
    module = Reloader.MODULES[app_name]
KeyError: 'examples'
id= 1

*phase 4 refresh http://127.0.0.1:8000/_dashboard then recent tickets 
appears, now tickets can be deleted*

*there also a strange error traceback*
ERROR:root:Traceback (most recent call last):
  File "/Users/sugizo/learn/python/web3py/web3py/core.py", line 384, in 
wrapper
    ret = func(*func_args, **func_kwargs)
  File "/Users/sugizo/learn/python/web3py/apps/_dashboard/__init__.py", 
line 101, in packed
    appname = sanitize(appname)
  File "/Users/sugizo/learn/python/web3py/apps/_dashboard/utils.py", line 94
, in sanitize
    return re.sub('\W', '', re.sub('[\w-/.]+','_',name))
  File "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/re.py", 
line 192, in sub
    return _compile(pattern, flags).sub(repl, string, count)
  File "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/re.py", 
line 286, in _compile
    p = sre_compile.compile(pattern, flags)
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/sre_compile.py", 
line 764, in compile
    p = sre_parse.parse(p, flags)
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/sre_parse.py", 
line 930, in parse
    p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, 0)
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/sre_parse.py", 
line 426, in _parse_sub
    not nested and not items))
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/sre_parse.py", 
line 575, in _parse
    raise source.error(msg, len(this) + 1 + len(that))
re.error: bad character range \w-/ at position 1

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/a8c3f9ef-20c9-4ec1-a5a0-bd5afdbabd84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to