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 apps each of which has a number of modules. Whilst > it seems that I can import modules from paython (such as pytz etc) and I > can also import modules into controllers/models what I cant seem to be able > to do is to import a module into another module. > > Example : > > I have 2 modules invoices and invoice in modules directory. I can import > either or both into a controller but I cannot import invoice module into > invoices module. > > I have tried using applications.app_name.modules.invoice as well as just > invoice (as both are in same directory) but not happening for me. > > I get same standard import error traceback whatever I use. i.e custom > import error .. no module "applications.app_name.modules.module_name" found > > Note:- all is working fine in python 2.7 > > Has anyone come across this issue or does anyone have a solution? I have > reverted back to 2.7 for now >
-- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

