In uwsgi you need to use a separate plugin for each version of Python. You 
start with a version of uwsgi with no languages compiled in, the OS uWSGI 
packages are typically built this way. You obtain a different Python plugin 
for each version of Python that you want to use. Then you run your Python 2 
applications with --plugin=python2 and your Python 3 applications with 
--plugin=python37 for example.

On Wednesday, May 20, 2020 at 12:24:56 PM UTC-4, Ramos wrote:

> hello i´m using webfaction and this script 
>
> https://github.com/duducosmos/webfaction-web2py-nginx-uwsgi-installer/blob/master/install.py
>  
> that installed web2py a loong time ago.
>
> now i want to use python3.5.9 already available as python3 instead of 
> python 2.7
>
> i read this in the start conf
>
> #!/bin/bash
>
> # Start uwsgi
> /home/ramstein74/webapps/new2py/bin/uwsgi   --uwsgi-socket 
> "/home/ramstein74/webapps/new2py/uwsgi.sock"
>    --master   --workers 1   --max-requests 10000   --harakiri 60   
> --daemonize /home/ramstein74/logs/user/uwsgi_new2py.log   --pidfile 
> /home/ramstein74/webapps/new2py/uwsgi.pid   --vacuum   --chdir 
> /home/ramstein74/webapps/new2py   --python-path 
> /home/ramstein74/webapps/new2py/lib/python2.7   --wsgi-file 
> /home/ramstein74/webapps/new2py/web2py/wsgihandler.py 
> # Start nginx
> /home/ramstein74/webapps/new2py/bin/nginx
>
> changing python2.7 to python3 does not work.
>
> Any ideas would be awesome :)
>
> regards 
>

-- 
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/6888589d-52a9-4ec5-9f02-4ef7c9805ddbo%40googlegroups.com.

Reply via email to