<?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 Re: Root cause analysis and Woraround for &amp;quot;Error: AttributeError: type object &amp;#39;Retry&amp;#39; has no attribute &amp;#39;DEFAULT_METHOD_WHITELIST&amp;#39;&amp;quo... in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/root-cause-analysis-and-woraround-for-quot-error-attributeerror/m-p/4765#M1393</link>
    <description>&lt;P&gt;Sure.&lt;/P&gt;&lt;P&gt;That's exactly what I wrote in "Workarounds" &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 06 May 2023 12:10:14 GMT</pubDate>
    <dc:creator>de-hru</dc:creator>
    <dc:date>2023-05-06T12:10:14Z</dc:date>
    <item>
      <title>Root cause analysis and Woraround for "Error: AttributeError: type object 'Retry' has no attribute 'DEFAULT_METHOD_WHITELIST'&amp;quo...</title>
      <link>https://community.databricks.com/t5/data-engineering/root-cause-analysis-and-woraround-for-quot-error-attributeerror/m-p/4763#M1391</link>
      <description>&lt;P&gt;Root cause analysis and Woraround for "Error: AttributeError: type object 'Retry' has no attribute 'DEFAULT_METHOD_WHITELIST'"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;---------------------------------------------&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Problem&lt;/B&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;B&gt;When using databricks-cli, starting with 4th of May this error occurs:&lt;/B&gt;&lt;UL&gt;&lt;LI&gt;Error: AttributeError: type object 'Retry' has no attribute 'DEFAULT_METHOD_WHITELIST'&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;databricks-cli exits and returns an error&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;---------------------------------------------&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Root cause analysis&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;databricks-cli &lt;/B&gt;depends on &lt;B&gt;requests&amp;gt;=2.17.3&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;requests &lt;/B&gt;depends on &lt;B&gt;urllib3&amp;lt;1.27,&amp;gt;=1.21.1&lt;/B&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Collecting urllib3&amp;lt;3,&amp;gt;=1.21.1 (from requests&amp;gt;=2.17.3-&amp;gt;databricks-cli)
  Downloading urllib3-2.0.2-py3-none-any.whl (123 kB)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;B&gt;Before 4th of May 2023:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Downloading urllib3-&lt;B&gt;1.26.15&lt;/B&gt;-py2.py3-none-any.whl (140 kB)&lt;/P&gt;&lt;P&gt;&amp;nbsp;-&amp;gt; There is a new(er) release of urllib3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;In &lt;B&gt;urllib3 - 2.0.0 &lt;/B&gt;(2023-04-26) we can see:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;"...Removed deprecated Retry options method_whitelist, DEFAULT_REDIRECT_HEADERS_BLACKLIST (#2086)..."&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And this is causing the error &lt;B&gt;Error: AttributeError: type object 'Retry' has no attribute 'DEFAULT_METHOD_WHITELIST'&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;---------------------------------------------&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Workarounds&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two possible workarounds available until now found:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;B&gt;No. 1&lt;/B&gt;&lt;UL&gt;&lt;LI&gt;add &lt;B&gt;urllib3==1.26.15&lt;/B&gt; to &lt;B&gt;requirements.txt&lt;/B&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;B&gt;No. 2&lt;/B&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE&gt;pip install -U databricks-cli
pip uninstall -y urllib3
pip install urllib3==1.26.15&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;B&gt;---------------------------------------------&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 14:05:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/root-cause-analysis-and-woraround-for-quot-error-attributeerror/m-p/4763#M1391</guid>
      <dc:creator>de-hru</dc:creator>
      <dc:date>2023-05-05T14:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Root cause analysis and Woraround for "Error: AttributeError: type object 'Retry' has no attribute 'DEFAULT_METHOD_WHITELIST'&amp;quo...</title>
      <link>https://community.databricks.com/t5/data-engineering/root-cause-analysis-and-woraround-for-quot-error-attributeerror/m-p/4765#M1393</link>
      <description>&lt;P&gt;Sure.&lt;/P&gt;&lt;P&gt;That's exactly what I wrote in "Workarounds" &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 06 May 2023 12:10:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/root-cause-analysis-and-woraround-for-quot-error-attributeerror/m-p/4765#M1393</guid>
      <dc:creator>de-hru</dc:creator>
      <dc:date>2023-05-06T12:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Root cause analysis and Woraround for "Error: AttributeError: type object 'Retry' has no attribute 'DEFAULT_METHOD_WHITELIST'&amp;quo...</title>
      <link>https://community.databricks.com/t5/data-engineering/root-cause-analysis-and-woraround-for-quot-error-attributeerror/m-p/4766#M1394</link>
      <description>&lt;P&gt;For what its worth I can confirm the pinning works.  I also pinned the requests package.  See my details here as I am using pipelines to handle deployment.  I've back linked this issue  on the databricks website to this item as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/microsoft/azdo-databricks/issues/59" target="test_blank"&gt;https://github.com/microsoft/azdo-databricks/issues/59&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 13:24:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/root-cause-analysis-and-woraround-for-quot-error-attributeerror/m-p/4766#M1394</guid>
      <dc:creator>apatel</dc:creator>
      <dc:date>2023-05-08T13:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Root cause analysis and Woraround for "Error: AttributeError: type object 'Retry' has no attribute 'DEFAULT_METHOD_WHITELIST'&amp;quo...</title>
      <link>https://community.databricks.com/t5/data-engineering/root-cause-analysis-and-woraround-for-quot-error-attributeerror/m-p/4764#M1392</link>
      <description>&lt;P&gt;Pinning the urllib3 version to "&lt;B&gt;1.26.15&lt;/B&gt;" should work fine. &lt;/P&gt;</description>
      <pubDate>Sat, 06 May 2023 06:28:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/root-cause-analysis-and-woraround-for-quot-error-attributeerror/m-p/4764#M1392</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2023-05-06T06:28:38Z</dc:date>
    </item>
  </channel>
</rss>

