Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monitor doesn't work on Windows 11 #652

Open
felixFleetZero opened this issue Mar 22, 2024 · 2 comments
Open

Monitor doesn't work on Windows 11 #652

felixFleetZero opened this issue Mar 22, 2024 · 2 comments

Comments

@felixFleetZero
Copy link

felixFleetZero commented Mar 22, 2024

Tried to run cantools monitor tool on windows, running windows-curses v2.3.2, and it doesn't seem to work properly (tool exit after printing the initial warnings about some file format not being supported).
Running python 3.12.0, cantools 39.4.0.
The can adapter I'm trying to use (pcan-usb) works when using it with python-can only to receive raw CAN message from the same CAN bus.
So leads me to think it's an issue with the curses command line interface.
Note that I've also used the same dbc and can adapter on a raspberry pi with linux and managed to use cantools monitor successfully.
Result from running cantools monitor in command line:
image

Some extra info about my setup:
image

image

@felixFleetZero felixFleetZero changed the title Monitor doesn't work with Windows Monitor doesn't work on Windows 11 Mar 22, 2024
@andlaus
Copy link
Member

andlaus commented Mar 25, 2024

did you modify your local copy of cantools? the first three messages after invoking cantools seem to stem from something trying to load an excel file (which I'm pretty sure is not done by cantools)

That said, if I see this correctly, you did not specify any after cantools monitor, so maybe you just need to invoke tool correctly:

cantools monitor -c can0 my-bus-description-file.dbc

(be aware that the name of the can device on windows is most likely different, but I don't use cantools on windows, so I cannot tell you how it is usually called...)

@felixFleetZero
Copy link
Author

Sorry for the confusion, the second screenshot I shared was just to show the cantools version I had installed (first command in that screenshot, disregard the second).
See the first screenshot i shared, where i do indeed invoke the tool properly with a bus type, a channel, and a DBC file argument.
I haven't manually modified my local copy of cantools (I've got the same warnings when running ASAMMDF python module too, not sure if that could explains those warnings).
However, I also see those warnings on my Linux setup where cantools monitor actually works properly, so don't think they are related to the monitor issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants