Well, I give up. It's the strangest thing. Any Python script I try and add externally that has more than 1 line in it doesn't work (gives syntax error). I ran the install again and I notice that it gets an error while trying to compile the Python modules. The error flashes by so fast I am not sure what it is. The error isn't in the install.log. Where else would Zope install put install errors?
From: Frank McGeough
Sent: Tuesday, June 19, 2001 8:40 PM
To: Dieter Maurer
Cc: zope@zope.org
Subject: Re: [Zope] problems with adding monthRange.py as Python script object
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