Error importing dvc.api

Trying follow the guide to read a file from DVC remote (open()) but having issues import the DVC python API:

import dvc.api

Getting the error:

File c:\...\env\lib\site-packages\dvc_objects\fs\__init__.py:5
...
--> 157     ResourceEror = resource.error
    159 _DEFAULT_BATCH_SIZE = 128
    160 _NOFILES_DEFAULT_BATCH_SIZE = 1280

AttributeError: module 'resource' has no attribute 'error'

Environment: Windows 11. Python 3.9.6

For the record, we replied in discord.

Something is wrong with your environment. Please show dvc doctor and full traceback.