test 'reload apps' on http://localhost:8000/_dashboard return an error on terminal and also on browser http://localhost:8000/_dashboard when click superheroes installed applications [FAILED] loading superheroes Traceback (most recent call last): File "/Users/sugizo/learn/python/web3py/web3py/core.py", line 577, in import_apps reloader.reload(module) File "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/reloader.py" , line 147, in reload _reload(m, set()) File "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/reloader.py" , line 135, in _reload imp.reload(m) File "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/imp.py" , line 314, in reload return importlib.reload(module) File "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/importlib/__init__.py" , line 169, in reload _bootstrap._exec(spec, module) File "<frozen importlib._bootstrap>", line 630, in _exec 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/superheroes/__init__.py", line 28, in <module> db.person.insert(name='Clark Kent', job='Journalist') File "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/objects.py" , line 762, in insert ret = self._db._adapter.insert(self, row.op_values()) File "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/base.py" , line 487, in insert raise e File "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/base.py" , line 482, in insert self.execute(query) File "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/__init__.py" , line 67, in wrap return f(*args, **kwargs) File "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/base.py" , line 413, in execute rv = self.cursor.execute(command, *args[1:], **kwargs) sqlite3.OperationalError: database is locked
the strange things also occured 1st. when first run server the route for apps : _scaffold and myapp are appears on http://localhost:8000/_dashboard, after hit 'reload apps' the route for apps are disappears. yet that still have the route for apps are _dashboard, examples, todo 2nd. yet the edited apps didn't take an effect *e.g.* 1. ./web3py-start apps 2. edit apps/myapp/controllers.py *change* def helloworld(): return dict(name=request.forms.get('name', '*visitor*')) *into* def helloworld(): return dict(name=request.forms.get('name', '*visitorsadf*' )) 3. hit 'reload apps' on http://localhost:8000/_dashboard 4. refresh http://localhost:8000/myapp/helloworld *expected result on browser:* Hello Dear visitorsadf *got result** on browser**:* Hello Dear visitor expected result 'Hello Dear visitorsadf' can be achieved after stop and start the server again 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/df94734c-ec34-426c-8a4a-f761f4832e33%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.