[Zope] Re: pythonpath incomplete?

Wouter Vanden Hove wouter.vanden.hove at telenet.be
Thu Nov 4 10:27:36 EST 2004


Tino Wildenhain wrote:
> compare: which python2.3  output with what you have to
> start zope. Use full path here if in doubt best
> as option to ./configure --with-python=python2.3
> or so.


[bin]#  which python2.3
/usr/local/bin/python2.3



[bin]# cat runzope

#! /bin/sh

PYTHON="/usr/local/bin/python2.3"
ZOPE_HOME="/opt/Zope-2.7.3-0"
INSTANCE_HOME="/opt/Zope-2.7.3-0"
CONFIG_FILE="/opt/Zope-2.7.3-0/etc/zope.conf"
SOFTWARE_HOME="/opt/Zope-2.7.3-0/lib/python"
PYTHONPATH="$SOFTWARE_HOME"
export PYTHONPATH INSTANCE_HOME SOFTWARE_HOME

ZOPE_RUN="$SOFTWARE_HOME/Zope/Startup/run.py"

exec "$PYTHON" "$ZOPE_RUN" -C "$CONFIG_FILE" "$@"





> see ls -l /usr/local/lib/python2.3/difflib.py
> and look for permissions and filesize

[root at minfpc26 Zope-2.7.3-0]#  ls -l /usr/local/lib/python2.3/difflib.py
-rw-r--r--    1 root     root        49736 Aug 9
00:21 /usr/local/lib/python2.3/difflib.py

Seems ok.



> then try:
> python2.3 -v
>>>> import difflib

> whatch output (after start and after import difflib)

>>> import difflib
# /usr/local/lib/python2.3/difflib.pyc
matches /usr/local/lib/python2.3/difflib.py
import difflib # precompiled from /usr/local/lib/python2.3/difflib.pyc
# /usr/local/lib/python2.3/re.pyc matches /usr/local/lib/python2.3/re.py
import re # precompiled from /usr/local/lib/python2.3/re.pyc
# /usr/local/lib/python2.3/sre.pyc matches /usr/local/lib/python2.3/sre.py
import sre # precompiled from /usr/local/lib/python2.3/sre.pyc
# /usr/local/lib/python2.3/sre_compile.pyc
matches /usr/local/lib/python2.3/sre_compile.py
import sre_compile # precompiled
from /usr/local/lib/python2.3/sre_compile.pyc
import _sre # builtin
# /usr/local/lib/python2.3/sre_constants.pyc
matches /usr/local/lib/python2.3/sre_constants.py
import sre_constants # precompiled
from /usr/local/lib/python2.3/sre_constants.pyc
# /usr/local/lib/python2.3/sre_parse.pyc
matches /usr/local/lib/python2.3/sre_parse.py
import sre_parse # precompiled from /usr/local/lib/python2.3/sre_parse.pyc
# /usr/local/lib/python2.3/string.pyc
matches /usr/local/lib/python2.3/string.py
import string # precompiled from /usr/local/lib/python2.3/string.pyc
dlopen("/usr/local/lib/python2.3/lib-dynload/strop.so", 2);
import strop # dynamically loaded
from /usr/local/lib/python2.3/lib-dynload/strop.so
>>>


import works just fine. 



w.



More information about the Zope mailing list