This is my bad. We just renamed ./py4web-start to ./py4web-start app.py
the reason is that windows did not understand the former. Does this solver the problems? On Saturday, 31 August 2019 14:45:14 UTC-7, Klaus Zinser wrote: > > Thanks Val, thanks Massimo, > as there was the chance to tidy up I took the approach from Massimo. > > First I tried > py4web-start apps -> working > ./py4web-start apps -> not working > Then I tried to tidy up. Most realistic I > #1 deleted the venv (virtual environment), > #2 removed the folder > #3 uninstalled > The I rebooted OSX. > > When choosing 1) pip only I got these messages: > > You are using pip version 19.0.3, however version 19.2.3 is available. > > You should consider upgrading via the 'pip install --upgrade pip' command. > > KlMcM:~ klausv.zinser$ pip install --upgrade pip > > DEPRECATION: Python 2.7 will reach the end of its life on January 1st, > 2020. Please upgrade your Python as Python 2.7 won't be maintained after > that date. A future version of pip will drop support for Python 2.7. More > details about Python 2 support in pip, can be found at > https://pip.pypa.io/en/latest/development/release-process/#python-2-support > > Requirement already up-to-date: pip in > /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages > (19.2.3) > > KlMcM:~ klausv.zinser$ py4web-start apps > > -bash: py4web-start: command not found > Neither ./py4web-start apps or py4web-start apps was working. > > When reviewing what I had done before to install and what I uninstalled: > python3 > -m pip uninstall py4web > I went for workflow 4) from source and install (as I had done this > before). > That was working, > > I don't want to take too much of your time. So this is fine for me. As I > am working on web2py with JSON and D3 I should try to have something > similar working. > > But if you want me to test some issues let me know (pip only would be the > cleanest solution; again its fine what I have). > > Klaus > > ---- > > Am Samstag, 31. August 2019 21:10:29 UTC+2 schrieb Massimo Di Pierro: >> >> I believe you have two (or three) versions installed. One installed from >> pip and one local (downloaded from github). >> >> when you start it with >> >> py4web-start apps >> >> (without the ./ you are using the pip installed one) >> when you start it with >> >> ./py4web-start apps >> >> you are using the git one. >> If you use source bin/activate it means you have a venv and maybe you >> have another version installed in the venv. >> >> One of those versions may be old and missing the py4web/__init__.py file. >> >> I recommend you cleanup house: >> 1) remove the venv >> 2) remove the py4web folder >> 3) python3 -m pip uninstall py4web (from outside the py4web folder) >> >> Then choose what preferred workflow: pip, venv+pip, or source. Do not mix >> them up. If you want to try different workflows, use different folders. pip >> gets confused when you have the code checkout in the same folder where you >> run pip. >> >> workflow 1) pip only >> >> python3 -m pip install py4web >> py4web-start apps >> (apps will be created for you) >> >> workflow 2) venv+pip >> >> mkdir work >> cd work >> python3 -m venv venv >> source venv/bin/activate >> python -m pip install py4web >> py4web-start apps >> (apps will be created for you) >> >> workflow 3) from source >> >> git clone https://github.com/web2py/py4web.git >> >> cd py4web >> make test >> python3 ./py4web-start apps >> (this will not create apps but will find the downloaded ones) >> >> workflow 4) from source and install >> >> git clone https://github.com/web2py/py4web.git >> >> cd py4web >> make install >> cd .. >> mkdir work >> cd work >> py4web-start apps >> >> >> >> On Saturday, 31 August 2019 02:36:35 UTC-7, Klaus Zinser wrote: >>> >>> Using: >>> python3 -m pip install py4web --upgrade worked. >>> >>> But i was unsucessful with these two commands: >>> source bin/activate >>> ./py4web-start apps / >>> >>> Then I used: >>> >>> git clone https://github.com/web2py/py4web.git >>> cd py4web >>> python3 -m pip install -r requirements.txt >>> python3 setup.py install >>> >>> >>> and finelly: >>> >>> py4web-start apps >>> >>> >>> It came up but I was unsucessful when entering the requested one-time >>> dashboard password. >>> >>> >>> KlMcM:py4web klausxx$ py4web-start apps >>> >>> >>> ██████╗ ██╗ ██╗██╗ ██╗██╗ ██╗███████╗██████╗ >>> >>> ██╔══██╗╚██╗ ██╔╝██║ ██║██║ ██║██╔════╝██╔══██ >>> >>> ██████╔╝ ╚████╔╝ ███████║██║ █╗ ██║█████╗ ██████╔╝ >>> >>> ██╔═══╝ ╚██╔╝ ╚════██║██║███╗██║██╔══╝ ██╔══██╗ >>> >>> ██║ ██║ ██║╚███╔███╔╝███████╗██████╔╝ >>> >>> ╚═╝ ╚═╝ ╚═╝ ╚══╝╚══╝ ╚══════╝╚═════╝ >>> >>> It is still experimental... >>> >>> assets-folder: >>> /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/py4web/assets >>> >>> Choose a one-time dashboad password: ONETIMEPW >>> >>> Dashboard is at: http://127.0.0.1:8000/_dashboard >>> >>> Traceback (most recent call last): >>> >>> File >>> "/Library/Frameworks/Python.framework/Versions/3.7/bin/py4web-start", line >>> 11, in <module> >>> >>> load_entry_point('py4web==0.1.20190826.1', 'console_scripts', >>> 'py4web-start')() >>> >>> File >>> "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/py4web/core.py", >>> line 816, in main >>> >>> Reloader.import_apps() >>> >>> File >>> "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/py4web/core.py", >>> line 661, in import_apps >>> >>> 'apps', path).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 724, in exec_module >>> >>> File "<frozen importlib._bootstrap_external>", line 859, in get_code >>> >>> File "<frozen importlib._bootstrap_external>", line 916, in get_data >>> >>> FileNotFoundError: [Errno 2] No such file or directory: >>> '/Users/klausxx/py4web/apps/__init__.py' >>> >>> KlMcM:py4web klausxx$ >>> >>> >>> Klaus >>> >>> >>> >>> ----- >>> >>> >>> Am Montag, 26. August 2019 19:05:24 UTC+2 schrieb En Ware: >>>> >>>> hmm , I just tried from pip and works find >>>> >>>> python3 -m pip install py4web --upgrade >>>> >>>> source bin/activate >>>> >>>> ./py4web-start apps / >>>> >>>> >>>> ██████╗ ██╗ ██╗██╗ ██╗██╗ ██╗███████╗██████╗ >>>> ██╔══██╗╚██╗ ██╔╝██║ ██║██║ ██║██╔════╝██╔══██╗ >>>> ██████╔╝ ╚████╔╝ ███████║██║ █╗ ██║█████╗ ██████╔╝ >>>> ██╔═══╝ ╚██╔╝ ╚════██║██║███╗██║██╔══╝ ██╔══██╗ >>>> ██║ ██║ ██║╚███╔███╔╝███████╗██████╔╝ >>>> ╚═╝ ╚═╝ ╚═╝ ╚══╝╚══╝ ╚══════╝╚═════╝ >>>> It is still experimental... >>>> >>>> assets-folder: >>>> /Users/.env/python/py4web/lib/python3.6/site-packages/py4web/assets >>>> Choose a one-time dashboad password: >>>> Dashboard is at: http://127.0.0.1:8000/_dashboard >>>> [X] loaded _dashboard >>>> [X] loaded myapp >>>> [X] loaded _default >>>> [X] loaded _scaffold >>>> Bottle v0.12.17 server starting up (using TornadoServer())... >>>> Listening on http://127.0.0.1:8000/ >>>> Hit Ctrl-C to quit. >>>> >>>> >>>> >>>> On Wednesday, August 21, 2019 at 10:51:31 AM UTC-5, Annet wrote: >>>>> >>>>> >>>>> python3 setup.py install >>>>>> >>>>> >>>>> I installed py4web from source: >>>>> >>>>> git clone https://github.com/web2py/py4web.gitcd py4web >>>>> python3 -m pip install -r requirements.txt >>>>> python3 setup.py install >>>>> >>>>> >>>>> Running the last statement gives the following errors: >>>>> >>>>> byte-compiling >>>>> build/bdist.macosx-10.9-x86_64/egg/py4web/utils/auth_plugins/saml2_plugin.py >>>>> >>>>> to saml2_plugin.cpython-37.pyc >>>>> File >>>>> "build/bdist.macosx-10.9-x86_64/egg/py4web/utils/auth_plugins/saml2_plugin.py", >>>>> >>>>> line 105 >>>>> session.saml_outstanding_queries = {req_id: request.url} >>>>> ^ >>>>> SyntaxError: invalid syntax >>>>> >>>>> and >>>>> >>>>> Extracting py4web-0.1.20190818.2-py3.7.egg to >>>>> /usr/local/lib/python3.7/site-packages >>>>> File >>>>> "/usr/local/lib/python3.7/site-packages/py4web-0.1.20190818.2-py3.7.egg/py4web/utils/auth_plugins/saml2_plugin.py", >>>>> >>>>> line 105 >>>>> session.saml_outstanding_queries = {req_id: request.url} >>>>> ^ >>>>> SyntaxError: invalid syntax >>>>> >>>>> >>>>> >>>>> I starting py4web >>>>> >>>>> py4web-start apps >>>>> >>>>> >>>>> fails with the following error: >>>>> >>>>> FileNotFoundError: [Errno 2] No such file or directory: >>>>> '/Users/me/py4web/apps/__init__.py' >>>>> >>>>> >>>>> How do I resolve these issues? >>>>> >>>>> >>>>> Kind regards, >>>>> >>>>> Annet >>>>> >>>> -- 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/3972f0a9-cce4-4416-abb3-856c37ede601%40googlegroups.com.