MantisBT - Xdmf
View Issue Details
0015726Xdmf(No Category)public2015-09-05 01:412016-02-25 04:14
oliverjack38 
 
urgentmajorhave not tried
newopen 
LInuxArch Linux
0015726: Python API compilation does not work
I try to compile Xdmf3 with python support using -DXDMF_WRAP_PYTHON:BOOL="1"
The compilation fails when trying to compile:
mkdir build
cd build
cmake -DXDMF_WRAP_PYTHON:BOOL="1" ..
make
No tags attached.
? out (17,223) 2015-09-05 01:41
https://public.kitware.com/Bug/file/5519/out
Issue History
2015-09-05 01:41oliverjack38New Issue
2015-09-05 01:41oliverjack38File Added: out
2016-02-12 22:17crayzeewulfNote Added: 0040483
2016-02-14 14:04oliverjack38Note Added: 0040488
2016-02-16 08:13oliverjack38Note Added: 0040492
2016-02-24 10:14darkstarNote Added: 0040531
2016-02-24 11:32oliverjack38Note Added: 0040532
2016-02-25 04:14darkstarNote Added: 0040546

Notes
(0040483)
crayzeewulf   
2016-02-12 22:17   
Very similar error message at the link below; are you using Python 3?

https://github.com/scipy/scipy/issues/1890 [^]
(0040488)
oliverjack38   
2016-02-14 14:04   
Yes. I use python 3.5
(0040492)
oliverjack38   
2016-02-16 08:13   
It works fine when forcing Cmake to python2... I will investigate for python3...
(0040531)
darkstar   
2016-02-24 10:14   
Hi Oliverjack38. Have you had a any luck with python3?
(0040532)
oliverjack38   
2016-02-24 11:32   
No luck with Python3. It looks like it is a SWIG issue. What I don't understand is that from the link above the pb has been solved a while ago and I am using the last SWIG version.
(0040546)
darkstar   
2016-02-25 04:14   
My guess is 3.5 not supported yet
http://www.swig.org/Doc3.0/Python.html#Python_python3support [^]
could also be worth providing -py3 flag to swig in the make file. Will have a go.