Page MenuHome

Blender Cloud add-on not working in blender-2.80.0-git.e5e885d0ecb9-windows64
Closed, ResolvedPublic

Description

System Information
Operating system: windows 10
Graphics card: RTX2070

Blender Version
Broken:
blender-2.80.0-git.e5e885d0ecb9-windows64

Short description of error

Exact steps for others to reproduce the error
I try and enable the add-on and it does not work. I get the following trace back:

Traceback (most recent call last):

File "D:\Blender\blender-2.80.0-git.e5e885d0ecb9-windows64\2.80\scripts\modules\addon_utils.py", line 393, in enable
  mod.register()
File "D:\Blender\blender-2.80.0-git.e5e885d0ecb9-windows64\2.80\scripts\addons\blender_cloud\__init__.py", line 104, in register
  blender.register()
File "D:\Blender\blender-2.80.0-git.e5e885d0ecb9-windows64\2.80\scripts\addons\blender_cloud\blender.py", line 702, in register
  addon_prefs = preferences()
File "D:\Blender\blender-2.80.0-git.e5e885d0ecb9-windows64\2.80\scripts\addons\blender_cloud\blender.py", line 656, in preferences
  return bpy.context.user_preferences.addons[ADDON_NAME].preferences

AttributeError: '_RestrictContext' object has no attribute 'user_preferences'

Details

Type
Bug

Event Timeline

I cannot reproduce this on Linux.

Brecht Van Lommel (brecht) triaged this task as Confirmed, Medium priority.

@Sybren A. Stüvel (sybren), bpy.context.user_preferences was recently renamed to bpy.context.preferences, in 2.80.

@Brecht Van Lommel (brecht) thanks, that should make it easy enough to fix.

Thanks, Brecht and Sybren.