carpedm20 / emoji

emoji terminal output for Python
Other
1.9k stars 279 forks source link

cannot import name 'Match' from 'typing_extensions' #301

Closed peterza01 closed 2 months ago

peterza01 commented 2 months ago

There is an issue with this import,

The solution to this issue is import Match from typing in the file in emoji/core.py

cvzi commented 2 months ago

On which version of this module and which Python version does this happen?

peterza01 commented 2 months ago

Hi @cvzi This happened with the version emoji==2.12.1, typing_extensions==4.12.2 and python 3.10 and above.

This problem is preventing to load the entire library!

The solution I found was to change from: import Match from typing_extensions to: import Match from typing

in the file emoji/core.py and this fixed the issue.

Thanks!!

peterza01 commented 2 months ago

I noticed this problem was raised because of a need of restart of my databricks notebook. Now is working properly. Thanks and regards