Bug #353

Export Aborted: no to_python converter found: Arch linux, Blender 2.76

Added by Alex Dahl over 2 years ago. Updated over 1 year ago.

Status:NewStart date:02/03/2016
Priority:HighDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

When attempting to render an image from within blender, the scene export fails. Both mitsuba and the blender plugin were installed today (2016-2-3) from the most recent source.

[Mitsuba 2016-Feb-03 17:31:29] INFO: Creating Mitsuba context
[Mitsuba 2016-Feb-03 17:31:29] Scene File: /home/alex/Class/5608/hw1/program1 scenes/Mitsuba/mitsuba.Scene.00001.xml
[Mitsuba 2016-Feb-03 17:31:30] ERROR: Export aborted: No to_python (by-value) converter found for C++ type: mitsuba::ref<mitsuba::TriMesh>
Traceback (most recent call last):
File "/home/alex/.config/blender/2.76/scripts/addons/mtsblend/export/scene.py", line 329, in export
self.cache_motion(scene)
File "/home/alex/.config/blender/2.76/scripts/addons/mtsblend/export/scene.py", line 275, in cache_motion
self.sync_object(instances, b_ob, None, trafo, hide_mesh, origframe, seq)
File "/home/alex/.config/blender/2.76/scripts/addons/mtsblend/export/scene.py", line 133, in sync_object
mesh=self.GE.buildMesh(obj, seq=seq),
File "/home/alex/.config/blender/2.76/scripts/addons/mtsblend/export/geometry.py", line 103, in buildMesh
mesh_definitions = self.writeMesh(obj, seq=seq)
File "/home/alex/.config/blender/2.76/scripts/addons/mtsblend/export/geometry.py", line 201, in writeMesh
self.serializer.serialize(file_path, mesh_name, mesh, i)
File "/home/alex/.config/blender/2.76/scripts/addons/mtsblend/outputs/pure_api.py", line 537, in serialize
faces, len(mesh.vertices), vertices, texCoords, vertexColors, materialID)
TypeError: No to_python (by-value) converter found for C++ type: mitsuba::ref<mitsuba::TriMesh>

History

#1 Updated by bartus bartus almost 2 years ago

The problem lays in the mitsuba python bindings. When using boost 1.60 there is some additional concept in exposing pointers.
https://mail.python.org/pipermail/cplusplus-sig/2016-January/017362.html

#2 Updated by bartus bartus over 1 year ago

With boost >1.61 problem no longer appears, python integrator works fine.

Also available in: Atom PDF