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

dyld[57648]: symbol not found in flat namespace '_PyExc_BaseException' #4778

Open
yaroslavyaroslav opened this issue Dec 8, 2024 · 0 comments
Labels

Comments

@yaroslavyaroslav
Copy link

Bug Description

   Compiling rust_helper v0.1.0 (/Users/user/path/to/rust_helper)
src/lib.rs:116:19: warning: unused imports: `File` and `self`
src/lib.rs:117:9: warning: unused import: `std::io::Write`
src/lib.rs:150:13: warning: unused variable: `cacher`: help: if this is intentional, prefix it with an underscore: `_cacher`
warning: `rust_helper` (lib test) generated 3 warnings (run `cargo fix --lib -p rust_helper --tests` to apply 2 suggestions)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.97s
     Running unittests src/lib.rs (target/debug/deps/rust_helper-ba11d862d6509705)
dyld[58402]: symbol not found in flat namespace '_PyExc_BaseException'
error: test failed, to rerun pass `--lib`

Caused by:
  process didn't exit successfully: `/Users/user/path/to/rust_helper/target/debug/deps/rust_helper-ba11d862d6509705` (signal: 6, SIGABRT: process abort signal)

.cargo/config.toml

[target.x86_64-apple-darwin]
rustflags = [
  "-C", "link-arg=-undefined",
  "-C", "link-arg=dynamic_lookup",
]

[target.aarch64-apple-darwin]
rustflags = [
  "-C", "link-arg=-undefined",
  "-C", "link-arg=dynamic_lookup",
]

Cargo.toml

[features]
extension-module = ["pyo3/extension-module"]
default = ["extension-module"]

cargo test --no-default-features

Steps to Reproduce

This error is a next step that I was able to achieve following to suggestions mentioned here in different issues.

But this bit aren't going anywhere, so is there any workaround to fix it?

Backtrace

No response

Your operating system and version

macOS 15.2

Your Python version (python --version)

Python 3.13

Your Rust version (rustc --version)

rustc 1.83.0-nightly (2bd1e894e 2024-09-26)

Your PyO3 version

0.23.3

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

brew

Additional Info

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant