brinckmann / montepython_public

Public repository for the Monte Python Code
MIT License
93 stars 77 forks source link

WMAP likelihood install with Python 3 #290

Open westinhuang opened 2 years ago

westinhuang commented 2 years ago

In wrapper_wmap_v4p1/wscript and some files in waf_tools

except Exception,e:                    

SyntaxError: invalid syntax

Above is accepted by Python 2. In Python 3, we should use

except Exception as e:

Also, we should add bracket after print under Python 3 environment.