PanicException with 0.4.*
Closed this issue · 5 comments
After installing the new version, I get the following exception when running NNSplit.load("en")
.
PanicException: called `Result::unwrap()` on an `Err` value: PyErr { type: Py(0x5632cc1b1140, PhantomData) }
This occurs both with and without onnxruntime-gpu
installed.
I think this could be because I still have an old version of the model cached somewhere, is there some way to clear the cache?
Weird. You can try clearing the cache, probably at ~/.cache/nnsplit/
on Linux. But I don't see how the cache could be a problem, the model hasn't changed since 0.3.x. I'll look into better reporting of errors from Python, that would make it easier to solve this.
haha just a prank, it works now
For anyone else with this problem: pip install --upgrade --ignore-installed nnsplit
seems to have fixed this here.
When getting PanicExceptions when using gpu, downgrading to onnxruntime-gpu==1.4.0
fixed it for me.