How to UPGRADE py4web hosted at https://www.pythonanywhere.com/ ?

37 views
Skip to first unread message

Luc Chase

unread,
May 4, 2020, 9:33:15 AM5/4/20
to web2py-users
I have a working version with _documentation?version=0.1.20200210.2

I want to understand how to upgrade.

I've tried entering 
python3 -m pip install --upgrade py4web
from /home/myinstall/

but after a series of successful inI get many errors and there is no sign that anything got upgraded...
11:33 ~ $ python3 -m pip install --upgrade py4webCollecting py4webRequirement already up-to-date: threadsafevariable in ./.local/lib/python3.6/site-packages (from py4web)Collecting pydal (from py4web)Collecting requests (from py4web)  Using cached https://files.pythonhosted.org/packages/1a/70/1935c770cb3be6e3a8b78ced23d7e0f3b187f5cbfab4749523ed65d7c9b1/requests-2.23.0-py2.py3-none-any.whlCollecting yatl (from py4web)Collecting click (from py4web)  Using cached https://files.pythonhosted.org/packages/d2/3d/fa76db83bf75c4f8d338c2fd15c8d33fdd7ad23a9b5e57eb6c5de26b430e/click-7.1.2-py2.py3-none-any.whlRequirement already up-to-date: gunicorn in ./.local/lib/python3.6/site-packages (from py4web)Requirement already up-to-date: pluralize in ./.local/lib/python3.6/site-packages (from py4web)Collecting tornado (from py4web)Collecting bottle (from py4web)  Using cached https://files.pythonhosted.org/packages/e9/39/2bf3a1fd963e749cdbe5036a184eda8c37d8af25d1297d94b8b7aeec17c4/bottle-0.12.18-py3-none-any.whlCollecting gevent (from py4web)Requirement already up-to-date: pyjwt in ./.local/lib/python3.6/site-packages (from py4web)Collecting certifi>=2017.4.17 (from requests->py4web)  Using cached https://files.pythonhosted.org/packages/57/2b/26e37a4b034800c960a00c4e1b3d9ca5d7014e983e6e729e33ea2f36426c/certifi-2020.4.5.1-py2.py3-none-any.whlCollecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests->py4web)  Using cached https://files.pythonhosted.org/packages/e1/e5/df302e8017440f111c11cc41a6b432838672f5a70aa29227bf58149dc72f/urllib3-1.25.9-py2.py3-none-any.whlCollecting idna<3,>=2.5 (from requests->py4web)  Using cached https://files.pythonhosted.org/packages/89/e3/afebe61c546d18fb1709a61bee788254b40e736cff7271c7de5de2dc4128/idna-2.9-py2.py3-none-any.whlCollecting chardet<4,>=3.0.2 (from requests->py4web)  Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whlCollecting setuptools>=3.0 (from gunicorn->py4web)  Using cached https://files.pythonhosted.org/packages/a0/df/635cdb901ee4a8a42ec68e480c49f85f4c59e8816effbf57d9e6ee8b3588/setuptools-46.1.3-py3-none-any.whlCollecting cffi>=1.12.2 (from gevent->py4web)  Downloading https://files.pythonhosted.org/packages/f1/c7/72abda280893609e1ddfff90f8064568bd8bcb2c1770a9d5bb5edb2d1fea/cffi-1.14.0-cp36-cp36m-manylinux1_x86_64.whl (399kB)    100% |████████████████████████████████| 399kB 857kB/s Collecting greenlet>=0.4.14 (from gevent->py4web)  Using cached https://files.pythonhosted.org/packages/bf/45/142141aa47e01a5779f0fa5a53b81f8379ce8f2b1cd13df7d2f1d751ae42/greenlet-0.4.15-cp36-cp36m-manylinux1_x86_64.whlCollecting pycparser (from cffi>=1.12.2->gevent->py4web)  Downloading https://files.pythonhosted.org/packages/ae/e7/d9c3a176ca4b02024debf82342dab36efadfc5776f9c8db077e8f6e71821/pycparser-2.20-py2.py3-none-any.whl (112kB)    100% |████████████████████████████████| 112kB 2.2MB/s Installing collected packages: pydal, certifi, urllib3, idna, chardet, requests, yatl, click, tornado, bottle, pycparser, cffi, greenlet, gevent, py4web, setuptools  Found existing installation: pydal 20191227.1    Uninstalling pydal-20191227.1:      Successfully uninstalled pydal-20191227.1  Rolling back uninstall of pydalException:Traceback (most recent call last):  File "/usr/local/lib/python3.6/dist-packages/pip/basecommand.py", line 215, in main    status = self.run(options, args)  File "/usr/local/lib/python3.6/dist-packages/pip/commands/install.py", line 342, in run    prefix=options.prefix_path,  File "/usr/local/lib/python3.6/dist-packages/pip/req/req_set.py", line 784, in install    **kwargs  File "/usr/local/lib/python3.6/dist-packages/pip/req/req_install.py", line 851, in install    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)  File "/usr/local/lib/python3.6/dist-packages/pip/req/req_install.py", line 1064, in move_wheel_files    isolated=self.isolated,  File "/usr/local/lib/python3.6/dist-packages/pip/wheel.py", line 345, in move_wheel_files    clobber(source, lib_dir, True)  File "/usr/local/lib/python3.6/dist-packages/pip/wheel.py", line 316, in clobber    ensure_dir(destdir)  File "/usr/local/lib/python3.6/dist-packages/pip/utils/__init__.py", line 83, in ensure_dir    os.makedirs(path)  File "/usr/lib/python3.6/os.py", line 220, in makedirs    mkdir(name, mode)PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.6/dist-packages/pydal-20200502.2.dist-info'


Any advice on what I'm doing wrong?


Reply all
Reply to author
Forward
0 new messages