I had very similar problem (Windows, too) and the reason was that in applications/myapp was no __init__.py. Web2py special importer converts the import to something like: import applications.mqr.modules.qrcode and this fails without applications\mqr\__init__.py. After adding __init__.py into current application root all works well.
Mirek Dne úterý, 11. února 2014 21:09:32 UTC+1 Chris Hepworth napsal(a): > > > I recently had to set up a new environment (my desktop running Ubuntu is > dead) on my Windows laptop. I have a module called *qrcode *that worked > fine in my old environment and hasn't had an issue on pythonanywhere. After > I cloned the application, however, I received this error. Is there > something special about Windows? I am working on replacing my desktop, but > in the meantime I would love to get this working. Any help would be much > appreciated! > > <type 'exceptions.ImportError'> No module named mqr.modules > Version > > web2py™Version 2.8.2-stable+timestamp.2013.11.28.13.54.07PythonPython > 2.7.5: C:\web2py\web2py.exe (prefix: C:\Python27) > > Traceback > > 1. > 2. > 3. > 4. > 5. > 6. > 7. > > Traceback (most recent call last): > File "/home/mdipierro/make_web2py/web2py/gluon/restricted.py", line 217, in > restricted > File "C:/web2py/applications/mqr/controllers/cms.py" > <http://127.0.0.1:8000/admin/default/edit/mqr/controllers/cms.py>, line 105, > in <module> > import qrcode > File "/home/mdipierro/make_web2py/web2py/gluon/custom_import.py", line 76, > in custom_importer > ImportError: No module named > > -- 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.

