Blynk lib for linux python : ssl problems

Hi,

I used Blynk python lib v0.2.0 with success with V1 Blynk app

Then I moved to BlynkLib v1.0.0 python to get access to new Blynk V2 platform, but I faced some problems :

1/ it is not really clear to me which is the correct python BlynkLib, I use :

2/ using this BlynkLib, I’m facing problems with ssl. it seems that ssl requests are not serialized by library, blynk requests within python threads leads to lose ssl connection :

  File "<myscript>.py", line 209, in my_virtual_write
    blynk.virtual_write(pin, msgchrono)
  File "/usr/local/lib/python3.6/dist-packages/BlynkLib.py", line 84, in virtual_write
    self._send(MSG_HW, 'vw', pin, *val)
  File "/usr/local/lib/python3.6/dist-packages/BlynkLib.py", line 117, in _send
    self._write(msg)
  File "/usr/local/lib/python3.6/dist-packages/BlynkLib.py", line 249, in _write
    self.conn.write(data)
  File "/usr/lib/python3.6/ssl.py", line 891, in write
    return self._sslobj.write(data)
  File "/usr/lib/python3.6/ssl.py", line 642, in write
    return self._sslobj.write(data)
OSError: [Errno 0] Error

3/ it seems that insecure Blynk authentication is supported by library, but not by platform :

  File "<myscript>.py", line 345, in __init__
    blynk = BlynkLib.Blynk(auth, insecure=True)
  File "/usr/local/lib/python3.6/dist-packages/BlynkLib.py", line 214, in __init__
    BlynkProtocol.__init__(self, auth, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/BlynkLib.py", line 81, in __init__
    self.connect()
  File "/usr/local/lib/python3.6/dist-packages/BlynkLib.py", line 245, in connect
    BlynkProtocol.connect(self)
  File "/usr/local/lib/python3.6/dist-packages/BlynkLib.py", line 125, in connect
    self._send(MSG_HW_LOGIN, self.auth)
  File "/usr/local/lib/python3.6/dist-packages/BlynkLib.py", line 117, in _send
    self._write(msg)
  File "/usr/local/lib/python3.6/dist-packages/BlynkLib.py", line 249, in _write
    self.conn.write(data)
AttributeError: 'socket' object has no attribute 'write'

can you please point me to the good direction ?
thanks a lot
Bruno

Hello, no python BlynkLib v1.0.0 user here ?
thank you
Bruno