RE: [web2py] Re: Modules not loading in python 3

2019-04-11 Thread John Bannister
Thanks to all for the responses. Much appreciated. Will try the .module and revert. Thanks once again From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of etienne Sent: 11 April 2019 09:07 To: web2py-users Subject: [web2py] Re: Modules not loading in python 3

[web2py] Re: Modules not loading in python 3

2019-04-11 Thread etienne
Hello, The error message is a bit misleading but it is related to the way python 3 is managing modules. For files sitting in the same directory you have to modify the import from: import mymodule to import .mymodule and it should work. It turns out that on any import error, custom_import w

[web2py] Re: Modules not loading in python 3

2019-04-09 Thread João Matos
Try deleting the modules/*.pyc and modules/__pycache__/*.pyc. domingo, 7 de Abril de 2019 às 05:18:03 UTC+1, John Bannister escreveu: > > > Hi all, > > I have recently upgraded to python 3.6 from 2.7 running on Centos7 with > apache. Problem I am having is as follows:- > 1: I have a number of ap

[web2py] Re: Modules not loading in python 3

2019-04-07 Thread Massimo Di Pierro
Can you provide an app as an example. Will make out debugging easier. On Saturday, 6 April 2019 21:18:03 UTC-7, John Bannister wrote: > > > Hi all, > > I have recently upgraded to python 3.6 from 2.7 running on Centos7 with > apache. Problem I am having is as follows:- > 1: I have a number of ap