WorldPilot on NT4- Storage.LocalStorage problems
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'
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
On Thu, Apr 13, 2000 at 12:09:52PM +0200, Ryan Hughes wrote:
Hi Andrew, Hi to all of the Win32 WorldPilot Users,
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 ...
That's exactly what I used.
BTW: if you'd use the CygWin GNU Toolkit's tar command, you wouldn't have this problem ;-) (Or simply run Linux ;-)
I got this and its a great thing to have on NT. WP installed and works great-- except for one thing: sending mail. I think it expects the localhost (in this case, an NT machine of course) to be running sendmail-- is this the case? when I try to send any message I get a Zope error (no traceback). This is a -virgin- NT machine set up to test this: - nt 4 server, SP6 - Python 1.5.2 - Zope 2.1.6 - WorldPilot 1.0.4 Does WP reply on sendmail on the localhost? We are testing out web-mail interfaces, and we need them to be able to run on NT. One other very important question is _what_ exactly is WP (and Zope) doing with the imap passwords? Are they: - written to disk anywhere on the local host - put into cookies? (i don't see any) - put into tokens? - How are they flushed out if you _don't_ use the Logout? - What does the Logout fucntion do to remove cached passwords? (if any) thanks, andy diller isc ness Univ of Pennsylvania p.s. I'm suprised how _fast_ WP is on NT-- python and zope really run _well_!!!
participants (2)
-
dillera@isc.upenn.edu -
Ryan Hughes