I'm still trying again to install Web2py.
Executing the script I've these warnings:
Cache entry deserialization failed, entry ignored
You are using pip version 9.0.3, however version 20.2.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

The pip version is definitely not a problem, the cache I don't know. Anyway 
the script ends with success, but the password don't allow me to login to 
the Web2py admin.
Perhaps Web2py can have also an easy way to change the admin password by 
the console...

Here is all the Putty session:
[user@vpsXX ~]$ python3 ~/web2py_install.py -u MY_UUID -t MY_TOKEN
[2020-10-21 16:45:09,326] INFO: Started installation of web2py app
[2020-10-21 16:45:09,953] INFO: Created directory 
/home/user/apps/web2py3/tmp
[2020-10-21 16:45:09,954] INFO: Running: /bin/python3.6 -m venv 
/home/user/apps/web2py3/env
[2020-10-21 16:45:13,379] INFO: Created virtualenv at 
/home/user/apps/web2py3/env
[2020-10-21 16:45:13,379] INFO: Running: 
/home/user/apps/web2py3/env/bin/pip install uwsgi
  Cache entry deserialization failed, entry ignored
You are using pip version 9.0.3, however version 20.2.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[2020-10-21 16:45:34,599] INFO: Running: chmod 700 
/home/user/apps/web2py3/env/bin/uwsgi
[2020-10-21 16:45:34,601] INFO: Installed latest uWSGI into virtualenv
[2020-10-21 16:45:34,602] INFO: Downloading 
http://www.web2py.com/examples/static/web2py_src.zip as 
/home/user/apps/web2py3/web2py_src.zip with permissions 0o600
[2020-10-21 16:45:35,752] INFO: Downloaded 
http://www.web2py.com/examples/static/web2py_src.zip as 
/home/user/apps/web2py3/web2py_src.zip with permissions 0o600
[2020-10-21 16:45:35,752] INFO: Running: /usr/bin/unzip -qq 
/home/user/apps/web2py3/web2py_src.zip
[2020-10-21 16:45:36,000] INFO: Downloaded web2py to 
/home/user/apps/web2py3/web2py
[2020-10-21 16:45:36,001] INFO: Running: cp 
/home/user/apps/web2py3/web2py/handlers/wsgihandler.py 
/home/user/apps/web2py3/web2py/
[2020-10-21 16:45:36,004] INFO: Prepared web2py WSGI handler
[2020-10-21 16:45:36,005] INFO: Created file 
/home/user/apps/web2py3/web2py/parameters_27923.py with permissions 0o600
[2020-10-21 16:45:36,005] INFO: Created web2py admin password file
[2020-10-21 16:45:36,006] INFO: Created file 
/home/user/apps/web2py3/uwsgi.ini with permissions 0o600
[2020-10-21 16:45:36,006] INFO: Created web2py uwsgi config
[2020-10-21 16:45:36,006] INFO: Created file /home/user/apps/web2py3/start 
with permissions 0o700
[2020-10-21 16:45:36,006] INFO: Created start script
[2020-10-21 16:45:36,006] INFO: Created file /home/user/apps/web2py3/stop 
with permissions 0o700
[2020-10-21 16:45:36,006] INFO: Created stop script
[2020-10-21 16:45:36,024] INFO: Running: crontab 
/home/user/.tmpOjBVPvrTP15oAuGpx4J6
[2020-10-21 16:45:36,041] INFO: Running: rm -f 
/home/user/.tmpOjBVPvrTP15oAuGpx4J6
[2020-10-21 16:45:36,044] INFO: Added cron job: */10 * * * * 
/home/user/apps/web2py3/start > /dev/null 2>&1
[2020-10-21 16:45:36,044] INFO: Created cron job
[2020-10-21 16:45:36,044] INFO: Created file /home/user/apps/web2py3/README 
with permissions 0o600
[2020-10-21 16:45:36,045] INFO: Running: /home/user/apps/web2py3/start
[uWSGI] getting INI configuration from /home/user/apps/web2py3/uwsgi.ini
[2020-10-21 16:45:36,824] INFO: Completed installation of web2py app web2py3
[2020-10-21 16:45:36,824] INFO: See /home/user/apps/web2py3/README for your 
admin password and other info.
[user@vpsXX ~]$ ^C
[user@vpsXX ~]$ pip2.7 install --user zipp==1.1
Requirement already satisfied (use --upgrade to upgrade): zipp==1.1 in 
./.local/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): contextlib2; 
python_version < "3.4" in ./.local/lib/python2.7/site-packages (from 
zipp==1.1)
You are using pip version 8.1.2, however version 20.2.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[user@vpsXX ~]$ pip2.7 install --user virtualenv==16.7.10
Requirement already satisfied (use --upgrade to upgrade): 
virtualenv==16.7.10 in ./.local/lib/python2.7/site-packages
You are using pip version 8.1.2, however version 20.2.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[user@vpsXX ~]$ cd apps/web2py3
[user@vpsXX web2py3]$ mv env env.old
[user@vpsXX web2py3]$ virtualenv -p /bin/python2.7 env
Running virtualenv with interpreter /bin/python2.7
Already using interpreter /bin/python2.7
  No LICENSE.txt / LICENSE found in source
New python executable in /home/user/apps/web2py3/env/bin/python2.7
Also creating executable in /home/user/apps/web2py3/env/bin/python
Installing setuptools, pip, wheel...
done.
[user@vpsXX web2py3]$ source env/bin/activate
(env) [user@vpsXX web2py3]$ pip install uwsgi
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. 
Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 
will drop support for Python 2.7 in January 2021. More details about Python 
2 support in pip can be found at 
https://pip.pypa.io/en/latest/development/release-process/#python-2-support 
pip 21.0 will remove support for this functionality.
Processing 
/home/user/.cache/pip/wheels/98/8a/d9/e6390c0269fdba2d0381e508d675b8f2569baff923b42e2b15/uWSGI-2.0.19.1-cp27-cp27mu-linux_x86_64.whl
Installing collected packages: uwsgi
Successfully installed uwsgi-2.0.19.1
(env) [user@vpsXX web2py3]$ ./stop
Stopped.
(env) [user@vpsXX web2py3]$ ./start
[uWSGI] getting INI configuration from /home/user/apps/web2py3/uwsgi.ini
Started uWSGI for web2py3.
Il giorno mercoledì 21 ottobre 2020 alle 16:56:52 UTC+2 Gaël Princivalle ha 
scritto:

> > Are you activating the virtualenv first 
> Yes I've followed all the points of the process.
>
>  > What error message(s) are you getting? At what point? 
> No error message. I'm just unable to login.
> I'll do it again and check better each step.
>
> Il giorno mercoledì 21 ottobre 2020 alle 15:41:52 UTC+2 Jose C ha scritto:
>
>>
>> On Wednesday, 21 October 2020 13:50:05 UTC+1, Gaël Princivalle wrote:
>>>
>>> Thank you José, I've found the README file and the password.
>>> However this password is not accepted.
>>> I've made another Web2py installation but the result is the same.
>>>
>>> As this is quite the first step to migrate my Web2py websites to 
>>> Opalstack I just would like to cry...
>>>
>>>
>> Don't cry yet... it appears that the script and process worked ok for 
>> Carlos above given his (it works!!!!) comment so you must be close!  
>>
>> Perhaps if you provide detailed steps of what you are doing and where you 
>> are trying to enter/use the password, someone may be able to help.
>>
>> How are you starting web2py? 
>> Are you activating the virtualenv first (that was created by the 
>> script)?  If so, it should appear within ( ) in your command prompt.
>> What error message(s) are you getting? At what point?
>>
>>
>>  
>>
>

-- 
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/b35add4b-c555-42c6-8ac2-2f43d4a2626cn%40googlegroups.com.

Reply via email to