-
Notifications
You must be signed in to change notification settings - Fork 424
Open
Description
Description:
When building the CTranslate2 wheel on Linux, running auditwheel repair fails because it cannot locate the shared library, preventing the wheel from being properly packaged and installed.
Platform and OS:
- Platform: x86_64
- OS: Fedora 41
Steps to reproduce:
- Build the wheel:
python -m pip wheel . -w dist- Attempt to repair the wheel:
auditwheel repair dist/ctranslate2-4.6.0-cp311-cp311-linux_x86_64.whlError message:
INFO:auditwheel.main_repair:Repairing ctranslate2-4.6.0-cp311-cp311-linux_x86_64.whl
INFO:auditwheel.wheel_abi:setting libc to glibc
Traceback (most recent call last):
File "/usr/local/bin/auditwheel", line 7, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/site-packages/auditwheel/main.py", line 53, in main
result: int | None = args.func(args, p)
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/auditwheel/main_repair.py", line 255, in execute
out_wheel = repair_wheel(
^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/auditwheel/repair.py", line 89, in repair_wheel
raise ValueError(msg)
ValueError: Cannot repair wheel, because required library "libctranslate2.so.4" could not be located
Additional information / Suggestions:
- This issue occurs on Linux and may cause the installed wheel to fail on import.
- A possible solution is to include
libctranslate2.so,libctranslate2.so.4, etc., in the wheel viasetup.pyor ensure the shared libraries are installed in a system library path during CI builds.
Metadata
Metadata
Assignees
Labels
No labels