Skip to content
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

Sqlalchemy Turbodbc missing library: libsimdutf.so.9 #437

Closed
amgcc opened this issue Sep 11, 2024 · 7 comments
Closed

Sqlalchemy Turbodbc missing library: libsimdutf.so.9 #437

amgcc opened this issue Sep 11, 2024 · 7 comments

Comments

@amgcc
Copy link

amgcc commented Sep 11, 2024

After upgrading my conda environment today, package simdutf changed from version 5.4.15 to 5.5.0. Afterward, I started recieving errors with sqlalchemy about a missing library. I'm not sure if this is something that needs to be fixed in sqlalchemy or turbodbc because I don't understand the issue based on the error message.

    return sa.create_engine(conn_str, **kwargs)
../../../../envs/linux_py311/lib/python3.11/site-packages/sqlalchemy/util/deprecations.py:375: in warned
    return fn(*args, **kwargs)
../../../../envs/linux_py311/lib/python3.11/site-packages/sqlalchemy/engine/create.py:518: in create_engine
    entrypoint = u._get_entrypoint()
../../../../envs/linux_py311/lib/python3.11/site-packages/sqlalchemy/engine/url.py:662: in _get_entrypoint
    cls = registry.load(name)
../../../../envs/linux_py311/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py:341: in load
    return impl.load()
../../../../envs/linux_py311/lib/python3.11/site-packages/importlib_metadata/__init__.py:209: in load
    module = import_module(match.group('module'))
../../../../envs/linux_py311/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
../../../../envs/linux_py311/lib/python3.11/site-packages/sqlalchemy_turbodbc/dialect.py:24: in <module>
    from .connector import TurbodbcConnector
../../../../envs/linux_py311/lib/python3.11/site-packages/sqlalchemy_turbodbc/connector.py:16: in <module>
    from turbodbc import make_options
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    from importlib.metadata import version
    
>   from turbodbc_intern import Megabytes, Rows
E   ImportError: libsimdutf.so.9: cannot open shared object file: No such file or directory
@alippai
Copy link
Contributor

alippai commented Sep 12, 2024

The work in #433 by @xhochy could solve this

@alippai
Copy link
Contributor

alippai commented Oct 7, 2024

@xhochy looks like this is solved for turbodbc 5.0.1, however that version requires numpy>=2.0. Is this intentional? With numpy 1.26 and python 3.10 turbodbc version 4.13.0 is resolved on conda-forge now (which fails if simdutf<5.5 is not added as well as a pin).

@xhochy
Copy link
Collaborator

xhochy commented Oct 10, 2024

turbodbc=5.0.1 should only require numpy>=2 in the build environment but should run also with e.g. numpy=1.26

@xhochy
Copy link
Collaborator

xhochy commented Oct 10, 2024

Should be fixed by conda-forge/turbodbc-feedstock#138

@xhochy
Copy link
Collaborator

xhochy commented Oct 10, 2024

Furthermore conda-forge/simdutf-feedstock#31 should ensure that this doesn't happen again.

@xhochy
Copy link
Collaborator

xhochy commented Oct 11, 2024

Both are merged, so should be solved in 1-2h when everything has hit the CDN.

@xhochy xhochy closed this as completed Oct 11, 2024
@alippai
Copy link
Contributor

alippai commented Oct 11, 2024

Thanks! 🚀

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

3 participants