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???
ftplib import error
- admin
- Site Admin
- Posts: 13339
- Joined: Sat Feb 11, 2017 3:52 pm
- Location: Vale of the White Horse, UK
- Contact:
Re: ftplib import error
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
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
Cool, thank you.
removed a comment as I see you replied elsewhere
removed a comment as I see you replied elsewhere