I guess that there is code in the app that could be rendering the
module readable or not between requests. Why would web2py or the
operating system find the module randomly?

On 24 feb, 10:46, spiffytech <[email protected]> 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/mob...

Reply via email to