<?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: Importing LanceDB Library Crashes Python Driver in Generative AI</title>
    <link>https://community.databricks.com/t5/generative-ai/importing-lancedb-library-crashes-python-driver/m-p/105255#M695</link>
    <description>&lt;P&gt;Is this issue specifically with this DBR, if you use a lower version of the DBR in the cluster do you see any difference? Have you been able to import this library in the near past?&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2025 19:22:54 GMT</pubDate>
    <dc:creator>Walter_C</dc:creator>
    <dc:date>2025-01-10T19:22:54Z</dc:date>
    <item>
      <title>Importing LanceDB Library Crashes Python Driver</title>
      <link>https://community.databricks.com/t5/generative-ai/importing-lancedb-library-crashes-python-driver/m-p/105251#M694</link>
      <description>&lt;P&gt;Hello, I am unable to import the LanceDB library.&lt;BR /&gt;&lt;BR /&gt;My environment is configured as follows:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Single Node of type g4dn.xlarge&lt;/LI&gt;&lt;LI&gt;DBR 16.1 ML for GPU&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Code to Reproduce:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;%pip install lancedb==0.17.0
dbutils.library.restartPython()

# Crashes on import
import lancedb&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The error details from the driver logs appear below.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance for your help.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;25/01/10 18:49:01 INFO PythonDriverLocalBase$RedirectThread: Python RedirectThread exit
25/01/10 18:49:01 INFO PythonDriverLocalBase$RedirectThread: Python RedirectThread exit
25/01/10 18:49:01 INFO ReplCrashUtils$: python shell exit code: 134; replId: ReplId-19450-b9978-b, pid: 69559
25/01/10 18:49:01 INFO ReplCrashUtils$: strace is not enabled. To turn it on, set the Spark conf `spark.databricks.driver.strace.enabled` to true.
25/01/10 18:49:01 INFO MlflowAutologEventPublisher$: Subscriber with repl ID ReplId-19450-b9978-b not responding to health checks, removing it
25/01/10 18:49:03 INFO ProgressReporter$: Removed result fetcher for 1736521127819_8384873761817337603_8ac6bfae05e44a7a97380a2a98919425
25/01/10 18:49:03 INFO PythonDriverWrapper: Repl ReplInfo(driverReplId=ReplId-19450-b9978-b, chauffeurReplId=ReplId-19450-b9978-b,
 executionContextId=Some(ExecutionContextIdV2(4019583506594996775)), lazyInfoInitialized=true) got an exception during execution
com.databricks.backend.common.rpc.SparkDriverExceptions$ReplStateException
    at com.databricks.backend.daemon.driver.JupyterKernelListener.waitForExecution(JupyterKernelListener.scala:1299)
    at com.databricks.backend.daemon.driver.JupyterKernelListener.executeCommand(JupyterKernelListener.scala:1350)
    at com.databricks.backend.daemon.driver.JupyterDriverLocal.executePython(JupyterDriverLocal.scala:1355)
    at com.databricks.backend.daemon.driver.JupyterDriverLocal.repl(JupyterDriverLocal.scala:1218)
    at com.databricks.backend.daemon.driver.DriverLocal.$anonfun$execute$33(DriverLocal.scala:1228)
    at com.databricks.unity.UCSEphemeralState$Handle.runWith(UCSEphemeralState.scala:51)
    at com.databricks.unity.HandleImpl.runWith(UCSHandle.scala:104)
    at com.databricks.backend.daemon.driver.DriverLocal.$anonfun$execute$28(DriverLocal.scala:1219)
    at com.databricks.logging.AttributionContextTracing.$anonfun$withAttributionContext$1(AttributionContextTracing.scala:49)
    at com.databricks.logging.AttributionContext$.$anonfun$withValue$1(AttributionContext.scala:295)
    at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
    at com.databricks.logging.AttributionContext$.withValue(AttributionContext.scala:291)
    at com.databricks.logging.AttributionContextTracing.withAttributionContext(AttributionContextTracing.scala:47)
    at com.databricks.logging.AttributionContextTracing.withAttributionContext$(AttributionContextTracing.scala:44)
    at com.databricks.backend.daemon.driver.DriverLocal.withAttributionContext(DriverLocal.scala:120)
    at com.databricks.logging.AttributionContextTracing.withAttributionTags(AttributionContextTracing.scala:96)
    at com.databricks.logging.AttributionContextTracing.withAttributionTags$(AttributionContextTracing.scala:77)
    at com.databricks.backend.daemon.driver.DriverLocal.withAttributionTags(DriverLocal.scala:120)
    at com.databricks.backend.daemon.driver.DriverLocal.$anonfun$execute$1(DriverLocal.scala:1151)
    at com.databricks.backend.daemon.driver.DriverLocal$.$anonfun$maybeSynchronizeExecution$4(DriverLocal.scala:1613)
    at com.databricks.backend.daemon.driver.DriverLocal.execute(DriverLocal.scala:816)
    at com.databricks.backend.daemon.driver.DriverWrapper.$anonfun$tryExecutingCommand$2(DriverWrapper.scala:1040)
    at scala.util.Try$.apply(Try.scala:213)
    at com.databricks.backend.daemon.driver.DriverWrapper.$anonfun$tryExecutingCommand$1(DriverWrapper.scala:1029)
    at com.databricks.backend.daemon.driver.DriverWrapper.$anonfun$tryExecutingCommand$3(DriverWrapper.scala:1075)
    at com.databricks.logging.UsageLogging.executeThunkAndCaptureResultTags$1(UsageLogging.scala:613)
    at com.databricks.logging.UsageLogging.$anonfun$recordOperationWithResultTags$4(UsageLogging.scala:636)
    at com.databricks.logging.AttributionContextTracing.$anonfun$withAttributionContext$1(AttributionContextTracing.scala:49)
    at com.databricks.logging.AttributionContext$.$anonfun$withValue$1(AttributionContext.scala:295)
    at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
    at com.databricks.logging.AttributionContext$.withValue(AttributionContext.scala:291)
    at com.databricks.logging.AttributionContextTracing.withAttributionContext(AttributionContextTracing.scala:47)
    at com.databricks.logging.AttributionContextTracing.withAttributionContext$(AttributionContextTracing.scala:44)
    at com.databricks.backend.daemon.driver.DriverWrapper.withAttributionContext(DriverWrapper.scala:81)
    at com.databricks.logging.AttributionContextTracing.withAttributionTags(AttributionContextTracing.scala:96)
    at com.databricks.logging.AttributionContextTracing.withAttributionTags$(AttributionContextTracing.scala:77)
    at com.databricks.backend.daemon.driver.DriverWrapper.withAttributionTags(DriverWrapper.scala:81)
    at com.databricks.logging.UsageLogging.recordOperationWithResultTags(UsageLogging.scala:608)
    at com.databricks.logging.UsageLogging.recordOperationWithResultTags$(UsageLogging.scala:517)
    at com.databricks.backend.daemon.driver.DriverWrapper.recordOperationWithResultTags(DriverWrapper.scala:81)
    at com.databricks.backend.daemon.driver.DriverWrapper.tryExecutingCommand(DriverWrapper.scala:1075)
    at com.databricks.backend.daemon.driver.DriverWrapper.executeCommandAndGetError(DriverWrapper.scala:777)
    at com.databricks.backend.daemon.driver.DriverWrapper.executeCommand(DriverWrapper.scala:870)
    at com.databricks.backend.daemon.driver.DriverWrapper.$anonfun$runInnerLoop$1(DriverWrapper.scala:641)
    at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
    at com.databricks.logging.AttributionContextTracing.$anonfun$withAttributionContext$1(AttributionContextTracing.scala:49)
    at com.databricks.logging.AttributionContext$.$anonfun$withValue$1(AttributionContext.scala:295)
    at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
    at com.databricks.logging.AttributionContext$.withValue(AttributionContext.scala:291)
    at com.databricks.logging.AttributionContextTracing.withAttributionContext(AttributionContextTracing.scala:47)
    at com.databricks.logging.AttributionContextTracing.withAttributionContext$(AttributionContextTracing.scala:44)
    at com.databricks.backend.daemon.driver.DriverWrapper.withAttributionContext(DriverWrapper.scala:81)
    at com.databricks.backend.daemon.driver.DriverWrapper.runInnerLoop(DriverWrapper.scala:636)
    at com.databricks.backend.daemon.driver.DriverWrapper.runInner(DriverWrapper.scala:559)
    at com.databricks.backend.daemon.driver.DriverWrapper.run(DriverWrapper.scala:342)
    at java.base/java.lang.Thread.run(Thread.java:840)
25/01/10 18:49:03 INFO JupyterDriverLocal: restart JupyterDriverLocal repl ReplId-19450-b9978-b
25/01/10 18:49:03 ERROR WsfsHttpClient: Failed to get pid namespace id for 69559 with error java.nio.file.NoSuchFileException: /proc/69559/ns/pid
25/01/10 18:49:03 ERROR WsfsHttpClient: Failed to get pid namespace id for 69559 with error java.nio.file.NoSuchFileException: /proc/69559/ns/pid
25/01/10 18:49:04 INFO JupyterDriverLocal: Starting gateway server for repl ReplId-19450-b9978-b
25/01/10 18:49:04 INFO PythonPy4JUtil: Using pinned thread mode in Py4J
25/01/10 18:49:04 INFO IpykernelUtils$: Python process builder: [bash, /local_disk0/.ephemeral_nfs/envs/pythonEnv-f3a0c4e2-8f30-4fc1-8c6c-295c655d85fc/python_start_notebook_scoped.sh, /databricks/spark/python/pyspark/wrapped_python.py, root, /local_disk0/.ephemeral_nfs/envs/pythonEnv-f3a0c4e2-8f30-4fc1-8c6c-295c655d85fc/bin/python, /databricks/python_shell/scripts/db_ipykernel_launcher.py, -f, /databricks/kernel-connections/13a59ac434ad4d83c7b049b615b53fc6b0f9db1e77778881fdd6080e805f7702.json]
25/01/10 18:49:04 INFO IpykernelUtils$: Cgroup isolation disabled, not placing python process with ReplId=ReplId-19450-b9978-b in repl cgroup&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 19:13:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/importing-lancedb-library-crashes-python-driver/m-p/105251#M694</guid>
      <dc:creator>txti</dc:creator>
      <dc:date>2025-01-10T19:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Importing LanceDB Library Crashes Python Driver</title>
      <link>https://community.databricks.com/t5/generative-ai/importing-lancedb-library-crashes-python-driver/m-p/105255#M695</link>
      <description>&lt;P&gt;Is this issue specifically with this DBR, if you use a lower version of the DBR in the cluster do you see any difference? Have you been able to import this library in the near past?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 19:22:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/importing-lancedb-library-crashes-python-driver/m-p/105255#M695</guid>
      <dc:creator>Walter_C</dc:creator>
      <dc:date>2025-01-10T19:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Importing LanceDB Library Crashes Python Driver</title>
      <link>https://community.databricks.com/t5/generative-ai/importing-lancedb-library-crashes-python-driver/m-p/105259#M696</link>
      <description>&lt;P&gt;I retried with 15.4 LTS for ML and was able to import LanceDB.&lt;BR /&gt;&lt;BR /&gt;Hopefully it is fixed in DBR &amp;gt; 16.1&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Manny&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 20:01:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/importing-lancedb-library-crashes-python-driver/m-p/105259#M696</guid>
      <dc:creator>txti</dc:creator>
      <dc:date>2025-01-10T20:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Importing LanceDB Library Crashes Python Driver</title>
      <link>https://community.databricks.com/t5/generative-ai/importing-lancedb-library-crashes-python-driver/m-p/105260#M697</link>
      <description>&lt;P&gt;Good to know, let me do some research to see if there is any conflict that can cause this, also 16.2 is upcoming so will be good to check if this provides improvements including this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 20:10:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/importing-lancedb-library-crashes-python-driver/m-p/105260#M697</guid>
      <dc:creator>Walter_C</dc:creator>
      <dc:date>2025-01-10T20:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Importing LanceDB Library Crashes Python Driver</title>
      <link>https://community.databricks.com/t5/generative-ai/importing-lancedb-library-crashes-python-driver/m-p/105261#M698</link>
      <description>&lt;P&gt;You have mentioned the error on the driver logs, but what is the specific error mentioned on the cell output when run?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 20:17:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/importing-lancedb-library-crashes-python-driver/m-p/105261#M698</guid>
      <dc:creator>Walter_C</dc:creator>
      <dc:date>2025-01-10T20:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Importing LanceDB Library Crashes Python Driver</title>
      <link>https://community.databricks.com/t5/generative-ai/importing-lancedb-library-crashes-python-driver/m-p/105262#M699</link>
      <description>&lt;P&gt;I get&amp;nbsp;&lt;SPAN&gt;The Python kernel is unresponsive. let me know if it is the same for you&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 20:38:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/importing-lancedb-library-crashes-python-driver/m-p/105262#M699</guid>
      <dc:creator>Walter_C</dc:creator>
      <dc:date>2025-01-10T20:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Importing LanceDB Library Crashes Python Driver</title>
      <link>https://community.databricks.com/t5/generative-ai/importing-lancedb-library-crashes-python-driver/m-p/105265#M700</link>
      <description>&lt;P&gt;Hello Walter, i received the same error since 2hours: "The Python kernel is unresponsive."&lt;BR /&gt;But i was running a sql action from databricks to postgresql&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 21:59:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/importing-lancedb-library-crashes-python-driver/m-p/105265#M700</guid>
      <dc:creator>victor58</dc:creator>
      <dc:date>2025-01-10T21:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Importing LanceDB Library Crashes Python Driver</title>
      <link>https://community.databricks.com/t5/generative-ai/importing-lancedb-library-crashes-python-driver/m-p/105266#M701</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/142058"&gt;@victor58&lt;/a&gt;&amp;nbsp;thanks for your question, on your case lets start with validations based on KB&amp;nbsp;&lt;A href="https://kb.databricks.com/en_US/clusters/python-kernel-is-unresponsive-error-message" target="_blank"&gt;https://kb.databricks.com/en_US/clusters/python-kernel-is-unresponsive-error-message&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 22:02:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/importing-lancedb-library-crashes-python-driver/m-p/105266#M701</guid>
      <dc:creator>Walter_C</dc:creator>
      <dc:date>2025-01-10T22:02:01Z</dc:date>
    </item>
  </channel>
</rss>

