Announcement

Collapse
No announcement yet.

SyntaxError: Missing parentheses in call to 'print'.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SyntaxError: Missing parentheses in call to 'print'.

    I get a lot of these errors when running pts on Manjaro. From what I understand this caused by Python 3.6.3 update from last September.

    When I try to use a print statement in Python, it gives me this error: >>> print "Hello, World!" File "<stdin>", line 1 print "Hello, World!" ...


    What is the recommended Python version to run pts?

    Description: Manjaro Linux
    Release: 17.1.4
    Kernel: 4.15.0-1-MANJARO
    Python 3.6.4

    Some test that fail with above error;

    pts/compilebench-1.0.1
    pts/parboil-1.1.2

    I've got parboil running by adding "(" and ")". Compilebench is failing with:
    Code:
    using working directory t, 10 intial dirs 100 runs
    Traceback (most recent call last):
      File "./compilebench", line 569, in <module>
        dset = dataset(options.sources, rnd)
      File "./compilebench", line 265, in __init__
        self.unpatched = read_dataset(dirname, 'dataset-unpatched')
      File "./compilebench", line 158, in read_dataset
        fp = file(os.path.join(dirname, filename))
    NameError: name 'file' is not defined
    
    The test quit with a non-zero exit status.
    
    
    E: NameError: name 'file' is not defined
    After adding "(" and ")". But since I don't have any coding skills I'm probably doing something wrong.

    Any idea's?

Working...
X