BlenderKit addons is not activating #81469

Closed
opened 2020-10-05 22:10:30 +02:00 by SULTAN · 19 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 1660 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.38

Blender Version
Broken: version: 2.90.1, branch: master, commit date: 2020-09-23 06:43, hash: blender/blender@3e85bb34d0
Worked: (newest version of Blender that worked as expected)

Addon Information
Name: BlenderKit Online Asset Library (1, 0, 31)
Author: Vilem Duha, Petr Dlouhy

Short description of error
[i can not activate the addon since i upgrade blender from 2.83 to 2.9-2.9.1]

Exact steps for others to reproduce the error
[once I tried to check the activation box it show this message ]
[error9] bad file descriptor

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 1660 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.38 **Blender Version** Broken: version: 2.90.1, branch: master, commit date: 2020-09-23 06:43, hash: `blender/blender@3e85bb34d0` Worked: (newest version of Blender that worked as expected) **Addon Information** Name: BlenderKit Online Asset Library (1, 0, 31) Author: Vilem Duha, Petr Dlouhy **Short description of error** [i can not activate the addon since i upgrade blender from 2.83 to 2.9-2.9.1] **Exact steps for others to reproduce the error** [once I tried to check the activation box it show this message ] [error9] bad file descriptor

#83402 was marked as duplicate of this issue

#83402 was marked as duplicate of this issue
Author

Added subscriber: @SULTAN-4

Added subscriber: @SULTAN-4

Added subscriber: @WeezY

Added subscriber: @WeezY

blenderkit does not support 2.9+ yet
https://www.blenderkit.com/get-blenderkit/

blenderkit does not support 2.9+ yet https://www.blenderkit.com/get-blenderkit/
Member

Added subscriber: @VilemDuha

Added subscriber: @VilemDuha
Vilem Duha self-assigned this 2020-10-17 10:00:32 +02:00
Member

Please provide more information, optimally the output from the console.
@WeezY BlenderKit definitely is supported in 2.9x versions, it's part of the download and is used by many people daily...

Please provide more information, optimally the output from the console. @WeezY BlenderKit definitely is supported in 2.9x versions, it's part of the download and is used by many people daily...

Added subscriber: @vasko

Added subscriber: @vasko

image.png

I cant activate blenderkit on 2.81 , 2.82 error python code and red line when click enable

![image.png](https://archive.blender.org/developer/F9388205/image.png) I cant activate blenderkit on 2.81 , 2.82 error python code and red line when click enable

Added subscriber: @rjg

Added subscriber: @rjg

@vasko Blender 2.81 and 2.82 have reached their end of life and don't receive patches or corrective release anymore. Please check if this works properly in Blender 2.83.9 LTS or 2.91.

@vasko Blender 2.81 and 2.82 have reached their end of life and don't receive patches or corrective release anymore. Please check if this works properly in Blender 2.83.9 LTS or 2.91.
Member

Indeed. This is actually a problem of a standard python library not importing - requests. You should get the same error if you try to type 'import requests' in the python console in Blender.

Indeed. This is actually a problem of a standard python library not importing - requests. You should get the same error if you try to type 'import requests' in the python console in Blender.
Member

Added subscriber: @dnmntumba1

Added subscriber: @dnmntumba1

Added subscriber: @Diogo_Valadares

Added subscriber: @Diogo_Valadares

I'm also having trouble with blenederkit, I think since beta 2.91, the items of the store weren't loading, I thought it was a problem of their website.

I tried to deactivate the addon today and reactivate and I got this:

> Exception in module register(): D:\Program Files (x86)\Steam\steamapps\common\Blender\2.91\scripts\addons\blenderkit\__init__.py
> Traceback (most recent call last):
>   File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.91\scripts\modules\addon_utils.py", line 382, in enable
>     mod.register()
>   File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.91\scripts\addons\blenderkit\__init__.py", line 1709, in register
>     utils.load_prefs()
>   File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.91\scripts\addons\blenderkit\utils.py", line 234, in load_prefs
>     prefs = json.load(s)
>   File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.91\python\lib\json\__init__.py", line 296, in load
>     parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
>   File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.91\python\lib\json\__init__.py", line 348, in loads
>     return _default_decoder.decode(s)
>   File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.91\python\lib\json\decoder.py", line 337, in decode
>     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
>   File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.91\python\lib\json\decoder.py", line 355, in raw_decode
>     raise JSONDecodeError("Expecting value", s, err.value) from None
> json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
> 
> Traceback (most recent call last):
>   File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.91\scripts\addons\blenderkit\search.py", line 304, in timer_update
>     preferences = bpy.context.preferences.addons['blenderkit'].preferences
> KeyError: 'bpy_prop_collection[key]: key "blenderkit" not found'
> Python: Traceback (most recent call last):

with the following appearing repeatedly

Python: Traceback (most recent call last):
  File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.91\scripts\addons\blenderkit\ui_panels.py", line 841, in poll
    user_preferences = bpy.context.preferences.addons['blenderkit'].preferences
KeyError: 'bpy_prop_collection[key]: key "blenderkit" not found'

location: <unknown location>:-1

Note that for me anything 2.90.1 and below works perfectly fine, so I'm not sure if its related to the original problem

I'm also having trouble with blenederkit, I think since beta 2.91, the items of the store weren't loading, I thought it was a problem of their website. I tried to deactivate the addon today and reactivate and I got this: ``` > Exception in module register(): D:\Program Files (x86)\Steam\steamapps\common\Blender\2.91\scripts\addons\blenderkit\__init__.py > Traceback (most recent call last): > File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.91\scripts\modules\addon_utils.py", line 382, in enable > mod.register() > File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.91\scripts\addons\blenderkit\__init__.py", line 1709, in register > utils.load_prefs() > File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.91\scripts\addons\blenderkit\utils.py", line 234, in load_prefs > prefs = json.load(s) > File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.91\python\lib\json\__init__.py", line 296, in load > parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw) > File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.91\python\lib\json\__init__.py", line 348, in loads > return _default_decoder.decode(s) > File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.91\python\lib\json\decoder.py", line 337, in decode > obj, end = self.raw_decode(s, idx=_w(s, 0).end()) > File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.91\python\lib\json\decoder.py", line 355, in raw_decode > raise JSONDecodeError("Expecting value", s, err.value) from None > json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) > > Traceback (most recent call last): > File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.91\scripts\addons\blenderkit\search.py", line 304, in timer_update > preferences = bpy.context.preferences.addons['blenderkit'].preferences > KeyError: 'bpy_prop_collection[key]: key "blenderkit" not found' > Python: Traceback (most recent call last): ``` with the following appearing repeatedly ``` Python: Traceback (most recent call last): File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.91\scripts\addons\blenderkit\ui_panels.py", line 841, in poll user_preferences = bpy.context.preferences.addons['blenderkit'].preferences KeyError: 'bpy_prop_collection[key]: key "blenderkit" not found' location: <unknown location>:-1 ``` Note that for me anything 2.90.1 and below works perfectly fine, so I'm not sure if its related to the original problem
Member

@Diogo_Valadares Your issue is a different one. Thanks for reporting it - I just fixed this in blender 2.92.

You can test the fix by downloading a new build from builder.blender.org (tomorrow).

Also, by now you can fix it by deleting the preferences file - Should be a similar path on your system if you are on windows, otherwise it will be wherever your blender installation stores settings:
C:\Users\YOURUSERNAME\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\presets\bkit.json

@Diogo_Valadares Your issue is a different one. Thanks for reporting it - I just fixed this in blender 2.92. You can test the fix by downloading a new build from builder.blender.org (tomorrow). Also, by now you can fix it by deleting the preferences file - Should be a similar path on your system if you are on windows, otherwise it will be wherever your blender installation stores settings: C:\Users\YOURUSERNAME\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\presets\bkit.json

Thank you Vilem =D

Thank you Vilem =D
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Member

Changed status from 'Needs Triage' to: 'Archived'

Changed status from 'Needs Triage' to: 'Archived'
Member

Hi, Blender Kit is maintained independently of Blender now, please report the bug here:

https://github.com/BlenderKit/blenderkit/issues

Hi, Blender Kit is maintained independently of Blender now, please report the bug here: https://github.com/BlenderKit/blenderkit/issues
Sign in to join this conversation.
No Milestone
No project
No Assignees
9 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#81469
No description provided.