arindam-m / pyslapi

Python bindings for the official Sketchup API
195 stars 26 forks source link

There is a version that works with Mac? #12

Open Decameron16 opened 4 years ago

Decameron16 commented 4 years ago

Describe the bug It's not possible to enable the addon

System Info

Villafruela commented 4 years ago

i concur.

i tried with blender 2.90.1, 2.83 LTS, 2.8 none worked. The plugin can't be activated.

Blender_Preferences

Shaddy-ElDesouky commented 4 years ago

image

Shaddy-ElDesouky commented 4 years ago

@Decameron16 https://github.com/martijnberger/pyslapi/releases this is the 2.79 release, there is a mac version, also I understood that there is update for 2.8

ideoservo commented 3 years ago

Hello, I've build a version for MacOSX here https://github.com/ideoservo/pyslapi/releases/tag/0.21.1-OSX It works only with models which do not have textures.

See this thread https://forums.sketchup.com/t/su-error-serialisation-when-using-sutexturewritetofile-on-macos-2021-sdk/146194/2

Error log in Blender: Python: Traceback (most recent call last): File "/Users/Admin/Library/Application Support/Blender/2.92/scripts/addons/SketchUp_Importer-OSX/init.py", line 886, in execute context, **keywords) File "/Users/Admin/Library/Application Support/Blender/2.92/scripts/addons/SketchUp_Importer-OSX/init.py", line 172, in load self.write_materials(self.skp_model.materials) File "/Users/Admin/Library/Application Support/Blender/2.92/scripts/addons/SketchUp_Importer-OSX/init.py", line 343, 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

u3dreal commented 3 years ago

I'm trying to get to the root here .. lets hope someone will look at it

https://github.com/SketchUp/api-issue-tracker/issues/632

arindam-m commented 3 years ago

If the build instructions for macOS (by @ideoservo) have worked, we may close this issue soon.

videopilot commented 3 years ago

I'm also able to get the Mac version built or use the Mac releases mentioned here, but getting the same error as @ideoservo above.

@u3dreal I see you made some progress in that thread. Did SUInitialize and SUTerminate solve it? I'm not clear where those go.