ftplib import error
Posted: Sat Jun 03, 2017 10:03 pm
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???
>>> 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???