trendmicro / ais

Toolkit for research purposes in AIS. See the website for the paper.
https://www.trendmicro.com/vinfo/us/security/news/cybercrime-and-digital-threats/a-security-evaluation-of-ais
94 stars 55 forks source link

gr-aistx pybombs python error #12

Open damgoap opened 4 years ago

damgoap commented 4 years ago

I recently installed gnuradio 3.7.13.15 with pybombs. (ref : https://github.com/Nuand/bladeRF/wiki/Getting-Started:-Linux ) However, the installation of gr-aistx with pybombs failed. It seems to be a problem of python version (python 3 is used rather than python2.7) but I do not know how can I fix this issue.

Here, is some information concerning my OS version and pybombs installation : OS : VERSION="18.04.3 LTS (Bionic Beaver)" PyBOMBS Version 2.3.4a0 Prefix Python version is: 2.7.15 Gnuradio version : 3.7.13.5 Python versions : 2.7(default) & 3.6

gr-aistx_error0 gr-aistx_error

A1337CBS commented 4 years ago

Hi, I had the same error, this means your system picked up the wrong python, in this case python3, you need python 2, #9 check this

yanno9 commented 4 years ago

I found how to fix the part about python by changing the python print call in GrPython.cmake file and keeping using Python3. Before: print sysconfig.get_python_lib(plat_specific=True, prefix='') After: print(sysconfig.get_python_lib(plat_specific=True, prefix=''))

The reason is that the print line works on python2.7, but breaks on Python3 because it was one the breaking change between Python2 and Python3.