Skip to content

mssql-python==1.8.0 fails with dlopen failed to resolve symbol. #628

@sam-leonard-ct

Description

@sam-leonard-ct

Describe the bug

Importing mssql-python on macOS fails with

ImportError: dlopen(/Users/my_user/some_dir/.venv/lib/python3.12/site-packages/mssql_python/ddbc_bindings.cp312-universal2.so, 0x0002): symbol not found in flat namespace '__ZN7simdutf40convert_utf16le_to_utf8_with_replacementEPKDsmPc'

Which corresponds with this symbol:
_simdutf::convert_utf16le_to_utf8_with_replacement(char16_t const*, unsigned long, char*)

To reproduce

import mssql_python

Expected behavior

The symbol should be found and the library should load.

Further technical details

Python version: 3.12.11
SQL Server version: Doesn't matter
Operating system: MacOS 26.5.1
mssql-python: 1.8.0

mssql-python==1.7.1 does not exhibit this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage neededFor new issues, not triaged yet.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions