admin管理员组文章数量:1389927
How do I solve this error in my Databricks Apps when using the pyodbc
library? I have used an init script to install the library in my cluster, which has resolved the issue in Notebooks. However, the problem persists in Apps. I have used the following commands in my init script:
sudo apt-get update
sudo apt-get install -y libodbc2
sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18
How do I solve this error in my Databricks Apps when using the pyodbc
library? I have used an init script to install the library in my cluster, which has resolved the issue in Notebooks. However, the problem persists in Apps. I have used the following commands in my init script:
sudo apt-get update
sudo apt-get install -y libodbc2
sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18
Share
Improve this question
asked Mar 14 at 13:32
Obirieni SimeoObirieni Simeo
998 bronze badges
1
- Can you provide the exact error message? – Rakesh Govindula Commented Mar 21 at 12:40
1 Answer
Reset to default 0I have tried the below code to install:
You can try the below at your end:
dbutils.fs.put("/databricks/init/<YourClusterName>/pyodbc-install.sh","""
#!/bin/bash
sudo apt-get update
sudo apt-get -q -y install unixodbc unixodbc-dev
sudo apt-get -q -y install python3-dev
/databricks/python/bin/pip install pyodbc
""", True)
- Restart the cluster and then import
pyodbc
in your code.
Results:
版权声明:本文标题:Databricks App Error - libodbc.so.2: cannot open shared object file: No such file or directory - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744653713a2617838.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论