High-Precision-Congestion-Control icon indicating copy to clipboard operation
High-Precision-Congestion-Control copied to clipboard

Compile problem

Open superrabbit777 opened this issue 5 years ago • 3 comments

When compiling this project, some problems occurs. (ubuntu+python 3.7.3)

The erro information is as follows: Waf: The wscript in '/home/hpcc' is unreadable Traceback (most recent call last): File "/home/hpcc/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Scripting.py", line 87, in waf_entry_point set_main_module(Context.run_dir+os.sep+Context.WSCRIPT_FILE) File "/home/hpcc/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Scripting.py", line 112, in set_main_module Context.g_module=Context.load_module(file_path) File "/home/hpcc/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Context.py", line 281, in load_module exec(compile(code,path,'exec'),module.dict) File "/home/hpcc/wscript", line 105 print name.ljust(25), ^ SyntaxError: invalid syntax

Does this have anything to do with the python version?

superrabbit777 avatar Jan 09 '20 10:01 superrabbit777

Did you try using python 2.x?

liyuliang001 avatar Jun 25 '20 18:06 liyuliang001

Hi,I have the same problem, change to python 2.x is not a good idea. I found when I build the project with the command sudo CC='gcc-5' CXX='g++-5' ./waf configure it works well . Remember the "sudo" in the first place. so have a try !

Wsky51 avatar Dec 27 '21 12:12 Wsky51

python3 does not support the syntax like print "hello", one should use python2 instead.

Jiawei1996 avatar Dec 08 '23 01:12 Jiawei1996