@sahrul it seems you previously had Bonsai version that had this issue with disabling the addon and now you're trying to install a new one.
To resolve it, you'll need to close Blender and manually delete 'C:\Users\Sahru\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\.local' folder and your 'bonsai' folder - Blender\4.2\extensions\xxxx\bonsai where xxxx is the repository you used to install it (could be 'user_default', 'blender_org' or 'raw_githubusercontent_com', depending on where you got bonsai from). After that you can start Blender and install Bonsai again.
You can also just update Blender to 4.2.1 and install new version of Bonsai, the original issue comes from Blender and they resolved this in that correction release.
I've updated to Blender 4.2.1, but it still doesn't work
Repository "extensions.blender.org": lock exists (lock is already held by this session)
If the lock was held by a Blender instance that exited unexpectedly,
use: "Fore Unlock Repository" to clear the lock.
Access from the "Repositories" popover in the extensions preferences.
Comments
It only works with blender 4.2
what error?
Reinstalled "bonsai"
Python: Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\python\Lib\shutil.py", line 622, in _rmtree_unsafe
onerror(os.unlink, fullname, sys.exc_info())
File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\python\Lib\shutil.py", line 620, in _rmtree_unsafe
os.unlink(fullname)
PermissionError: [WinError 5] Access is denied: 'C:\Users\Sahru\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\.local\lib\python3.11\site-packages\ifcopenshell\_ifcopenshell_wrapper.cp311-win_amd64.pyd'
No module named 'shapely.lib'
Python: Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\python\Lib\shutil.py", line 622, in _rmtree_unsafe
onerror(os.unlink, fullname, sys.exc_info())
File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\python\Lib\shutil.py", line 620, in _rmtree_unsafe
os.unlink(fullname)
PermissionError: [WinError 5] Access is denied: 'C:\Users\Sahru\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\.local\lib\python3.11\site-packages\greenlet\_greenlet.cp311-win_amd64.pyd'
@sahrul it seems you previously had Bonsai version that had this issue with disabling the addon and now you're trying to install a new one.
To resolve it, you'll need to close Blender and manually delete 'C:\Users\Sahru\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\.local' folder and your 'bonsai' folder -
Blender\4.2\extensions\xxxx\bonsai
wherexxxx
is the repository you used to install it (could be 'user_default', 'blender_org' or 'raw_githubusercontent_com', depending on where you got bonsai from). After that you can start Blender and install Bonsai again.You can also just update Blender to 4.2.1 and install new version of Bonsai, the original issue comes from Blender and they resolved this in that correction release.
I've updated to Blender 4.2.1, but it still doesn't work
Repository "extensions.blender.org": lock exists (lock is already held by this session)
If the lock was held by a Blender instance that exited unexpectedly,
use: "Fore Unlock Repository" to clear the lock.
Access from the "Repositories" popover in the extensions preferences.
Try to use "Force Unlock Repository". It seems Blender was closed unexpectedly during some installation/uninstallation.