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\
--> 157     ResourceEror = resource.error
    159 _DEFAULT_BATCH_SIZE = 128

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.