You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maturin fails to include DWARF debug symbol files in pip packages on Mac. This results in backtraces not displaying filenames and line numbers. On (at least some) Mac platforms, cargo will generate the following build artifacts for builds with debuginfo:
Crucially, the target/debug/libpython_cffi.dylib file (which is byte-for-byte identical to target/debug/deps/libpython_cffi.dylib) does not seem to contain symbols which are instead provided by the target/debug/deps/libpython_cffi.dylib.dSYM folder. This folder should be included in the pip wheel to obtain a site-packages structure as below:
Currently, the libpyo3_backtrace_repro.dylib.dSYM folder is missing which prevents backtraces from working properly. I have confirmed that adding this folder manually to site-packages fixes the issue, but still need help with making the necessary changes to maturin to properly include those files in the pip wheel. Some additional context in PyO3/pyo3#766
The text was updated successfully, but these errors were encountered:
Interesting, I wasn't aware that on mac the debug info is an extra directory! Could you copy the last few lines of cargo build --message-format json to see how cargo categorizes the debug symbol file?
Maturin fails to include DWARF debug symbol files in pip packages on Mac. This results in backtraces not displaying filenames and line numbers. On (at least some) Mac platforms, cargo will generate the following build artifacts for builds with debuginfo:
Crucially, the
target/debug/libpython_cffi.dylib
file (which is byte-for-byte identical totarget/debug/deps/libpython_cffi.dylib
) does not seem to contain symbols which are instead provided by thetarget/debug/deps/libpython_cffi.dylib.dSYM
folder. This folder should be included in the pip wheel to obtain a site-packages structure as below:Currently, the
libpyo3_backtrace_repro.dylib.dSYM
folder is missing which prevents backtraces from working properly. I have confirmed that adding this folder manually to site-packages fixes the issue, but still need help with making the necessary changes to maturin to properly include those files in the pip wheel. Some additional context in PyO3/pyo3#766The text was updated successfully, but these errors were encountered: