symbol not found in flat namespace '_PyBaseObject_Type' when doing cargo bench #4880
Unanswered
andresliszt
asked this question in
Questions
Replies: 2 comments 2 replies
-
|
Can confirm that outside of |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I have been seeing the same error for one of my packages, only on MacOS and not on other platforms. I found that it went away after I removed the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I open this as a question, I don't think it's a bug and should be something I'm doing wrong. I have a project with
pyo3andcargo build,cargo testand also calling my rust function from python are working ok. My problem is when I docargo benchto run some benches with criterion, so I think the binary that runs my benchmark code, which invokes the Rust code with pyo3 needs to findlibpythonand is not being found properly. I've read about some env varsDYLD_LIBRARY_PATHthat must point to my current virtual env, but it doesn't work for me. If this is a common issue would be very nice if you can provide me some linked issues.cargo bench Finished `bench` profile [optimized] target(s) in 1m 09s Running unittests src/lib.rs (target/release/deps/example-90dbcf98ea434473) dyld[5634]: symbol not found in flat namespace '_PyBaseObject_Type' error: bench failed, to rerun pass `--lib` Caused by: process didn't exit successfully: `/Users/andres.sandoval/Desktop/projects/example/target/release/deps/example-90dbcf98ea434473 --bench` (signal: 6, SIGABRT: process abort signal)Thanks!
Beta Was this translation helpful? Give feedback.
All reactions