[web2py] Re: Cannot import module 'applications.welcome.modules.pytz

2017-12-01 Thread Neil
I just had the same problem. I used the `umask` solution here: https://stackoverflow.com/questions/36898474/how-to-install-a-module-for-all-users-with-pip-on-linux -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Cannot import module 'applications.welcome.modules.pytz

2017-11-30 Thread icodk
SOLVED ! use: sudo pip install pytz and not pip install pytz if you install pytz using pip without sudo , it will be installed for the login user and will be inaccessible from uwsgi/nginx Example: yourname@yourserver:~$pip install pytz will install it in

[web2py] Re: Cannot import module 'applications.welcome.modules.pytz'

2016-10-19 Thread icodk
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

[web2py] Re: Cannot import module 'applications.welcome.modules.pytz'

2016-10-19 Thread icodk
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"

[web2py] Re: Cannot import module 'applications.welcome.modules.pytz'

2016-10-18 Thread Leonel Câmara
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

[web2py] Re: Cannot import module 'applications.welcome.modules.pytz'

2016-10-18 Thread icodk
It works fine with Rocket. Do you (or anybody) have any idea why not with nginx ? On Tuesday, October 18, 2016 at 8:20:23 PM UTC+2, icodk wrote: > > Get the following error when running web2py with nginx > S" Cannot import module > 'applications.welcome.modules.pytz'" > The error is related to

[web2py] Re: Cannot import module 'applications.welcome.modules.pytz'

2016-10-18 Thread icodk
YES It is something I added. I first got the error in my application and it didn't work. To make sure it is nothing to do with my application I added it to the standard welcome application and got exactly the same error. So it is probably something to do with nginx configuration( which I know

[web2py] Re: Cannot import module 'applications.welcome.modules.pytz'

2016-10-18 Thread Dave S
On Tuesday, October 18, 2016 at 12:08:57 PM UTC-7, Dave S wrote: > > > > On Tuesday, October 18, 2016 at 11:20:23 AM UTC-7, icodk wrote: >> >> Get the following error when running web2py with nginx >> S" Cannot import module >> 'applications.welcome.modules.pytz'" >> The error is related to the

[web2py] Re: Cannot import module 'applications.welcome.modules.pytz'

2016-10-18 Thread Dave S
On Tuesday, October 18, 2016 at 11:20:23 AM UTC-7, icodk wrote: > > Get the following error when running web2py with nginx > S" Cannot import module > 'applications.welcome.modules.pytz'" > The error is related to the following line in db.py > import pytz > > Exactly the same installation works