Poly-Haven / polyhavenassets

A Blender add-on to integrate our assets natively in the asset browser
GNU General Public License v3.0
312 stars 21 forks source link

python error traceback (most recent call last) Blender 4.0.1 #96

Closed 39blender closed 11 months ago

39blender commented 11 months ago

AFTER ADING THE POLY HAVEN ADDON WITH BLENDER 4.0 , WHEN FECTHINH IT IN ASSET BROWSER ,IT SHOWS SOME PYTHON ERROR(python error traceback (most recent call last)) SOME THING LIKE

bpy.ops.view3d.blenderkit_disclaimer_widget(message="Use the X key over the asset bar to delete the asset from your hard drive.", url="https://github.com/BlenderKit/blenderkit/wiki/BlenderKit-add-on-documentation#assetbar", fadeout_time=8, tip=True) bpy.context.area.ui_type = 'ASSETS' bpy.context.space_data.params.asset_library_reference = 'POLY HAVEN' bpy.context.space_data.params.import_method = 'LINK' bpy.ops.pha.pull_from_polyhaven(asset_type="all", revalidate=False) Python: Traceback (most recent call last): File "C:\Users\ALOK\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\polyhavenassets-main\operators\pull_from_polyhaven.py", line 294, in execute error, assets = get_asset_list(self.asset_type) File "C:\Users\ALOK\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\polyhavenassets-main\utils\get_asset_list.py", line 15, in get_asset_list verify_ssl = not bpy.context.preferences.addons["polyhavenassets"].preferences.disable_ssl_verify KeyError: 'bpy_prop_collection[key]: key "polyhavenassets" not found' bpy.context.space_data.params.import_method = 'FOLLOW_PREFS' bpy.ops.pha.pull_from_polyhaven(asset_type="all", revalidate=False) Python: Traceback (most recent call last): File "C:\Users\ALOK\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\polyhavenassets-main\operators\pull_from_polyhaven.py", line 294, in execute error, assets = get_asset_list(self.asset_type) File "C:\Users\ALOK\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\polyhavenassets-main\utils\get_asset_list.py", line 15, in get_asset_list verify_ssl = not bpy.context.preferences.addons["polyhavenassets"].preferences.disable_ssl_verify KeyError: 'bpy_prop_collection[key]: key "polyhavenassets" not found' bpy.context.space_data.params.import_method = 'APPEND' bpy.ops.pha.pull_from_polyhaven(asset_type="all", revalidate=False) Python: Traceback (most recent call last): File "C:\Users\ALOK\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\polyhavenassets-main\operators\pull_from_polyhaven.py", line 294, in execute error, assets = get_asset_list(self.asset_type) File "C:\Users\ALOK\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\polyhavenassets-main\utils\get_asset_list.py", line 15, in get_asset_list verify_ssl = not bpy.context.preferences.addons["polyhavenassets"].preferences.disable_ssl_verify KeyError: 'bpy_prop_collection[key]: key "polyhavenassets" not found' bpy.context.space_data.params.import_method = 'APPEND_REUSE' bpy.ops.pha.pull_from_polyhaven(asset_type="all", revalidate=False) Python: Traceback (most recent call last): File "C:\Users\ALOK\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\polyhavenassets-main\operators\pull_from_polyhaven.py", line 294, in execute error, assets = get_asset_list(self.asset_type) File "C:\Users\ALOK\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\polyhavenassets-main\utils\get_asset_list.py", line 15, in get_asset_list verify_ssl = not bpy.context.preferences.addons["polyhavenassets"].preferences.disable_ssl_verify KeyError: 'bpy_prop_collection[key]: key "polyhavenassets" not found'

gregzaal commented 11 months ago

Hi, if you're not purchasing the add-on from the Blender Market or supporting us on Patreon, make sure you follow the installation instructions in the readme carefully. The add-on must be downloaded from the releases page.