ftplib import error

Discussions on extending SharpCap using the built in Python scripting functionality
Post Reply
smgvbest
Posts: 6
Joined: Mon May 29, 2017 6:11 pm

ftplib import error

Post by smgvbest » 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???

pgn
Posts: 15
Joined: Wed Mar 08, 2017 9:46 am

Re: ftplib import error

Post by pgn » Sun Jun 04, 2017 6:35 am

Same for me.

User avatar
admin
Site Admin
Posts: 1066
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: ftplib import error

Post by admin » Sun Jun 04, 2017 6:52 am

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

smgvbest
Posts: 6
Joined: Mon May 29, 2017 6:11 pm

Re: ftplib import error

Post by smgvbest » Wed Jun 07, 2017 11:44 pm

Cool, thank you.


removed a comment as I see you replied elsewhere

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest