Benjamin Couéraud <coueraud.benjamin(a)LIVE.COM> writes:
I have been using MeshPy quite a lot on Windows, Ubuntu and Fedora
without any problem. I always installed the package using pip. Now I am on Manjaro (a
derivative of Arch let's say), and I am trying to install MeshPy. The package is
installed by pip like usual, but when executing a test script I get the following:
[MeshPy warning] A Python exception occurred in a Python refinement query:
TypeError: No to_python (by-value) converter found for C++ type:
[MeshPy] Aborting now.
Aborted (core dumped)
So checking MeshPy's documentation, I understood that I needed to
install boost and its python bindings, which I did (essentially it
corresponds to the boost-libs package on Arch). I have a
libboost_python3 in /usr/lib. But when I check with ldd on the
triangle.so file accompanying MeshPy, it doesn't display
libboost_python as a dependency curiously.
meshpy ships with its own copy of boost and does not require an external
installation of boost. (see the 'meshpyboost' namespace above) FWIW,
'pip install meshpy' should just work. If you force it to use your own
system boost, you will have to turn off the use of the shipped
boost. ('USE_SHIPPED_BOOST = False' in siteconf.py) If you don't, it's
easy to see how either of the two would get confused in the way you
describe because converter registrations go to one, but not the other.
Hope that helps,