Hi there! I'm using this version of web2py: Version 2.17.1-stable+timestamp.2018.08.06.01.02.56 I recently moved to Python 3 and I've found this issue. When I try to do this:
from gluon.contrib import simplejson ... I receive this error: ModuleNotFoundError: No module named 'decoder' This is the full traceback: Traceback (most recent call last): File "/home/gonguinguen/medios/gluon/custom_import.py", line 98, in custom_importer return base_importer(pname, globals, locals, fromlist, level) ModuleNotFoundError: No module named 'applications.webmedios.modules.decoder' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/gonguinguen/medios/gluon/custom_import.py", line 102, in custom_importer return NATIVE_IMPORTER(name, globals, locals, fromlist, level) ModuleNotFoundError: No module named 'decoder' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/gonguinguen/medios/gluon/restricted.py", line 219, in restricted exec(ccode, environment) File "/home/gonguinguen/medios/applications/webmedios/controllers/admin.py", line 696, in <module> File "/home/gonguinguen/medios/gluon/globals.py", line 421, in <lambda> self._caller = lambda f: f() File "/home/gonguinguen/medios/applications/webmedios/controllers/admin.py", line 693, in test from gluon.contrib import simplejson File "/home/gonguinguen/medios/gluon/custom_import.py", line 111, in custom_importer return NATIVE_IMPORTER(name, globals, locals, fromlist, level) File "/home/gonguinguen/medios/gluon/contrib/simplejson/__init__.py", line 111, in <module> from decoder import JSONDecoder, JSONDecodeError File "/home/gonguinguen/medios/gluon/custom_import.py", line 104, in custom_importer raise ImportError(e1, import_tb) # there an import error in the module ImportError: (ModuleNotFoundError("No module named 'applications.webmedios.modules.decoder'",), <traceback object at 0x7f6add36a308>) Should I install simplejson directly to my virtualenv and avoid using the one provided by web2py? -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/eb8295a9-87e2-4d3f-bb4a-cb17c0808025%40googlegroups.com.