Closed CharlieA0 closed 5 years ago
I don't understand what you're fixing, this works if you run from the correct directory.
@nistath cloning a clean copy of MY19, initializing/updating submodules, and then trying to build the VCU's canlib results in the following error.
Generating CANlib...
Traceback (most recent call last):
File "main.py", line 6, in <module>
import pack_unpack_c
File "/home/charlie/MY19/lib/CANlib/generator/pack_unpack_c.py", line 4, in <module>
from ParseCAN.spec import Endianness, Type
ModuleNotFoundError: No module named 'ParseCAN.spec'
../../build/board.mk:452: recipe for target '../../my19_can_spec.yml' failed
make: *** [../../my19_can_spec.yml] Error 1
This is because importing ParseCAN's code is in the ParseCAN folder under the ParseCAN module. We can fix this by importing along the correct path.
@CharlieA0 this is not true with the current version of MY19.
Just fixes the python import paths