<?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 numpy.ndarray size changed, may indicate binary incompatibility in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/numpy-ndarray-size-changed-may-indicate-binary-incompatibility/m-p/36942#M7544</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have installed the following libraries on my cluster (&lt;SPAN&gt;11.3 LTS that includes Apache Spark 3.3.0, Scala 2.12)&lt;/SPAN&gt;:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;numpy==1.21.4&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;flair==0.12&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;‎&lt;SPAN&gt;on executing `from flair.models import TextClassifier`, I get the following error:&lt;BR /&gt;"numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject"&lt;BR /&gt;&lt;BR /&gt;I have tried many things including updating numpy, downgrading numpy, changing the cluster specifications but all have failed.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 04 Jul 2023 15:23:44 GMT</pubDate>
    <dc:creator>esi</dc:creator>
    <dc:date>2023-07-04T15:23:44Z</dc:date>
    <item>
      <title>numpy.ndarray size changed, may indicate binary incompatibility</title>
      <link>https://community.databricks.com/t5/get-started-discussions/numpy-ndarray-size-changed-may-indicate-binary-incompatibility/m-p/36942#M7544</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have installed the following libraries on my cluster (&lt;SPAN&gt;11.3 LTS that includes Apache Spark 3.3.0, Scala 2.12)&lt;/SPAN&gt;:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;numpy==1.21.4&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;flair==0.12&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;‎&lt;SPAN&gt;on executing `from flair.models import TextClassifier`, I get the following error:&lt;BR /&gt;"numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject"&lt;BR /&gt;&lt;BR /&gt;I have tried many things including updating numpy, downgrading numpy, changing the cluster specifications but all have failed.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Jul 2023 15:23:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/numpy-ndarray-size-changed-may-indicate-binary-incompatibility/m-p/36942#M7544</guid>
      <dc:creator>esi</dc:creator>
      <dc:date>2023-07-04T15:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: numpy.ndarray size changed, may indicate binary incompatibility</title>
      <link>https://community.databricks.com/t5/get-started-discussions/numpy-ndarray-size-changed-may-indicate-binary-incompatibility/m-p/39156#M7545</link>
      <description>&lt;P&gt;You have changed the numpy version, and presumably that is not compatible with other libraries in the runtime. If flair requires later numpy, then use a later DBR runtime for best results, which already has later numpy versions&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 15:17:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/numpy-ndarray-size-changed-may-indicate-binary-incompatibility/m-p/39156#M7545</guid>
      <dc:creator>sean_owen</dc:creator>
      <dc:date>2023-08-04T15:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: numpy.ndarray size changed, may indicate binary incompatibility</title>
      <link>https://community.databricks.com/t5/get-started-discussions/numpy-ndarray-size-changed-may-indicate-binary-incompatibility/m-p/75254#M7546</link>
      <description>&lt;P&gt;We also get similar error for numpy 2.0&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/78650222/valueerror-numpy-dtype-size-changed-may-indicate-binary-incompatibility-expec" target="_blank"&gt;https://stackoverflow.com/questions/78650222/valueerror-numpy-dtype-size-changed-may-indicate-binary-incompatibility-expec&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 03:51:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/numpy-ndarray-size-changed-may-indicate-binary-incompatibility/m-p/75254#M7546</guid>
      <dc:creator>Eddy123</dc:creator>
      <dc:date>2024-06-21T03:51:07Z</dc:date>
    </item>
  </channel>
</rss>

