cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

ImportError: cannot import name dataclass_transform

sanjay
Valued Contributor II

Hi,

I am using Standard Runtime 11.3 LTS and trying to utilize spacy-> en_core_web_sm but I am getting following error.

ImportError: cannot import name dataclass_transform

It was working last week but stopped working recently.

Appreciate any help.

Regards,

Sanjay

1 ACCEPTED SOLUTION

Accepted Solutions

Miguel_Suarez
New Contributor III
New Contributor III

Hey Sanjay,

You can avoid this error by changing your code to use %pip install. Or you can also follow this KB that shows how to install libraries using an init script: https://kb.databricks.com/en_US/clusters/install-private-pypi-repo

I hope this helps solve your issue.

Best,

Miguel

View solution in original post

2 REPLIES 2

Miguel_Suarez
New Contributor III
New Contributor III

Hey Sanjay,

You can avoid this error by changing your code to use %pip install. Or you can also follow this KB that shows how to install libraries using an init script: https://kb.databricks.com/en_US/clusters/install-private-pypi-repo

I hope this helps solve your issue.

Best,

Miguel

Anonymous
Not applicable

Hi @Sanjay Jain​ 

Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help. 

We'd love to hear from you.

Thanks!

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.