Hi, I installed Zope 2.8.5 for Windows (to use with Plone, moving from 2.7.4). I cannot start Zope in debug mode since I get errors about missing images. At least SiteErrorLog and OFSP complains about missing icons, though files are there. Looks like Zope just can't find them. IOError: [Errno 2] No such file or directory: 'images/version.gif' This happens on two machines I have tested. I might be doing something wrong in my setup/installation, but don't know what. Any hints to fix it? -Mikko Stdout: NOTICE global_symbols.py:22:Tue Jan 24 12:55:30 2006: 'Starting C:\\runtime- workspace\\hrm\\Data\\Products\\GroupUserFolder at 4 debug level' 2006-01-24 12:55:30 WARNING Init Class Products.GroupUserFolder.GroupUserFolder. GroupUserFolder has a security declaration for nonexistent method 'isLUFMappingCorrect' 2006-01-24 12:55:30 WARNING Init Class Products.GroupUserFolder.GroupUserFolder. GroupUserFolder has a security declaration for nonexistent method 'isLUFMappingCorrect' 2006-01-24 12:55:30 ERROR Zope Could not import Products.OFSP Traceback (most recent call last): File "C:\runtime-workspace\hrm\Zope\lib\python\OFS\Application.py", line 698, in import_product product=__import__(pname, global_dict, global_dict, silly) File "C:\runtime-workspace\hrm\Zope\lib\python\Products\OFSP\__init__.py", line 43, in ? misc_={ File "C:\runtime-workspace\hrm\Python\Lib\site-packages\PIL\ImageFile.py", line 70, in __init__ self.fp = open(fp, "rb") IOError: [Errno 2] No such file or directory: 'images/version.gif' Traceback (most recent call last): File "C:\runtime-workspace\hrm\Zope\lib\python\Zope2\Startup\run.py", line 56, in ? run() File "C:\runtime-workspace\hrm\Zope\lib\python\Zope2\Startup\run.py", line 21, in run starter.prepare() File "C:\runtime-workspace\hrm\Zope\lib\python\Zope2\Startup\__init__.py", line 98, in prepare self.startZope() File "C:\runtime-workspace\hrm\Zope\lib\python\Zope2\Startup\__init__.py", line 257, in startZope Zope2.startup() File "C:\runtime-workspace\hrm\Zope\lib\python\Zope2\__init__.py", line 47, in startup _startup() File "C:\runtime-workspace\hrm\Zope\lib\python\Zope2\App\startup.py", line 45, in startup OFS.Application.import_products() File "C:\runtime-workspace\hrm\Zope\lib\python\OFS\Application.py", line 675, in import_products import_product(product_dir, product_name, raise_exc=debug_mode) File "C:\runtime-workspace\hrm\Zope\lib\python\OFS\Application.py", line 698, in import_product product=__import__(pname, global_dict, global_dict, silly) File "C:\runtime-workspace\hrm\Zope\lib\python\Products\OFSP\__init__.py", line 43, in ? misc_={ File "C:\runtime-workspace\hrm\Python\Lib\site-packages\PIL\ImageFile.py", line 70, in __init__ self.fp = open(fp, "rb") IOError: [Errno 2] No such file or directory: 'images/version.gif'
Mikko Ohtamaa wrote at 2006-1-24 11:04 +0000:
I installed Zope 2.8.5 for Windows (to use with Plone, moving from 2.7.4). I cannot start Zope in debug mode since I get errors about missing images. At least SiteErrorLog and OFSP complains about missing icons, though files are there. Looks like Zope just can't find them.
IOError: [Errno 2] No such file or directory: 'images/version.gif'
Obviously, the file is refered to by a relative pathname and the working directory is not adequate for this relative access. Filesystem objects should always be referenced with absolute pathnames.
... in import_product product=__import__(pname, global_dict, global_dict, silly) File "C:\runtime-workspace\hrm\Zope\lib\python\Products\OFSP\__init__.py", line 43, in ? misc_={ File "C:\runtime-workspace\hrm\Python\Lib\site-packages\PIL\ImageFile.py", line 70, in __init__ self.fp = open(fp, "rb") IOError: [Errno 2] No such file or directory: 'images/version.gif'
This looks like an import order problem. Zope has itself an "ImageFile" module. Apparently, mistakenly, the "PIL" "ImageFile" is used instead. And it behaves very differently. Obviously, "PIL" is before Zope's software home in your "PYTHONPATH" (aka "sys.path"). Try to prevent this... -- Dieter
participants (2)
-
Dieter Maurer -
Mikko Ohtamaa