if in app2 delete all *.pyc files - all work четверг, 22 января 2015 г., 8:42:45 UTC+3 пользователь Dmitry Ermolaev написал: > > in vers 2.9.12 error (in vers 2.5 all worked): > > in app1 I use import module from app2: > from applications.app2.modules.cp_api import check_ars > > in app2 code: > import module1 > > rise error - > <type 'exceptions.ImportError'> Cannot import module > 'applications.bs3b.modules.orders_lib'Versionweb2py™Version > 2.9.12-stable+timestamp.2015.01.17.06.11.03PythonPython 2.7.8: > C:\Python27\python.exe (prefix: C:\Python27)Traceback > > 1. > 2. > 3. > 4. > 5. > 6. > 7. > 8. > 9. > 10. > 11. > 12. > 13. > 14. > 15. > 16. > > Traceback (most recent call last): > File "C:\web2py-9-12\gluon\restricted.py", line 224, in restricted > exec ccode in environment > File "C:/web2py-9-12/applications/bs3b/controllers/bill.py" > <http://127.0.0.1:8000/admin/default/edit/bs3b/controllers/bill.py>, line > 423, in <module> > File "C:\web2py-9-12\gluon\globals.py", line 393, in <lambda> > self._caller = lambda f: f() > File "C:/web2py-9-12/applications/bs3b/controllers/bill.py" > <http://127.0.0.1:8000/admin/default/edit/bs3b/controllers/bill.py>, line > 310, in show > from applications.shop.modules.cp_api import check_ars > File "C:\web2py-9-12\gluon\custom_import.py", line 105, in custom_importer > return NATIVE_IMPORTER(name, globals, locals, fromlist, level) > File "applications\shop\modules\cp_api.py", line 16, in <module> > import orders_lib > File "C:\web2py-9-12\gluon\custom_import.py", line 86, in custom_importer > raise ImportError, 'Cannot import module %s' % str(e) > *ImportError: Cannot import module **'applications.bs3b.modules.orders_lib'* > >
-- 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.