Open
Description
I have been having issues when running volk_modtool
in my Ubuntu box from afresh copy of the master
branch of volk
. The executable starts ok, but it seems to be failing when parsing some files due to encoding issues.
For example, this is the output I keep getting when running the tool
Initializing config file...
name: lllll
destination: /home/dmiralles/Documents/test
base: /home/dmiralles/Documents/volk-master
Traceback (most recent call last):
File "/usr/local/bin/volk_modtool", line 77, in <module>
my_modtool.make_module_skeleton();
File "/usr/local/lib/python3/dist-packages/volk_modtool/volk_modtool_generate.py", line 107, in make_module_skeleton
instring = open(infile, 'r').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 0xe4 in position 5: invalid continuation byte
Not sure why this is happening, but if using my local clone, the error happens when parsing files within the .git repo. I added a print statement for volk_modtool_generate.py
l107, and this is what I get before it errs
/home/dmiralles/Documents/volk/.git/COMMIT_EDITMSG
/home/dmiralles/Documents/volk/.git/gitk.cache
/home/dmiralles/Documents/volk/.git/HEAD
/home/dmiralles/Documents/volk/.git/description
/home/dmiralles/Documents/volk/.git/FETCH_HEAD
/home/dmiralles/Documents/volk/.git/ORIG_HEAD
/home/dmiralles/Documents/volk/.git/config
/home/dmiralles/Documents/volk/.git/packed-refs
/home/dmiralles/Documents/volk/.git/index
Traceback (most recent call last):
File "/usr/local/bin/volk_modtool", line 77, in <module>
my_modtool.make_module_skeleton();
File "/usr/local/lib/python3/dist-packages/volk_modtool/volk_modtool_generate.py", line 108, in make_module_skeleton
instring = open(infile, 'r').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 0xd6 in position 14: invalid continuation byte
which seems to indicate that it has encoding issues when reading contents of .git/index. This is probably a binary file, and we are using r
option when reading.
Metadata
Metadata
Assignees
Labels
No labels