title: EventHub connection using Python libraries azure-eventhub 5.0.0
body: <p>All,</p>
  <p>I inadvertently uninstalled EventHub <a href="https://pypi.org/project/azure-eventhub/1.3.3/" rel="nofollow noreferrer">V1.3.3</a> and installed the latest <a href="https://pypi.org/project/azure-eventhub/#description" rel="nofollow noreferrer">V5.0.0</a>. I had to change the code that I had but I never got it to work. <strong>Below is the code:</strong></p>
  <pre class="lang-py prettyprint-override"><code>    from azure.eventhub import EventHubProducerClient, EventData
      
      connection_str = 'Endpoint=sb://eventhubns20.servicebus.windows.net/;SharedAccessKeyName=eventhub20_pol;SharedAccessKey=xxxxxxxxxx=;EntityPath=eventhub20' eventhub_name = 'eventhub20'
      
      client = EventHubProducerClient.from_connection_string(connection_str, eventhub_name=eventhub_name)
      
      event_data_batch = client.create_batch()
  </code></pre>
  <p>Below is the error:</p>
  <pre class="lang-sh prettyprint-override"><code>Traceback:
    File &quot;C:\Users\grajee\AppData\Local\Programs\Python\Python38-32\lib\site-packages\uamqp\authentication\cbs_auth.py&quot;, line 69, in create_authenticator
      self._cbs_auth = c_uamqp.CBSTokenAuth(
    File &quot;.\src/cbs.pyx&quot;, line 73, in uamqp.c_uamqp.CBSTokenAuth.__cinit__
  ValueError: Unable to open CBS link.
  </code></pre>
  <p>The error is on this line - <code>event_data_batch = client.create_batch()</code>.</p>
  <p>Has anyone experienced this error. If it is too much of work I might have to rollback to V1.3.3. The Python version is V3.8.1 on Windows.</p>