You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling volk with python3, it fails due to a UnicodeDecodeError. I believe this is due to utf-8 encoding not being forced, as I was able to get this to work by modifying line 167. I'll submit a PR for this.
root@6d5f03691db3:~/sdr/src/volk/build# make
[ 2%] Generating volk_machine_avx2_64_mmx.c
Traceback (most recent call last):
File "/root/sdr/src/volk/gen/volk_tmpl_utils.py", line 31, in
import volk_kernel_defs
File "/root/sdr/src/volk/gen/volk_kernel_defs.py", line 209, in
kernels = list(map(kernel_class, kernel_files))
File "/root/sdr/src/volk/gen/volk_kernel_defs.py", line 168, in init
code = codecs.open(kernel_file, 'r').read()
File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 2460: ordinal not in range(128)
lib/CMakeFiles/volk_obj.dir/build.make:2454: recipe for target 'lib/volk_machine_avx2_64_mmx.c' failed
make[2]: *** [lib/volk_machine_avx2_64_mmx.c] Error 1
CMakeFiles/Makefile2:121: recipe for target 'lib/CMakeFiles/volk_obj.dir/all' failed
make[1]: *** [lib/CMakeFiles/volk_obj.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered:
litmaj0r
added a commit
to litmaj0r/volk
that referenced
this issue
Apr 11, 2018
When compiling volk with python3, it fails due to a UnicodeDecodeError. I believe this is due to utf-8 encoding not being forced, as I was able to get this to work by modifying line 167. I'll submit a PR for this.
root@6d5f03691db3:~/sdr/src/volk/build# make
[ 2%] Generating volk_machine_avx2_64_mmx.c
Traceback (most recent call last):
File "/root/sdr/src/volk/gen/volk_tmpl_utils.py", line 31, in
import volk_kernel_defs
File "/root/sdr/src/volk/gen/volk_kernel_defs.py", line 209, in
kernels = list(map(kernel_class, kernel_files))
File "/root/sdr/src/volk/gen/volk_kernel_defs.py", line 168, in init
code = codecs.open(kernel_file, 'r').read()
File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 2460: ordinal not in range(128)
lib/CMakeFiles/volk_obj.dir/build.make:2454: recipe for target 'lib/volk_machine_avx2_64_mmx.c' failed
make[2]: *** [lib/volk_machine_avx2_64_mmx.c] Error 1
CMakeFiles/Makefile2:121: recipe for target 'lib/CMakeFiles/volk_obj.dir/all' failed
make[1]: *** [lib/CMakeFiles/volk_obj.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: