Load model as character using blend2bam

My scene loads just fine, but when I try to change animation states of my character, I get the following error (btw it prints the first four lines error or no)

Known pipe types:
  CocoaGraphicsPipe
(all display modules loaded.)
:Actor(warning): /Users/jfa/Projects/system/models/ball.bam is not a character!
Traceback (most recent call last):
  File "/Users/jfa/Projects/system/GameObject.py", line 90, in update
    self.state.request('Walking')
  File "/usr/local/lib/python3.11/site-packages/direct/fsm/FSM.py", line 327, in request
    self.__setState(*result)
  File "/usr/local/lib/python3.11/site-packages/direct/fsm/FSM.py", line 460, in __setState
    self.__callEnterFunc(self.newState, *args)
  File "/usr/local/lib/python3.11/site-packages/direct/fsm/FSM.py", line 496, in __callEnterFunc
    func(*args)
  File "/Users/jfa/Projects/system/State.py", line 52, in enterWalking
    self.actor.play('walk')
  File "/usr/local/lib/python3.11/site-packages/direct/actor/Actor.py", line 1549, in play
    for control in self.getAnimControls(animName, partName):
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/direct/actor/Actor.py", line 1860, in getAnimControls
    animControl = self.__bindAnimToPart(
                  ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/direct/actor/Actor.py", line 2366, in __bindAnimToPart
    bundle = self.__commonBundleHandles[subpartDef.truePartName].getBundle()
             ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'modelRoot'
:task(error): Exception occurred in PythonTask update-primary
Traceback (most recent call last):
  File "/Users/jfa/Projects/system/Game.py", line 83, in <module>
    game.run()
  File "/usr/local/lib/python3.11/site-packages/direct/showbase/ShowBase.py", line 3330, in run
    self.taskMgr.run()
  File "/usr/local/lib/python3.11/site-packages/direct/task/Task.py", line 553, in run
    self.step()
  File "/usr/local/lib/python3.11/site-packages/direct/task/Task.py", line 504, in step
    self.mgr.poll()
  File "/Users/jfa/Projects/system/GameObject.py", line 90, in update
    self.state.request('Walking')
  File "/usr/local/lib/python3.11/site-packages/direct/fsm/FSM.py", line 327, in request
    self.__setState(*result)
  File "/usr/local/lib/python3.11/site-packages/direct/fsm/FSM.py", line 460, in __setState
    self.__callEnterFunc(self.newState, *args)
  File "/usr/local/lib/python3.11/site-packages/direct/fsm/FSM.py", line 496, in __callEnterFunc
    func(*args)
  File "/Users/jfa/Projects/system/State.py", line 52, in enterWalking
    self.actor.play('walk')
  File "/usr/local/lib/python3.11/site-packages/direct/actor/Actor.py", line 1549, in play
    for control in self.getAnimControls(animName, partName):
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/direct/actor/Actor.py", line 1860, in getAnimControls
    animControl = self.__bindAnimToPart(
                  ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/direct/actor/Actor.py", line 2366, in __bindAnimToPart
    bundle = self.__commonBundleHandles[subpartDef.truePartName].getBundle()
             ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'modelRoot'

I’m using blend2bam to create my model files, but documentation is a little thin. There are no animation keys in my blend file, and the model is at the root level and not in a collection.

I get the following errors when I use blend2bam

SystemError: GPU API is not available in background mode
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

 Starting the Poliigon Addon for Blender... 

/Users/jfa/Poliigon/Blender/Poliigon_Blender_Settings.ini
Toggle verbose logging in addon prefrences
--------------------------------------------------
f_GetSettings
--------------------------------------------------
f_SaveSettings
--------------------------------------------------
f_GetCredits
--------------------------------------------------
f_APIGetCredits
f_APIGetCredits ERROR Not authorized
--------------------------------------------------
f_GetUserInfo
--------------------------------------------------
f_APIGetUserInfo
f_APIGetUserInfo ERROR Not authorized
--------------------------------------------------
f_GetSubscriptionDetails
--------------------------------------------------
f_APIGetSubscriptionDetails
f_APIGetSubscriptionDetails ERROR Not authorized
--------------------------------------------------
f_GetAssets
f_GetAssets my_assets None 5000 1
--------------------------------------------------
f_GetPageAssets
f_GetPageAssets poliigon/All Assets
f_GetAssets my_assets/All Assets
--------------------------------------------------
f_APIGetAssets
f_GetAssets None None None 0
f_GetAssets poliigon/All Assets
f_APIGetAssets 1 5000 my_assets/All Assets 1 1691760179.453388
f_APIGetAssets 1 10 poliigon/All Assets 0 1691760179.453642
f_APIGetAssets {"query": "", "page": 1, "perPage": 5000, "algoliaParams": {"facetFilters": [], "numericFilters": ["Credit>=0"]}}
--------------------------------------------------
f_GetCategories
f_APIGetAssets {"query": "", "page": 1, "perPage": 10, "algoliaParams": {"facetFilters": [], "numericFilters": ["Credit>=0"]}}
f_APIGetAssets ERROR Not authorized
f_APIGetAssets ERROR Not authorized
--------------------------------------------------
f_APIGetCategories--------------------------------------------------
f_GetLocalAssets

--------------------------------------------------
f_CheckAssets
--------------------------------------------------
f_GetLocalAssetsThread
blenderkit addon: Verbose is enabled
blenderkit addon: Read in JSON settings from file
INFO:BlenderGIS-master:###### Starting new Blender session : 2023-08-11 08:22:59
DEBUG:BlenderGIS-master.core.checkdeps:GDAL Python binding unavailable
DEBUG:BlenderGIS-master.core.checkdeps:PyProj unavailable
DEBUG:BlenderGIS-master.core.checkdeps:Pillow unavailable
DEBUG:BlenderGIS-master.core.checkdeps:ImageIO Freeimage plugin available
--------------------------------------------------
f_GetSceneAssets
Read blend: /Users/jfa/doodles/ball.blend

blenderkit INFO: Unregistering BlenderKit add-on [08:22:59.634, __init__.py:2371]
blenderkit INFO: Reported Blender quit to daemon [08:22:59.639, __init__.py:2391]

Blender quit

Would this affect my model? I appreciate any help. Thank you.

I needed to make the model a child of the armature, that’s why I was getting this error.