martijnberger / pyslapi

Python bindings for the official Sketchup API
237 stars 134 forks source link

error importing on MACOS #40

Open Swagalotty opened 4 years ago

Swagalotty commented 4 years ago

Hi I'm having this error importing on MACOS, from sketcup 2018 to belnder 2.79b with your 0.20 scketcup importer the issue happens only with files that have materials (even only one). Instead big and complex files with groups and scenes, BUT NO MATERIALS will be imported succesfully Thank you for your work

Traceback (most recent call last): File "/Users/andrea/Library/Application Support/Blender/2.79/scripts/addons/sketchup_importer/init.py", line 681, in execute return SceneImporter().set_filename(keywords['filepath']).load(context, **keywords) File "/Users/andrea/Library/Application Support/Blender/2.79/scripts/addons/sketchup_importer/init.py", line 139, in load self.write_materials(self.skp_model.materials) File "/Users/andrea/Library/Application Support/Blender/2.79/scripts/addons/sketchup_importer/init.py", line 271, in write_materials tex.write(tmp_name) File "sketchup.pyx", line 330, in sketchup.Texture.write File "sketchup.pyx", line 62, in sketchup.check_result RuntimeError: Sketchup library giving unexpected results SU_ERROR_SERIALIZATION

location: :-1