Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-7575

ROOT 6 can't compile with python 3.3

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • High
    • Resolution: Fixed
    • 6.04.00, 6.04/02
    • 6.06/00, 6.04/04
    • None
    • None
    • SLC6 with devtoolset

    Description

      I install the devtoolset on SLC6 :

      cd /etc/yum.repos.d/
      wget http://linuxsoft.cern.ch/cern/scl/slc6-scl.repo
      sudo yum install --enablerepo=slc6-scl devtoolset-3 nodejs010 php54 php55 python27 python33 git19 httpd24

      Then I activate recent g++ and python 3.3 :

      source /opt/rh/devtoolset-3/enable
      source /opt/rh/python33/enable

      And when it compiles it says :

      [ 53%] Generating etc/dictpch/allLinkDefs.h, etc/dictpch/allHeaders.h, etc/dictpch/allCppflags.txt
      File "../build/unix/makepchinput.py", line 413
      print "\nGenerating PCH for %s\n" %" ".join(modulesList)
      ^
      SyntaxError: invalid syntax

      This is correct, print is a function in Python 3. I tried to fix it but there are quite a number of syntax errors with Python 3.

      I would advise as a quick workaround to specify in CMakeLists that python must be between 2.7 instead of greater than 2.7.

      Attachments

        Activity

          People

            mato Pere Mato Vila
            bvonhall Barthelemy Von Haller
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: