installing py4web using pip -- where is py4web-start.py?

43 views
Skip to first unread message

Tim Korb

unread,
Mar 12, 2020, 8:41:26 AM3/12/20
to web2py-users
I'm trying to install py4web using pip, following the instructions at http://py4web.com/_documentation/static/index.html.  (I've installed it from github, which worked, but would prefer to just use pip.)

The install command (run on MacOS)...

$ python3 -m pip install --upgrade py4web

works fine (apparently, no errors), but I can't find py4web-start.py.  I looked in the site-packages directory where py4web is installed, but couldn't find py4web-start.py.  
I was able to copy py4web-start.py from the git repo to a new directory, then run with

$ python3 py4web-start.py apps

and it worked fine. The documentation seems to indicate that py4web-start.py is installed automatically in a location in the path.

Jim S

unread,
Mar 12, 2020, 8:49:19 AM3/12/20
to web2py-users
Running:

which py4web-start

on my ubuntu system gives me:

/home/jim/.local/bin/py4web-start

Jim

Tim Korb

unread,
Mar 12, 2020, 8:57:36 AM3/12/20
to web...@googlegroups.com
Ah, thanks.  I should have looked for just py4web-start without the .py.  I was (too) blindly following the documentation, which appears to be incorrect (it includes the .py).

villas

unread,
Mar 12, 2020, 9:05:25 AM3/12/20
to web2py-users
Tim,
You are right, it is not so clear.
However, the py4web Github home page states:

Notice "py4web-start" uses the pip installed py4web, "./py4web-start.py" uses the local one. Do not get confused.

I guess the docs should include the info from the Github page.
Reply all
Reply to author
Forward
0 new messages