martijnberger / pyslapi

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

Blender addon can not be installed in 2.79 #21

Closed IPv6 closed 4 years ago

IPv6 commented 7 years ago

With latest Blender i get "DLL import" errors on each start // Reinstall gives following error:

Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\modules\addon_utils.py", line 331, in enable
    mod = __import__(module_name)
  File "C:\Users\Main\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\sketchup_importer\__init__.py", line 32, in <module>
    from . import sketchup
ImportError: cannot import name 'sketchup'

and addon is not activatable... Its a pity, import worked great!

Bibi56 commented 6 years ago

No problem with Win 8.1 64. Are you using Win 10 or another OS?

IPv6 commented 6 years ago

Win 10

andreimd87 commented 6 years ago

well, first you need the sketchup to be installed on system :)

IPv6 commented 6 years ago

@andreimd87 I already had it installed, of course.

Just for the sake of completeness - just reinstalled SkpPro-64, then downloaded latest zip from this hub -> repacked sketchup_imported (to be able add it as addon) -> started Blender (2.79 master), added addon... same error. Can not enable it, "cannot import name 'sketchup'" at "from . import sketchup"

IPv6 commented 6 years ago

and in case of "Sketchup Importer 0.18" - same error too. i just realised that bare sketchup_imported is not intended for installing as addon (cpython, etc)

andreimd87 commented 6 years ago

maybe you have some other user addons that may conflict with it. try to disable them first and install importer

IPv6 commented 6 years ago

@andreimd87 no, according to error it surely not the case here. unfortunately

SolidFoxZX commented 6 years ago

Blender 2.79 - work ok Blender 2.79.2 current build - not install. Cheked on win7 and win10

sonygod commented 6 years ago

Blender 2.79b - work ok Blender 2.79.6 can't install

martijnberger commented 4 years ago

https://github.com/martijnberger/pyslapi/releases/tag/0.20 is the final release for 2.79b

next up is making this work with 2.82