Re: [opensuse] apache2-mod_python on 64-bit Tumbleweed
I followed the suggestions here: https://www.suse.com/support/kb/doc?id=7014026 I get a mod_python test page. sys.path is: /usr/lib/python27.zip /usr/lib64/python2.7 /usr/lib64/python2.7/plat-linux2 /usr/lib64/python2.7/lib-tk /usr/lib64/python2.7/lib-old /usr/lib64/python2.7/lib-dynload /usr/lib64/python2.7/site-packages /usr/local/lib64/python2.7/site-packages /usr/local/lib/python2.7/site-packages /usr/lib64/python2.7/site-packages/gtk-2.0 /usr/lib/python2.7/site-packages /usr/lib/python2.7/site-packages/Trac-1.2-py2.7.egg /usr/lib/python2.7/site-packages/TracAnnouncer-0.11.1-py2.7.egg So I do not understand why it does not find trac. Especially since a python interpreter does. On Wed, Jan 11, 2017 at 9:08 AM, Roger Oberholtzer <roger.oberholtzer@gmail.com> wrote:
I followed the suggestions here: https://www.suse.com/support/kb/doc?id=7014026
I get a mod_python test page. sys.path is:
/usr/lib/python27.zip /usr/lib64/python2.7 /usr/lib64/python2.7/plat-linux2 /usr/lib64/python2.7/lib-tk /usr/lib64/python2.7/lib-old /usr/lib64/python2.7/lib-dynload /usr/lib64/python2.7/site-packages /usr/local/lib64/python2.7/site-packages /usr/local/lib/python2.7/site-packages /usr/lib64/python2.7/site-packages/gtk-2.0 /usr/lib/python2.7/site-packages /usr/lib/python2.7/site-packages/Trac-1.2-py2.7.egg /usr/lib/python2.7/site-packages/TracAnnouncer-0.11.1-py2.7.egg
So I do not understand why it does not find trac. Especially since a python interpreter does.
On Tue, Jan 10, 2017 at 10:13 PM, Roger Oberholtzer <roger.oberholtzer@gmail.com> wrote:
Roger
I forgot a fundamental aspect of this. The 32 bit modules in
/usr/lib/python2.7/site-packages
mod_python is a 64-bit module. It's in /usr/lib64. The thing I want to load (trac) is pure python and is in /usr/lib
The OS install is totally new. I don't expect there to be any 32-bit stuff lurking around.
I will verify this when I get to the office tomorrow.
All binaries are from OBS. The python scripts are obtained by easy_install (from setuptools from OBS).
Oh yeah, there has got to be either an apache log or a mod_python log that will tell you if it is having problems dlopen-ing a file (this is the dynamically loading process I was talking about).
It says that it cannot find trac in /usr/lib64. It never seems to look in /usr/lib. Or at least it is not mentioned in the log. But it's in the Apache config as I see it in server-info
If I "import trac" in a python shell, it works. So I think trac is correctly installed.
-- Roger Oberholtzer
-- Roger Oberholtzer
-- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (1)
-
Roger Oberholtzer