I downloaded VAPOR as a tar gz file and I am trying to compile from source.
As part of that I am getting these compile errors -
I do not believe VAPOR can be compiled with Python 3.4 as Py_InitModule() has been deprecated in Python 3.4.
I believe that file has to be reworked to make it compatible with Python 3.4. Comments ?
pythonpipeline.cpp(90): error: identifier “Py_InitModule” is undefined
m = Py_InitModule(“vapor”, vaporMethodDefinitions);
^
pythonpipeline.cpp(93): error: return value type does not match the function type
import_array();
^
pythonpipeline.cpp(110): error: argument of type “char *” is incompatible with parameter of type “wchar_t *”
if (pyhome) Py_SetPythonHome(pyhome);
^
pythonpipeline.cpp(133): error: argument of type “char *” is incompatible with parameter of type “wchar_t *”
Py_SetPythonHome(pyhome2);
^
pythonpipeline.cpp(137): error: argument of type "void ()()" is incompatible with parameter of type “PyObject ()()”
int rc = PyImport_AppendInittab((char)“vapor”,&(PythonPipeLine::initvapor));
^
pythonpipeline.cpp(141): error: identifier “PyString_FromFormat” is undefined
PyObject* vaporname = PyString_FromFormat(“vapor”);
^
pythonpipeline.cpp(209): error: identifier “PyInt_AsLong” is undefined
int szval = PyInt_AsLong(sz);
^
pythonpipeline.cpp(214): error: identifier “PyString_AsString” is undefined
const char* strtext = PyString_AsString(txt);
^
pythonpipeline.cpp(423): error: identifier “PyString_FromFormat” is undefined
PyObject* myErrString = PyString_FromFormat(“myErr”);
^
pythonpipeline.cpp(428): error: identifier “PyInt_AsLong” is undefined
int szval = PyInt_AsLong(sz);
^
pythonpipeline.cpp(432): error: identifier “PyString_AsString” is undefined
const char* strtext = PyString_AsString(txt);
^