Re: [agl-dev-community] Converting canoe xml to json #help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Thomas,

I didn't make run_to_xml.py work correctly here. But about the error, you can get rid of it by change the line 4 of xml_to_json.py script like this:

- from .structures import Signal, Message
+ from openxc.generator.structures import Signal, Message

I haven't any errors running it then but no signals.json neither. Tell us your results if you could get it works correctly.

Regards.

Romain

On 14/01/2020 17:30, walzert wrote:
Hello,
at the moment I'm working on importing / using my can messages with AGL.
OpenXC xml_to_json.py seems to work if I'm not using "-m openxc.utils" in "python3 -m openxc.utils xml_to_json.py Powertrain.xml mapping.json signals.json"  I get the error "from .structures import Signal, Message"
In the file location there are the files "mapping.json" and  "Powertrain.xml"
I didn't get the signals.json or some output but the script is running.

Some listing of the files are in the pastbin https://pastebin.com/ZS2sBRuW

is the generic name the name I want later to use or is it the name of the signal?

Thank you
Thomas
-- 
Romain Forlot - Embedded Engineer - IoT.bzh
romain.forlot@xxxxxxx - www.iot.bzh - +33675142438 
_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#8005) | Reply To Group | Reply To Sender | Mute This Topic | New Topic
Mute #help
Your Subscription | Contact Group Owner | Unsubscribe [list-automotive-discussions82@xxxxxxxxxxx]

_._,_._,_

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux