Page 1 of 1

ftplib import error

Posted: Sat Jun 03, 2017 10:03 pm
by smgvbest
when I try to import ftplib i get the following error in ssl.py
>>> import ftplib
File "C:\Program Files (x86)\SharpCap 3.0\PythonLib.zip\ssl.py", line 1
# Wrapper module for _ssl, providing some additional facilities

^
SyntaxError: unexpected token '»'

>>>

looking at ssl.py in the zip archieve thier are indeed 3 hex characters in front of the #
this is the first line in hex.
00000000h: EF BB BF 23 20 57 72 61 70 70 65 72 20 6D 6F 64 ; # Wrapper mod
the EF BB BF are the problem characters. I removed them in a hex editor to fix it.

I don't know if this was a problem on my install or if everyone has it???

Re: ftplib import error

Posted: Sun Jun 04, 2017 6:35 am
by pgn
Same for me.

Re: ftplib import error

Posted: Sun Jun 04, 2017 6:52 am
by admin
Hi,

thanks for this - looks like that file contained a UTF8 signature header as the first few bytes for some reason. Have removed it and the next version will contain the fix.

cheers,

Robin

Re: ftplib import error

Posted: Wed Jun 07, 2017 11:44 pm
by smgvbest
Cool, thank you.


removed a comment as I see you replied elsewhere