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

2017-11-30 Thread icodk
What I did:

added
import pytz

in db.py in the welcome application 

The error:
 (ImportError("Cannot import module 
'applications.welcome.modules.pytz'",), 
)

Environment:
2.16.1-stable+timestamp.2017.11.14.05.54.25
(Running on nginx/1.12.1, Python 2.7.14)

fresh web2py installation on Ubuntu 17.10 using the 
script: setup-web2py-nginx-uwsgi-ubuntu.sh

python version in terminal:

Python 2.7.14 (default, Sep 23 2017, 22:06:14)
[GCC 7.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>


Any idea ?

-- 
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.


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

2016-10-18 Thread icodk
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 fine with Rocket. Also starting 
interactive console works fine:
$ sudo python web2py.py -S welcome
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2016
Version 2.14.6-stable+timestamp.2016.05.10.00.21.47
Database drivers available: sqlite3, psycopg2, pg8000, pymysql, imaplib
WARNING:web2py:import IPython error; use default python shell
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.
(InteractiveConsole)
>>> import pytz
>>>

Running on ubuntu 16.04-amd64-server
Linux myserver 4.4.0-36-generic #55-Ubuntu SMP Thu Aug 11 18:01:55 UTC 2016 
x86_64 x86_64 x86_64 GNU/Linux

-- 
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.