You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: