I'm still working on this. There aren't any wierd characters in the file. Something else is going on. I've got Zope 2.3.2 installed and CMF 1.1 beta. The monthRange.py module that I'm trying to import is the same one that works on my Windows 2K machine and downloaded from cmf.zope.org. The directory I installed this too on this Windows ME machine is c:\Program Files\..., I am beginning to wonder whether that is the problem (the space in the dir name) in combination with running on this sort-of o/s. It's very puzzling. ----- Original Message ----- From: Dieter Maurer Sent: Tuesday, June 19, 2001 3:25 PM To: Frank McGeough Cc: zope@zope.org Subject: Re: [Zope] problems with adding monthRange.py as Python script object Frank McGeough writes:
I get the following traceback that looks like Zope's having trouble finding DateTime.
File "", line 2
from DateTime import DateTime
^
SyntaxError: invalid syntax Zope does not have a problem to find "DateTime". It reports a SyntaxError not an ImportError.
There may be something invisible after the "DateTime" that confuses the Python parser. Maybe, the indentation is wrong. You know, Python block structuring is based on indentation (I hate that but others are convinced, it is a major strength). One missing space or one to much, and you get a difficult to recognize syntax error. Dieter _______________________________________________ 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 )Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com