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

using with blender 2.92 #62

Open
GuiRamb opened this issue Mar 4, 2021 · 0 comments
Open

using with blender 2.92 #62

GuiRamb opened this issue Mar 4, 2021 · 0 comments

Comments

@GuiRamb
Copy link

GuiRamb commented Mar 4, 2021

I tried to use the package osgexport-0.14.2 with blender v2.92, but I have an error due to USER_PREFERENCES which had changed in PREFERENCES. Moreover, in the add-ons windows in preferences, the message "Upgrade to 2.8x required" is mentionned.
below the error message I had

Traceback (most recent call last):
File "C:\Users\blender-2.92.0-windows64\blender-2.92.0-windows64\2.92\scripts\modules\addon_utils.py", line 351, in enable
mod = import(module_name)
File "C:\Users\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\osg_init_.py", line 46, in
BlenderExporterDir = os.getenv("BlenderExporter", os.path.join(bpy.context.user_preferences.filepaths.script_directory,"blenderExporter"))
AttributeError: '_RestrictContext' object has no attribute 'user_preferences'

I changed USER_PREFERENCES by PREFERENCES in the init.py file, but nothing append and the problem was not resolved.
What can I change to resolve the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant