Motionbuilder 2022 import asyncio fails

Hello - I’m looking for someone willing to test this python command in Motionbuilder 2022:

import asyncio

On my machine it produces this error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Program Files\Autodesk\MotionBuilder 2022\bin\x64\python37\lib\asyncio\__init__.py", line 35, in <module>
    tasks.__all__ +
NameError: name 'base_events' is not defined

Is this a global issue?

Hi Kroopson,

I get the same problem in MB 2022

Not sure why, sorry.

What’s is asyncio ?

Thank you so much for confirming this. asyncio is a built-in python library for calling functions asyncronously. It is required by other libraries like sqlalchemy and it seems like python embedded in motionbuilder is broken. I feel like it’s 2011 again :confused:

It isn’t broken - asyncio just doesn’t ship with mobu2022. You can pip install it though:

https://help.autodesk.com/view/MOBPRO/2022/ENU/?guid=GUID-46E090C5-34AD-4E26-872F-F7D21DC57C74