Skip to content

Azure Automation Python 3.10 ImportError: libodbc.so.2: cannot open shared object file: No such file or directory #1416

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
MSNina123456 opened this issue Apr 3, 2025 · 0 comments

Comments

@MSNina123456
Copy link

pyodbc https://pypi.org/project/pyodbc/5.2.0/ can be imported to Azure automation successfully, but cannot use it in runbook.

Repro runbook script:
#!/usr/bin/env python3
import pyodbc

runtime version: Python 3.10

error message:
Traceback (most recent call last): File "/usr/src/tmp/e33fbf72-bb07-4539-b139-277bbea3feb4/runbooks/testpy.py", line 3, in import pyodbc ImportError: libodbc.so.2: cannot open shared object file: No such file or directory

it works well with Python 3.8.

It seems an issue with libodbc, but cannot apply the workaround in #1133 because we cannot install anything in automation sandbox.

Need fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant