syntax-error with new Python 2.1 and pyFTPd.py and pyFTPdrop.py

Georg Lohrer rerhol at gmx.de
Thu Apr 19 02:05:51 EDT 2001


On Wed, 18 Apr 2001 15:42:17 GMT, Fredrik Lundh <fredrik at pythonware.com> wrote:
>Georg Lohrer wrote:
>> I've just compiled and run the new python 2.1 version successfully.
>> But using the pyFTPd.py and pyFTPdrop.py scripts the same syntax-error
>> will be raised in socket.py:
>>
>>  import sys, socket, string, os, os.path, time, fnmatch, types
>>    File "/home/gelo/lib/python2.1/socket.py", line 251
>>        total += len(line)
>>               ^
>> I've tried several ways to cast out the failure, but it doesn't want
>> to go. So, has anybody at moment have any experiences with this fault?
>> Or does anybody know a way to eliminate it?
>
>I strongly doubt Python said "I've tried several ways to cast out
>the failure" ;-)
>
>are you sure you didn't get a SyntaxError or some kind of warning?
>

Hmm, the complete message is:

'import site' failed; use -v for traceback
Traceback (innermost last):
  File "./pyFTPdrop.py", line 14, in ?
      import sys, syslog, socket,string, os
        File "/user/lgx00460/lib/python2.1/socket.py", line 251
            total += len(line)
               ^          

Does that clear up anything?

Ciao, Georg



More information about the Python-list mailing list