problem solved by simple use another ec2 instance with ubuntu version 10.04 ubuntu-trusty-14.04-amd64-server-20160714
Then I strictly followed the book, and with a few small issues I could google myself I could make it work. I used the scripts/setup-web2py-nginx-uwsgi-ubuntu.sh This script create a user www-data and installs web2py with that user.later when I pull my app from git it is saved under my user name so when I start nginx and uwsgi it can't write to the app session. so I needed to change the owner and the group to www-data on all files pulled from git. is there a smarter way to do it ? On Wednesday, October 19, 2016 at 3:51:40 PM UTC+2, icodk wrote: > > You might be right, How can I change it ? > > However running the following commands tells me that python 2.7 is the > default: > > $ python --version > Python 2.7.12 > ---- > $python > Python 2.7.12 (default, Jul 1 2016, 15:12:24) > [GCC 5.4.0 20160609] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> > ---- > $ sudo update-alternatives --list python > /usr/bin/python2.7 > > I can try to uninstall python3 and see > > > On Wednesday, October 19, 2016 at 12:24:26 AM UTC+2, Leonel Câmara wrote: >> >> Probably uwsgi is using another python version trough nginx and you don't >> have that module there. >> > -- 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. For more options, visit https://groups.google.com/d/optout.