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)
-
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
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
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"
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
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
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
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
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
9 matches
Mail list logo