dump_errors(odrv0) works fine from the command line but I can’t get it to work in a .py file.
import odrive
from odrive.enums import *
Everything else works.
I want my .py file to print dump_errors.
dump_errors(odrv0) works fine from the command line but I can’t get it to work in a .py file.
import odrive
from odrive.enums import *
Everything else works.
I want my .py file to print dump_errors.
but I can’t get it to work in a .py file.
Do you get a specific error?
dump_errors(odrv0) and quit() work under the odrivetool from the command line.
How do you use them from a py file after running odrive.find_any()?
Here is a link to a simple py file.
py file
outside of the odrivetool there is no attribute dump_errors() or quit()
I would like to be able to make a function call and quit or print the dump errors
Add from odrive.utils import *
at the top of your .py file.