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

LC_ID_DYLIB of abi3 module is wrong on macOS #1207

Closed
Aksem opened this issue Oct 22, 2022 · 1 comment · Fixed by #1208
Closed

LC_ID_DYLIB of abi3 module is wrong on macOS #1207

Aksem opened this issue Oct 22, 2022 · 1 comment · Fixed by #1208
Labels
bug Something isn't working

Comments

@Aksem
Copy link

Aksem commented Oct 22, 2022

Bug Description

watchfiles package includes _rust_notify module compiled with PyO3 in api3 mode. It has LC_ID_DYLIB equal to @rpath/_rust_notify.cpython-310-darwin.so however its name is _rust_notify.abi3.so and the library cannot be linked properly.

I faced this problem when I tried to compile an app with nuitka in which watchfiles package is used.

Initial issue in Nuitka: Nuitka/Nuitka#1844

Steps to Reproduce

  1. Compile a module in api3 mode on macOS.
  2. Check it LC_ID_DYLIB with otool -l <lib.so> command.

Backtrace

No response

Your operating system and version

macOS 11

Your Python version (python --version)

3.10.7

Your Rust version (rustc --version)

1.56.0

Your PyO3 version

0.16.4

How did you install python? Did you use a virtualenv?

actions/setup-python@v4 in github actions (config)
No virtualenv, just dependency installation with pip

Additional Info

No response

@Aksem Aksem added the bug Something isn't working label Oct 22, 2022
@messense messense transferred this issue from PyO3/pyo3 Oct 22, 2022
@messense
Copy link
Member

Transferred to maturin since LC_ID_DYLIB was set by maturin.

@messense messense changed the title LC_ID_DYLIB of api3 module is wrong on macOS LC_ID_DYLIB of abi module is wrong on macOS Oct 24, 2022
@messense messense changed the title LC_ID_DYLIB of abi module is wrong on macOS LC_ID_DYLIB of abi3 module is wrong on macOS Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants