Bulk copy fails on RHEL 8 / aarch64 with mssql-python 1.8.0: bundled `mssql_py_core` requires libssl.so.3 and GLIBC ≥ 2.34, but wheel is tagged `manylinux_2_28_aarch64`
メンテナーはふだん 2 日以内に返信
@bewithgaurav がすでに取り組んでいます。
2026年6月3日 から。
評価
この issue はまだ評価されていません。
説明
Summary
On a fresh RHEL 8.10 aarch64 host, mssql-python==1.8.0 installs cleanly from PyPI, but invoking bulk copy raises:
ImportError: Bulk copy requires the mssql_py_core library which is not available. This is an unexpected error.
This matches the report at https://www.reddit.com/r/SQLServer/comments/1trcsy7/comment/op95k4b/.
After investigation, the underlying cause appears to be that the bundled mssql_py_core extension shipped inside the manylinux_2_28_aarch64 wheel has runtime requirements (libssl.so.3, libcrypto.so.3, GLIBC_2.34) that exceed what the manylinux_2_28 tag promises (RHEL 8 / glibc 2.28 / OpenSSL 1.1). I may be wrong about the exact build-time root cause, but the loader-level symptoms are reproducible and shown below.
Environment
- OS: Red Hat Enterprise Linux release 8.10 (Ootpa)
- Arch: aarch64
- Python: 3.11.x (from
python3.11RHEL AppStream module) - Install:
pip install mssql-python==1.8.0in a clean venv - glibc on host: 2.28
- OpenSSL on host: 1.1.1k (no
libssl.so.3present)
Reproduction
sudo dnf install -y python3.11 python3.11-pip libtool-ltdl krb5-libs
python3.11 -m venv ~/mssqltest
source ~/mssqltest/bin/activate
pip install --upgrade pip
pip install mssql-python==1.8.0
python -c "import mssql_py_core"
Observations
1. mssql_py_core is in fact bundled (contrary to what the error message implies)
The mssql-python 1.8.0 wheel installs mssql_py_core as a sibling top-level package. From mssql_python-1.8.0.dist-info/RECORD:
mssql_py_core/__init__.py,sha256=dWpohDsyIDgFPp8wCLZEDeEsk_Kn4vL8Bp83Ptn-jNg,135
mssql_py_core/__pycache__/__init__.cpython-311.pyc,,
mssql_py_core/mssql_py_core.cpython-311-aarch64-linux-gnu.so,sha256=…,8225592
So this is not a missing-package problem — the file is on disk.
2. The real failure is at dynamic-link time
$ python -c "import mssql_py_core"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File ".../site-packages/mssql_py_core/__init__.py", line 1, in <module>
from .mssql_py_core import *
ImportError: libssl.so.3: cannot open shared object file: No such file or directory
$ ldd .../mssql_py_core/mssql_py_core.cpython-311-aarch64-linux-gnu.so 2>&1 | grep -E 'ssl|crypto|not found'
/lib64/libm.so.6: version `GLIBC_2.29' not found (required by …mssql_py_core…)
/lib64/libc.so.6: version `GLIBC_2.32' not found (required by …mssql_py_core…)
/lib64/libc.so.6: version `GLIBC_2.33' not found (required by …mssql_py_core…)
/lib64/libc.so.6: version `GLIBC_2.34' not found (required by …mssql_py_core…)
libssl.so.3 => not found
libcrypto.so.3 => not found
Host versions for comparison:
$ ls /usr/lib64/libssl* /usr/lib64/libcrypto*
/usr/lib64/libcrypto.so.1.1 /usr/lib64/libssl.so.1.1
/usr/lib64/libcrypto.so.1.1.1k /usr/lib64/libssl.so.1.1.1k
/usr/lib64/libssl3.so # this is NSS, not OpenSSL 3 — unrelated despite the name
3. Wheel tag vs. actual requirements
The installed wheel is mssql_python-1.8.0-cp311-cp311-manylinux_2_28_aarch64.whl (from https://pypi.org/pypi/mssql-python/1.8.0/json). The manylinux_2_28 profile corresponds to glibc 2.28 / RHEL 8 / UBI 8 (PEP 600). RHEL 8 also ships OpenSSL 1.1, not OpenSSL 3. The bundled mssql_py_core .so requires symbols newer than that profile allows, so pip happily installs a wheel that cannot load on the platform it claims to support.
That said, I haven't run auditwheel show against the wheel myself, so it's possible the higher requirement comes from a different .so in the bundle and I've misattributed it. The loader error above is what users will hit either way.
4. Error-message UX (minor, separate)
In mssql_python/cursor.py (1.8.0), the bulk-copy path does:
try:
import mssql_py_core
except ImportError as exc:
logger.error("_bulkcopy: Failed to import mssql_py_core module")
raise ImportError(
"Bulk copy requires the mssql_py_core library which is not available. "
"This is an unexpected error. "
) from exc
The from exc does preserve the real libssl.so.3: cannot open shared object file in the chained traceback, but the top-line message ("not available", "unexpected error") leads users to think the package is missing rather than failing to load. Surfacing str(exc) in the re-raised message would have saved both the Reddit user and me a fair amount of guessing.
Expected behavior
One of:
- The aarch64 wheel content is rebuilt against the manylinux_2_28 sysroot (glibc 2.28, OpenSSL 1.1) so it actually loads on the platforms the tag advertises, or
- The wheel is re-tagged (e.g.
manylinux_2_34_aarch64) so pip declines to install it on RHEL 8 / UBI 8 / Amazon Linux 2 and falls back to a source install or an error users can act on.
It would also be worth checking the manylinux_2_28_x86_64 wheel against the same criteria — I only verified aarch64 on this host, so I can't say whether x86_64 has the same mismatch.
Suggestions (lower priority)
- Include
str(exc)in the re-raisedImportErrorincursor.py, so the missing.sodependency surfaces in the top-line message. - Consider adding
auditwheel show/ repair to the release pipeline for the Linux wheels to catch tag/content mismatches before publish.
Sources
- Reddit report: https://www.reddit.com/r/SQLServer/comments/1trcsy7/comment/op95k4b/
- 1.8.0 wheel list & filenames: https://pypi.org/pypi/mssql-python/1.8.0/json
- Bulk-copy code path:
mssql_python/cursor.pyaround theimport mssql_py_coreblock in the 1.8.0 release - manylinux profile / glibc mapping: PEP 600 (https://peps.python.org/pep-0600/)
- All
ldd,ldconfig, anddist-info/RECORDoutput above was produced on the RHEL 8.10 aarch64 host described in the Environment section.
- 主要言語
- Python
- スター
- 478
- フォーク
- 62
- 平均マージ
- 3日 19分
- マージ済み PR(30日)
- 28
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/mssql-python のほかの issue
-
area: bulk-copy triage needed
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
microsoft/mssql-python#843 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
triage needed
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
microsoft/mssql-python#846 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
macOS: encrypted connections fail after Homebrew moved the `openssl` alias to `openssl@4`対応中かも @bewithgaurav が 15 日前に担当しました。 オープンarea: packaging-platform bug triage needed
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
microsoft/mssql-python#826 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
Announcement: mssql-python is coming to Django through mssql-django 2.0再び着手できるかも @bewithgaurav が 42 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンannouncement
microsoft/mssql-python#748 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
Connection pool can briefly exceed max_size when pooling is disabled under load対応中かも @bewithgaurav が 24 日前に担当しました。 オープンarea: connectivity-auth bug triage done under development
難易度 4/5 3〜5日 初心者へのやさしさ 62/100
microsoft/mssql-python#746 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
microsoft/mssql-python の issue をすべて見る
似ている issue
-
Workflow.schedule stops when a cron deadline passes before sleep対応中かも @HuaTNA が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
[Bug] HiveDialect shares its colspecs dict with SQLAlchemy's DefaultDialect (python/pyhive)対応中かも @rusackas が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
apache/kyuubi#7786 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
メンテナーはふだん 1 日以内に返信
-
[20.0] hr_work_entry: Duration column of Export Time Entries is truncated to whole hours対応中かも @odooaktiv が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
fix formatting of the sample database page of the docs対応中かも @Aaqibhafeezkhan が今日担当しました。 オープンdocumentation good first issue help wanted
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
chaoss/CollectOSS#544 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信