Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot enable addon (translations cache for the addon already exists) #10

Open
Puupyqueen opened this issue Oct 16, 2022 · 5 comments
Open
Labels
bug Something isn't working

Comments

@Puupyqueen
Copy link

when I try to enable the addon I get this error

Traceback (most recent call last):
File "C:\Users\NAME\Downloads\blender-3.4.0-alpha+master.ba74704c9ace-windows.amd64-release\blender-3.4.0-alpha+master.ba74704c9ace-windows.amd64-release\3.4\scripts\modules\addon_utils.py", line 369, in enable
mod.register()
File "C:\Users\NAME\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\blender_uasset_addon_init_.py", line 42, in register
translation.register()
File "C:\Users\NAME\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\blender_uasset_addon\translations\translation.py", line 65, in register
bpy.app.translations.register("blender_uasset_addon", translations_dict)
ValueError: bpy.app.translations.register: translations message cache already contains some data for addon 'blender_uasset_addon'

I see this and it wont enable

@matyalatte
Copy link
Owner

Can you tell me more details to reproduce the situation?
It looks like you enabled the addon twice as 2 addons.
For example, I've got the same error when installing the addon twice with a zip file and my python script.

@Puupyqueen
Copy link
Author

I first installed "Blender-Uasset-Addon-main" and nothing happened except a blue message at the bottom right corner (it didn't appear in the addon list) then I installed "blender_uasset_addon_v0.2.1" and got the error

@matyalatte matyalatte added the bug Something isn't working label Oct 16, 2022
@matyalatte
Copy link
Owner

I remember v0.2.1 has an issue about unregister function (fixed at this commit e562bf1).
It could be the cause.

Can you try a hotfixed version I uploaded here?
#9 (comment)
It's for another issue but includes bugfix for the unregister issue.

If you still get the error, relaunch Blender once.
I think it'll work fine.

@matyalatte
Copy link
Owner

Also, it's not related to the error, but you should remove C:\Users\NAME\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\Blender-Uasset-Addon-main because Blender will unzip it even if it's not an addon.
There is no problem even if you won't remove the unzipped folder, but it's unnecessary.

@matyalatte matyalatte changed the title cannot enable addon cannot enable addon (translations cache for the addon already exists) Oct 16, 2022
@Puupyqueen
Copy link
Author

Thank you the hotfix worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants