bertiniteam / b2

Bertini 2.0: The redevelopment of Bertini in C++.
92 stars 34 forks source link

tests fail in python3 #62

Closed ofloveandhate closed 7 years ago

ofloveandhate commented 7 years ago

this is perhaps due to a syntactical difference between python2 and python3, but i am getting the following error, having built PyBertini using configure PYTHON=python3:

integral:python ofloveandhate$ python3 test/
__init__.py  classes/     test_all.py  tracking/    
integral:python ofloveandhate$ python3 test/test_all.py 
Traceback (most recent call last):
  File "test/test_all.py", line 29, in <module>
    import classes.test_classes
  File "/Users/ofloveandhate/math_projects/bertini2/bertiniteam/b2/python/test/classes/test_classes.py", line 42
    print mods
             ^
SyntaxError: Missing parentheses in call to 'print'
cthoyt commented 7 years ago

Maybe a better solution is to use the logging module, which can allow for user-specified granularity of printing statements and to what location, without changing any code inside your project

ofloveandhate commented 7 years ago

this issue will be fixed in an upcoming release, when #63 is incorporated. closing.