<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Databricks - python error when importing wheel distribution package in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-python-error-when-importing-wheel-distribution/m-p/32143#M23419</link>
    <description>&lt;P&gt;In previous days all notebooks containing : 'import anomalydetection' worked just fine. There was no change in any configuration of the cluster, notebook or our imported library.&lt;/P&gt;&lt;P&gt;However recently notebooks just crashed with below error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same happen also in the other clusters containing this library.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;TypeError: Descriptors cannot not be created directly. If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc bigger= 3.19.0. If you cannot immediately regenerate your protos, some other possible workarounds are: 1. Downgrade the protobuf package to 3.20.x or lower. 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As workaround i've set env variable PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python and started to work. As per recommendation this may slow down operations, what could the other solution?&lt;/P&gt;</description>
    <pubDate>Fri, 09 Sep 2022 11:44:45 GMT</pubDate>
    <dc:creator>Mohit_m</dc:creator>
    <dc:date>2022-09-09T11:44:45Z</dc:date>
    <item>
      <title>Databricks - python error when importing wheel distribution package</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-python-error-when-importing-wheel-distribution/m-p/32143#M23419</link>
      <description>&lt;P&gt;In previous days all notebooks containing : 'import anomalydetection' worked just fine. There was no change in any configuration of the cluster, notebook or our imported library.&lt;/P&gt;&lt;P&gt;However recently notebooks just crashed with below error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same happen also in the other clusters containing this library.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;TypeError: Descriptors cannot not be created directly. If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc bigger= 3.19.0. If you cannot immediately regenerate your protos, some other possible workarounds are: 1. Downgrade the protobuf package to 3.20.x or lower. 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As workaround i've set env variable PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python and started to work. As per recommendation this may slow down operations, what could the other solution?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 11:44:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-python-error-when-importing-wheel-distribution/m-p/32143#M23419</guid>
      <dc:creator>Mohit_m</dc:creator>
      <dc:date>2022-09-09T11:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks - python error when importing wheel distribution package</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-python-error-when-importing-wheel-distribution/m-p/32144#M23420</link>
      <description>&lt;P&gt;&lt;B&gt;Solution: T&lt;/B&gt;his is due to the latest version of protobuf library, please try to downgrade the library which should solve the issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pip install protobuf==3.20.*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;protobuf library versions which works: 3.20.1  if it does not work then try 3.18.1&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 11:45:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-python-error-when-importing-wheel-distribution/m-p/32144#M23420</guid>
      <dc:creator>Mohit_m</dc:creator>
      <dc:date>2022-09-09T11:45:37Z</dc:date>
    </item>
  </channel>
</rss>

