xoreaxeaxeax / sandsifter

The x86 processor fuzzer
BSD 3-Clause "New" or "Revised" License
4.91k stars 350 forks source link

Fix code not working when default python is python3 #65

Open Kilobyte22 opened 6 years ago

Kilobyte22 commented 6 years ago

Some linux distributions (in particular arch linux) use python 3 as their default. This means that /usr/bin/python is a symlink to /usr/bin/python3. Your code however is not compatible with python3. A simple fix, which should maintain compatibility with other distributions is to explicitly start the program with python2. I have provided the necessary change for you.

cclauss commented 6 years ago

Also see https://github.com/Battelle/sandsifter/pull/2 because print() is a function in Python 3.