<div dir="ltr"><div><span style="font-size:12.8px">Hi Matthew,</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">No, there aren't pre-build binaries with python 3.  I don't think that is planned for this release.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">I've been doing my OS X builds with the python binary packages from <a href="http://python.org">python.org</a>, so I know that those, at least, should work.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Can you give me some details about the python you are using?  Specifically, can you tell me what the contents of the library directory (</span><span style="font-size:12.8px">/Users/mcragun/anaconda/envs/</span><span style="font-size:12.8px">py3k/lib/) are?</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Also, in the CMakeCache.txt, can you give me the values of PYTHON_EXECUTABLE, PYTHON_INCLUDE_DIR, and PYTHON_LIBRARY?</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">For my build against the <a href="http://python.org">python.org</a> binaries, VTK found the following:</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">PYTHON_EXECUTABLE:FILEPATH=/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4</span><br></div><div><span style="font-size:12.8px">PYTHON_INCLUDE_DIR:PATH=/Library/Frameworks/Python.framework/Versions/3.4/Headers/</span><br></div><div><span style="font-size:12.8px">PYTHON_LIBRARY:FILEPATH=/Library/Frameworks/Python.framework/Versions/3.4/lib/libpython3.4.dylib</span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Obviously the locations will be different for Anaconda, but I just wanted to give you an example of how these variables can be set.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"> - David</span></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 1, 2016 at 9:45 PM, Matthew Cragun <span dir="ltr"><<a href="mailto:mcragun@gmail.com" target="_blank">mcragun@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">I am having trouble building VTK 7 with Python 3.4 on OS X 10.11 .  Everything goes well for the first 99% of the process, however at the end, I get this error:<div><br></div><div><div>[ 99%[ Building CXX object Wrapping/Python/CMakeFiles/vtkpython.dir/vtkPythonAppInit.cxx.o</div><div>make[2]: *** No rule to make target `/Users/mcragun/anaconda/envs/py3k/lib/libpython3.4.dylib', needed by `bin/vtkpython'.  Stop.</div><div>make[2]: *** Waiting for unfinished jobs....</div><div>In file included from /Users/mcragun/Projects/VTK/Wrapping/Python/vtkPythonAppInit.cxx:29:</div><div>/Users/mcragun/Projects/VTK-build/Wrapping/Python/vtkpythonmodules.h:119:3: error: no matching function</div><div>      for call to 'PyImport_AppendInittab'</div><div>  PyImport_AppendInittab(namevtkCommonCore, initvtkCommonCorePython);</div></div><div><div> ^~~~~~~~~~~~~~~~~~~~~~</div><div>/Users/mcragun/anaconda/envs/py3k/include/python3.4m/import.h:109:17: note: candidate function not</div><div>      viable: no known conversion from 'void ()' to 'PyObject *(*)()' for 2nd argument</div><div>PyAPI_FUNC(int) PyImport_AppendInittab(</div><div>                ^</div><div>In file included from /Users/mcragun/Projects/VTK/Wrapping/Python/vtkPythonAppInit.cxx:29:</div><div>/Users/mcragun/Projects/VTK-build/Wrapping/Python/vtkpythonmodules.h:122:3: error: no matching function</div><div>      for call to 'PyImport_AppendInittab'</div><div>  PyImport_AppendInittab(namevtkCommonMath, initvtkCommonMathPython);</div><div>  ^~~~~~~~~~~~~~~~~~~~~~</div></div><div><br></div><div>Similar errors are repeated until...</div><div><br></div><div><div>  ^~~~~~~~~~~~~~~~~~~~~~</div><div>/Users/mcragun/anaconda/envs/py3k/include/python3.4m/import.h:109:17: note: candidate function not</div><div>      viable: no known conversion from 'void ()' to 'PyObject *(*)()' for 2nd argument</div><div>PyAPI_FUNC(int) PyImport_AppendInittab(</div><div>                ^</div><div>fatal error: too many errors emitted, stopping now [-ferror-limit=]</div><div>20 errors generated.</div><div>make[2]: *** [Wrapping/Python/CMakeFiles/vtkpython.dir/vtkPythonAppInit.cxx.o] Error 1</div><div>make[1]: *** [Wrapping/Python/CMakeFiles/vtkpython.dir/all] Error 2</div><div>make: *** [all] Error 2</div></div><div><br></div><div>Any thoughts on what I missed?  Are there pre-built binaries with python 3 for OS X?</div><div><br></div><div>Thanks,</div><div><br></div><div>Matt</div></div></blockquote></div><br></div></div>