Hi,
I have this very strange issue: I am importing a module in the web2py
models, but the module can not be found.
This is only happening in one of my production hosts: the rest are ok (very
similar machines, similar setup).
If I import the module from a python shell, it works, but importing from
the web2py shell fails.
I have verified that os.environ.get('PYTHONPATH') are exactly the same in
both web2py shell and normal python shell.
sys.path differ slightly: basically, in web2py shell it has the web2py
installation directory, and in the normal python shell it has the current
directory.
But this should not affect finding the module I want to import. So, I do
not understand why this one module is not being found.
I have experienced in the past that web2py complains about a module not
found, when actually what happens is that importing that module causes an
error (for whatever reason: because an import there does not work, or
syntax error, or whatever). But I can not tell in this specific case if
that is my problem. How can I further debug this annoying issue?
Thanks,
Daniel
--
---
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/groups/opt_out.