cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Issue importing library deltalake

Gcabrera
New Contributor

Hello,

I'm currently seeing a rather cryptic error message whenever I try to import the deltalake library into Databricks (without actually doing anything else).

import datalake

Gcabrera_0-1701937296901.png

"ImportError: /local_disk0/.ephemeral_nfs/envs/pythonEnv-cbe496f6-d064-40ae-87c0-ab3d3c23ccb3/lib/python3.9/site-packages/deltalake/_internal.abi3.so: cannot allocate memory in static TLS block"

However the library seems to work just fine locally or within an SH cell.

Gcabrera_1-1701937506250.png

Gcabrera_2-1701937513959.png

I have tried quite a few things but nothing really seems to work:

  1. Installing various versions of the library (and its dependencies).
  2. Installing the library via %pip %sh !pip or the cluster/job tab.
  3. Setting a system variable in an SH cell: export LD_PRELOAD
  4. Restarting python interpreter.
  5. Increasing cluster memory.
  6. Only importing a single class from the library.

 

Any insight you may have would be greatly appreciated.

 

Best regards,

Gustavo

1 REPLY 1

jose_gonzalez
Moderator
Moderator

Are you trying to import this library to a Databricks notebook? are you using open source spark in your local machine?

 

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.