Replies: 1 comment
-
First, I'm not sure that we can help here, this looks like a failure in the underlying However, it's not clear because the output you posted is garbled and very hard to understand. Please also activate |
Beta Was this translation helpful? Give feedback.
0 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.
-
Hi all, I want to develop a fast python module that can send CanFD messages using socketcan, here is the code I came up with:
When I run it in bash using the pyo3 virtual environment with "maturin develop" and then the python interactive REPL it runs very well, like this:
python
import rust_canfd
rust_canfd.send("can1",[1,1])
But when i run it from a python file.py and not the interactive REPL it does not work and throws the following exception.
/home/pi/.pyenv/versions/pyo3/bin/python /home/pi/src/rust_canfd/src/test.pythread '<unnamed>' panicked at src/lib.rs:11:47:called\Result::unwrap()
on anErr
value: Os { code: 19, kind: Uncategorized, message: "No such device" }note: run with \RUST_BACKTRACE=1
environment variable to display a backtraceTraceback (most recent call last):File "/home/pi/src/rust_canfd/src/test.py", line 70, in <module>rust_canfd.send("can1", data)pyo3_runtime.PanicException: called \Result::unwrap()
on anErr
value: Os { code: 19, kind: Uncategorized, message: "No such device" }``Can someone help me?
Beta Was this translation helpful? Give feedback.
All reactions