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

root6 master compilation failed

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • High
    • Resolution: Fixed
    • None
    • 6.08/00
    • TMVA
    • None
    • Root6 master, Ubuntu 14, Python 2.7.6, gcc 4.8.4

    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

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

            Dates

              Created:
              Updated:
              Resolved: