-
operating system: macos 13.0.1 (with m1 chip) I encountered this error when i run following code:
I also failed on importing numpy, pandas but i can import some other packages like sys, argparse sucessfully. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
Can you give us any more information about how you installed torch and numpy, made even a sample project with a script that contains all the install steps? |
Beta Was this translation helpful? Give feedback.
-
I use conda to install pytorch (conda version 22.11.1)
Then I wrote following rust codes:
The error comes out at last line |
Beta Was this translation helpful? Give feedback.
-
Can you try compiling with these rustflags:
(From a quick test on my laptop, I need to set the rpath or the wrong libpython is loaded) |
Beta Was this translation helpful? Give feedback.
-
The funny thing I find out is that this error only appears when i debug:
(i add println!("success!") at last line) but when i run lldb:
the error appears
|
Beta Was this translation helpful? Give feedback.
-
it seems like an openssl issue: |
Beta Was this translation helpful? Give feedback.
it seems like an openssl issue:
https://stackoverflow.com/questions/74059978/why-is-lldb-generating-exc-bad-instruction-with-user-compiled-library-on-macos