[error]’_RetricContext’ object has no attribute ‘user_preferences’ in Blender Addon

Error Detail

When I tried to install an addon the AttributeError “‘_RetricContext’ object has no attribute ‘user_preferences'” occurred.

Cause

“user_preference” has changed in ver2.80 due to massive specification change. Check Blender Python API Document for details.

Checklist

  • Check to see if the addon version matches Blender version you use.