ImportError in AWS SageMaker Studio: Cannot Import asdict from datasets.utils.py_utils

I am facing an issue while working on the AWS SageMaker Studio environment provided in the course. During execution, I encountered the following error:

ImportError: cannot import name ‘asdict’ from ‘datasets.utils.py_utils’

It appears to be related to a dependency or version compatibility issue with the Hugging Face datasets library in the current SageMaker environment. Because of this error, I am unable to proceed with the notebook/script execution.

Could you please help me resolve this issue or suggest the correct package versions/environment setup required for the course?

Thank you.

Hi! Could you please share a screenshot of the error you’re encountering? Also, let us know exactly which course you’re currently going through. That will help us better understand the issue and guide you more effectively.

Hi. The issue was resolved. Maybe there was some issue with the installation of packages due to the connectivity issue.