Wouter Vanden Hove wrote:
Thomas Schorr wrote:
* on the python prompt, enter:
import sys sys.path
you should find difflib.py in one of the directories listed here. Or try to import difflib from here:
import difflib
What happens?
the error is get is File "/opt/Zope-2.7.3-0/lib/python/OFS/History.py", line 20, in ? import Globals, ExtensionClass, difflib
so before the import statemens I added import sys sys.path to this the /opt/Zope-2.7.3-0/lib/python/OFS/History.py
[root@minfpc26 Zope-2.7.3-0]# ./bin/runzope ------ ... 2004-11-04T20:10:19 INFO(0) Zope Set effective user to "apache" ['/opt/Zope-2.7.3-0/lib/python', '/opt/Zope-2.7.3-0/lib/python', '/opt/Zope-2.7.3-0/lib/python/Zope/Startup', '/usr/local/lib/python2.3', '/opt/Zope-2.7.3-0/lib/python', '/usr/local/lib/python23.zip', '/usr/local/lib/python2.3/plat-linux2', '/usr/local/lib/python2.3/lib-tk', '/usr/local/lib/python2.3/lib-dynload', '/usr/local/lib/python2.3/site-packages', '/usr/local/lib/python2.3/site-packages/PIL'] Traceback (most recent call last): File "/opt/Zope-2.7.3-0/lib/python/Zope/Startup/run.py", line 50, in ? run() File "/opt/Zope-2.7.3-0/lib/python/Zope/Startup/run.py", line 19, in run start_zope(opts.configroot) File "/opt/Zope-2.7.3-0/lib/python/Zope/Startup/__init__.py", line 51, in start_zope starter.startZope() File "/opt/Zope-2.7.3-0/lib/python/Zope/Startup/__init__.py", line 230, in startZope Zope.startup() File "/opt/Zope-2.7.3-0/lib/python/Zope/__init__.py", line 46, in startup from Zope.App.startup import startup as _startup File "/opt/Zope-2.7.3-0/lib/python/Zope/App/startup.py", line 30, in ? import OFS.Application File "/opt/Zope-2.7.3-0/lib/python/OFS/Application.py", line 17, in ? import Globals,Folder,os,sys,App.Product, App.ProductRegistry, misc_ File "/opt/Zope-2.7.3-0/lib/python/App/Product.py", line 42, in ? import ZClasses, AccessControl.Owned File "/opt/Zope-2.7.3-0/lib/python/ZClasses/__init__.py", line 20, in ? import ZClass File "/opt/Zope-2.7.3-0/lib/python/ZClasses/ZClass.py", line 16, in ? import Method, Basic, Property, AccessControl.Role, re File "/opt/Zope-2.7.3-0/lib/python/ZClasses/Method.py", line 23, in ? from OFS.DTMLMethod import DTMLMethod File "/opt/Zope-2.7.3-0/lib/python/OFS/DTMLMethod.py", line 17, in ? import History File "/opt/Zope-2.7.3-0/lib/python/OFS/History.py", line 20, in ? import Globals, ExtensionClass, difflib ImportError: No module named difflib
so /usr/local/lib/python2.3 is indeed in the pythonpath
difflib.py is in directory /usr/local/lib/python2.3
Then what goes wrong?
w.
I don't know if this can be the case, but since difflib is the last import on the line, can it be that there is some spurious character at the end? Try opening it with vi with a -b option, and check it. Or open it without the -b option, and watch if on the last line there is a [dos] label. Also, try to rewrite the line from scratch. Regards Marco