wrong thread. This is about pydal. Anyway. It looks for a folder apps/.service that do not exist. Try create that folder "mkdir apps/.service"
On Friday, 27 December 2019 14:37:34 UTC+1, JSalvat wrote: > > Hi Massimo, still getting errors: > > c:\wwwroot\py4web>python -m pip install -r requirements.txt --user > > .... Successfully installed pydal-20191227.1 > > > c:\wwwroot\py4web>python ./py4web-start.py apps > > ..... > Is still experimental... > > > Dashboard is at: http://127.0.0.1:8000/_dashboard > [ ] loading examples ... > [A[X] loaded examples > [ ] loading todo ... > [A[X] loaded todo > [ ] loading _dashboard ... > [A[FAILED] loading _dashboard > Traceback (most recent call last): > File "c:\wwwroot\py4web\py4web\core.py", line 826, in import_app > module_name, init > 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 "apps\_dashboard\__init__.py", line 24, in <module> > error_storage = ErrorStorage() > File "c:\wwwroot\py4web\py4web\core.py", line 701, in __init__ > Field("snapshot", "json"), > File > "C:\Users\salva\AppData\Roaming\Python\Python37\site-packages\pydal\base.py" > , line 656, in define_table > table = self.lazy_define_table(tablename, *fields, **kwargs) > File > "C:\Users\salva\AppData\Roaming\Python\Python37\site-packages\pydal\base.py" > , line 697, in lazy_define_table > polymodel=polymodel, > File > "C:\Users\salva\AppData\Roaming\Python\Python37\site-packages\pydal\adapters\base.py" > , line 913, in create_table > return self.migrator.create_table(*args, **kwargs) > File > "C:\Users\salva\AppData\Roaming\Python\Python37\site-packages\pydal\migrator.py" > , line 302, in create_table > table, > File > "C:\Users\salva\AppData\Roaming\Python\Python37\site-packages\pydal\migrator.py" > , line 540, in log > logfile = self.file_open(table._loggername, "ab") > File > "C:\Users\salva\AppData\Roaming\Python\Python37\site-packages\pydal\migrator.py" > , line 548, in file_open > fileobj = portalocker.LockedFile(filename, mode) > File > "C:\Users\salva\AppData\Roaming\Python\Python37\site-packages\pydal\contrib\portalocker.py" > , line 186, in __init__ > self.file = open_file(filename, mode.replace("w", "a")) > File > "C:\Users\salva\AppData\Roaming\Python\Python37\site-packages\pydal\contrib\portalocker.py" > , line 171, in open_file > f = open(filename, mode) > FileNotFoundError: [Errno 2] No such file or directory: > 'apps\\.service\\sql.log' > > > [ ] loading _default ... > > [A[X] loaded _default > [ ] loading _documentation ... > [A[X] loaded _documentation > [ ] loading _minimal ... > [A[X] loaded _minimal > [ ] loading _scaffold ... > [A[X] loaded _scaffold > Bottle v0.12.18 server starting up (using WSGIRefServer())... > Listening on http://127.0.0.1:8000/ > Hit Ctrl-C to quit. > > Thanks for all your prompt updatings ... > > > El viernes, 27 de diciembre de 2019, 11:40:07 (UTC+1), Massimo Di Pierro > escribió: >> >> I made some major changes to pydal: >> >> - internal refactoring in the db connection logic >> - dropped pg8000 support (never worked well) >> - reformatting >> >> The refactoring is a simplification of some pre-existing convoluted logic >> but it also makes it easy to use pydal with multi-threaded (non web2py) >> applications and other frameworks. Basically it automatically re-establish >> a connection when it detects a DB objects is been used in a different >> thread. >> >> Before you had to call db._adapter.reconnect() This is no no longer >> necessary. >> >> One side effect is that db = DAL(...) no longer establishes a connection, >> until the connection is actually used to run a query. >> >> Please report any problem. >> >> Massimo >> >> -- 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/626192ce-bb91-433a-b140-29e8afeb6029%40googlegroups.com.