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

root6 master compilation failed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.08/00
    • Component/s: TMVA
    • Labels:
      None
    • Environment:

      Root6 master, Ubuntu 14, Python 2.7.6, gcc 4.8.4

    • Development:

      Description

      Hello,

      On the weekend, root6 master failed to compile the tmva/pymva/src/MethodPyKeras.cxx for me. The error was "Must use Python with unicode enabled." Today, I tracked down the error. I needed an additional #include <Python.h> in order to successfully compile as suggested on the web.

      git diff

      Show all

      diff --git a/tmva/pymva/src/MethodPyKeras.cxx b/tmva/pymva/src/MethodPyKeras.cxx
      index b26de79..c3743ad 100644
      --- a/tmva/pymva/src/MethodPyKeras.cxx
      +++ b/tmva/pymva/src/MethodPyKeras.cxx
      @@ -2,6 +2,7 @@
       // Author: Stefan Wunsch, 2016
       
       #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
      +#include <Python.h>
       #include <numpy/arrayobject.h>
       
       #include "TMVA/MethodPyKeras.h"

      Cheers,
      Hans

        Attachments

          Activity

            People

            Assignee:
            hvoss Helge Voss (Inactive)
            Reporter:
            hbeck Hans Beck (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: