armory3d / armory

3D Engine with Blender Integration
https://armory3d.org
zlib License
3.05k stars 317 forks source link

RuntimeError: bpy.types.AddonPreferences subtype could not be generated, this is a bug! #296

Closed donalffons closed 6 years ago

donalffons commented 6 years ago

Lubos,

tank you for all the great work you put into Armory. I've been following the development lately and it's awesome what you have achieved so far.

However, I have the abovementioned issue when trying to activate the Armory Addon in Blender. I downloaded Armory_b14_win64 from the website (I get the same results with Armory_b13_win64). I unzip and then I start Blender.exe. I go to File / preferences / Addons to activate 'Render: Armory' (that is not enabled by default). This gives the following exception:

image

Traceback (most recent call last):
  File "D:\Programs\Armory\Armory_b14_win64\2.79\scripts\modules\addon_utils.py", line 331, in enable
    mod = __import__(module_name)
  File "D:\Programs\Armory\Armory_b14_win64\2.79\scripts\addons\armory.py", line 22, in <module>
    from bpy.types import Operator, AddonPreferences
RuntimeError: bpy.types.AddonPreferences subtype could not be generated, this is a bug!

The version Armory_b13_win64_blender28 works without any issues.

Best regards -Sebastian

donalffons commented 6 years ago

... I fixed it by deleting the C:\Users[...]\AppData\Roaming\Blender Foundation\Blender\2.79\config\userpref.blend and restarting Armory / Blender

luboslenco commented 6 years ago

Thanks for the kind words @donalffons, it really means a lot. Happy you made it work in the end. I wonder if this is somehow caused by Armory itself.