[Zope] WorldPilot on NT4- Storage.LocalStorage problems
Ryan Hughes
Worldpilot Helpers <helpers@worldpilot.org>
Thu, 13 Apr 2000 12:09:52 +0200
Hi Andrew, Hi to all of the Win32 WorldPilot Users,
Sorry, I've been trying for a while to reconstruct what's going wrong
with your NT installations, but never could recreate the same problem.
So I set up a new virtual box (in vmware) from scratch, to try to find
out what could go wrong when installing a fresh worldpilot installation:
It turned out to be neither WorldPilot, Zope, Python or a PYTHONPATH
issue:
It probably is this program called WinZip :-( (assuming you used it to
unpack the distribution)
It seems, that WinZip simply skips empty files and doesn't
create/extract them. Very, very stange behaviour ...
The file involved is:
.../Zope.../lib/python/Products/WorldPilot/Storage/__init__.py
Since it doesn't get created by WinZip, it's missing, and therefore the
import statement fails.
Solution:
create an empty file called __init__.py in the
.../Zope.../lib/python/Products/WorldPilot/Storage/ directory.
Then your system should be running fine :-)
BTW: if you'd use the CygWin GNU Toolkit's tar command, you wouldn't
have this problem ;-) (Or simply run Linux ;-)
Have fun
Cheers,
Ryan
Andrew Diller wrote:
>
> hello- I'm trying to get WP 1.0.4 working on NT4.
>
> I've fixed a minor problem where it couldn't load Storage.LocalStorage, (I
> changed it just to LocalStorage) but now this has opened a bigger can of worms.
>
> In LocalStorage.py (a WorldPilot module) it seems to be setting the ROOT PATH wrong.
>
> It looks like its trying to load all the graphics for the site, which are located in
> Products/WorldPilot/Storage. its calling lib\python\App\Imagefile.py and that seems
> to think the root path is:
>
> C:\\WINNTSVR\\system32
>
> where it should be:
>
> C:\\Program Files\\zope\\lib\\python\\Products\\WorldPilot
>
> I can't see where this ROOT PATH is being set in LocalStorage or Imagefile.
>
> And WorldPiloteers out there lend a hand?
>
> thanks,
>
> andy diller
>
> Traceback:
> -------------
>
> WorldPilot Import Traceback
>
> Traceback (innermost last):
> File "C:\PROGRA~1\zope\lib\python\OFS\Application.py", line 387, in
> import_products
> product=__import__(pname, global_dict, global_dict, silly)
> File "C:\PROGRA~1\zope\lib\python\Products\WorldPilot\__init__.py", line 94, in ?
> import WorldPilot
> File "C:\PROGRA~1\zope\lib\python\Products\WorldPilot\WorldPilot.py", line 1213,
> in ?
> import LocalStorage
> File "c:\Program
> Files\zope\lib\python\Products\WorldPilot\Storage\LocalStorage.py", line 608, in ?
> class WorldPilotMonolithicFolderObject(
> File "c:\Program
> Files\zope\lib\python\Products\WorldPilot\Storage\LocalStorage.py", line 613, in
> WorldPilotMonolithicFolderObject
> wpnavdown=ImageFile('wpnavdown.gif',globals())
> File "C:\PROGRA~1\zope\lib\python\App\ImageFile.py", line 110, in __init__
> file=open(path, 'rb')
> IOError: [Errno 2] No such file or directory:
> 'C:\\WINNTSVR\\system32\\LocalStorage/wpnavdown.gif'
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
--
Ryan Hughes <rh@n-h.net>
Neuberger & Hughes GmbH http://www.n-h.net
___________________________________________________
WorldPilot Get Synched - http://www.worldpilot.org
The Open Source Personal Information Manager Server
Powered by Python and Zope - http://www.zope.org