pykeio / ort

Fast ML inference & training for Rust with ONNX Runtime

Home Page:https://ort.pyke.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

undefined symbol: _ZSt28__throw_bad_array_new_lengthv when importing into wrapped rust code into python

patcollis34 opened this issue · comments

I have some performance critical code that's written in rust and it wrapped with pyO3 and called from python. after building my rust library with ort = "2.0.0-alpha.4" installed, the python code throws this error(cpython-38-ImportError: x86_64-linux-gnu.so: undefined symbol: _ZSt28__throw_bad_array_new_lengthv) on startup. wondering if I'm missing something stupid with onnxruntime install. I am trying to run on linux with the default CPU execution provider

What distro & version?

Are you using a Conda environment?

I'm not using conda, I'm using a virtual environment based on the unbuntu system python