cambridgehackers / connectal

Connectal is a framework for software-driven hardware development.
MIT License
159 stars 46 forks source link

Problem while building for zedboard #196

Closed Arch1610 closed 1 year ago

Arch1610 commented 1 year ago

While building the code for zedboard, I am facing the following error:

File "/home/archana/connectal-latest/scripts/reorderbytes.py", line 36, in readarr = array.array('I', infile.read()) File "/usr/lib/python3.6/codecs.py", line 321, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte /home/archana/connectal-latest/scripts/Makefile.connectal.build:201: recipe for target 'bits' failed make[1]: [bits] Error 1 ../../Makefile.connectal:57: recipe for target 'build.zedboard' failed make: [build.zedboard] Error 2

Could anybody pls suggest a possible solution for this issue

Screenshot from 2023-04-16 20-03-06

jankcorn commented 1 year ago

the default file mode in python was changed to utf8, so the script reorderbytes.py has been updated to force input and output files to be binary. Please pull the update and let me know if this works for you as well.

Arch1610 commented 1 year ago

Thank you so much. It worked.