I am trying to manually install the Armory SDK through Python in a newer version of Blender 2.8 than the version that the SDK comes with. But I get the following errors:
Error: Traceback (most recent call last):
File "/home/amir/.config/blender/2.80/scripts/addons/armory.py", line 205, in execute
start.register(local_sdk=local_sdk)
File "/home/amir/Desktop/armory/blender-2.80/armsdk//armory/blender/start.py", line 22, in register
arm.props_traits_props.register()
File "/home/amir/Desktop/armory/blender-2.80/armsdk//armory/blender/arm/props_traits_props.py", line 36, in register
bpy.utils.register_class(ArmTraitPropList)
RuntimeError: Error: 'ArmTraitPropList' doesn't contain '_UL_' with prefix & suffix
location: /home/amir/Desktop/armory/blender-2.80/2.80/scripts/modules/bpy/ops.py:200
Traceback (most recent call last):
File "<blender_console>", line 1, in <module>
File "/home/amir/Desktop/armory/blender-2.80/2.80/scripts/modules/bpy/ops.py", line 200, in __call__
ret = op_call(self.idname_py(), None, kw)
RuntimeError: Error: Traceback (most recent call last):
File "/home/amir/.config/blender/2.80/scripts/addons/armory.py", line 205, in execute
start.register(local_sdk=local_sdk)
File "/home/amir/Desktop/armory/blender-2.80/armsdk//armory/blender/start.py", line 22, in register
arm.props_traits_props.register()
File "/home/amir/Desktop/armory/blender-2.80/armsdk//armory/blender/arm/props_traits_props.py", line 36, in register
bpy.utils.register_class(ArmTraitPropList)
RuntimeError: Error: 'ArmTraitPropList' doesn't contain '_UL_' with prefix & suffix
location: /home/amir/Desktop/armory/blender-2.80/2.80/scripts/modules/bpy/ops.py:200
And here are the steps I followed to install it:
1- copy Armory sdk into Blender鈥檚 directory
2- Execute the following commands in Blender鈥檚 Python console:
bpy.ops.preferences.addon_install(filepath='armsdk/armory/blender/addon/armory.py')
bpy.ops.preferences.addon_enable(module='armory')
user_prefs = bpy.context.preferences
addon_prefs = user_prefs.addons['armory'].preferences
addon_prefs.sdk_path = 'armsdk'
bpy.ops.arm_addon.start() #this throws and error
@luboslenco Am I doing something wrong?
Don't think you are doing anything wrong, armory addon will need more updating for latest Blender. Will try to take care of it asap.
@luboslenco Would appreciate if you can upload a new version of the addon on Armory website. Like 0.6a or something. I'm using the 0.6 SDK now.
I can confirm that it has to do with the latest Blender. Armory and a few other plugins I have ( even ones that come with Blender ) are giving similar errors. It looks like they are now enforcing a naming scheme for classes that requires them to be prefixed with ALPHANUMERICPREFIX_CLASSTYPEINDICATOR like ARM_UL_PropList. I tested renaming one of the classes, and it looks like it stopped complaining, but it then moved on to another class. We probably just need to go through and rename all of them. I don't have the time to try to do that at the moment.
I will try to fix few day ;) if I can 馃憤
If anyone is actively looking into this please let me know so we can prevent duplicate work, otherwise I will assign it to myself. 馃檪
@BlackGoku36 @zicklag I think @luboslenco was talking to you guys :grin:
@luboslenco I am doing it right now 馃憤 , @Amir-Arsalan I Know 馃槃
There ya go: https://github.com/armory3d/armory/pull/1236 馃帄
@BlackGoku36 Thank you ^_^
@luboslenco Do you think it would be possible for you to compile the current stuff and upload it on armory3d.org? Like version 0.6a or something?
Yes should be very possible, will try to put up an updated build soon.
Most helpful comment
I will try to fix few day ;) if I can 馃憤