Please try delete apps and then rerun "py4web-start apps". I suspect you have an older _dashboard. You may also try delete only apps/_dashboard and run "py4web-start -c apps". It will reinstall missing apps only.
On Wednesday, 25 December 2019 21:30:42 UTC+1, Jim S wrote: > > Massimo > > I did the same, > > python3 -m pip install --upgrade py4web > py4web-start apps > > When I started, it asked for my password. When I tried in the the login > page I again got the message about the env var not being set. If I set the > env var to the same as my password (mine is only 2 characters, is that a > problem?), I have the same results as in the original message. > > I get the same behavior on my work computer and my home computer. Both > running Ubuntu 19.10 > > -Jim > > On Wednesday, December 25, 2019 at 12:45:06 PM UTC-6, Massimo Di Pierro > wrote: >> >> I posted a new version. Should solve this problem. Please let me know. >> >> On Thursday, 19 December 2019 17:14:20 UTC+1, Jim S wrote: >>> >>> python3 -m pip install --upgrade py4web >>> py4web-start apps >>> >>> Entered my password >>> >>> Went to http://127.0.0.1:8000/_dashboard >>> >>> I am asked for a password - no matter what I do, I can't get past this >>> page. >>> >>> At first I was getting this error: >>> >>> ERROR:root:Traceback (most recent call last): >>> File "/home/jim/.local/lib/python3.7/site-packages/py4web/core.py", >>> line 473, in wrapper >>> ret = func(*func_args, **func_kwargs) >>> File "/home/jim/.local/lib/python3.7/site-packages/py4web/core.py", >>> line 439, in wrapper >>> ret = func(*args, **kwargs) >>> File "apps/_dashboard/__init__.py", line 56, in login >>> valid = password and CRYPT()(password)[0] == os.environ[ >>> 'PY4WEB_PASSWORD'] >>> File "/usr/lib/python3.7/os.py", line 679, in __getitem__ >>> raise KeyError(key) from None >>> KeyError: 'PY4WEB_PASSWORD' >>> >>> I created the environment variable and stored my plain text password >>> there. Now this error is gone, but still not working. >>> >>> I can see that password.txt was created in the directory from which I >>> initiated the py4web-start command. >>> >>> I restart py4web and the password still doesn't work. >>> >>> I deleted password.txt and restarted - was asked for the password and I >>> entered it. >>> >>> Still no luck. >>> >>> I've had py4web running successfully in the past. Just now sure what >>> has happened now that is preventing me from logging in. >>> >>> -Jim >>> >>> >>> -- 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/18ccda76-3f22-4a45-9564-3125044c05b9%40googlegroups.com.