Note, local_import has been deprecated -- you can now simply do: import newsblur
Maybe try that and see if the problem goes away. Anthony On Friday, February 24, 2012 8:46:54 AM UTC-5, spiffytech wrote: > > My web2py app is hosted on Apache with mod_wsgi. Sometimes I'm > browsing through it and web2py encounters an error: > > ImportError: No module named mobileblur.modules.newsblur > > Caused by this line in my models file: > > nb_module = local_import("newsblur") > > This only happens occasionally, but on seemingly any page. Funny thing > is, if I hit the browser's refresh button the page loads fine. And > since nearly every page on the site requires that module, I know the > import works most of the time. > > The permissions on the module are -rw-r--r--, apache:apache (the same > user:group Apache is configured to use). > > The full source code can be found here[0], and I can provide > additional information on the server if needed. > > What could be going wrong? > > > [0] > https://github.com/spiffytech/MobileBlur/tree/master/applications/mobileblur