Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'emoji' has no attribute 'get_emoji_regexp' #223

Closed
Fred-Wu opened this issue Aug 1, 2022 · 2 comments
Closed

AttributeError: module 'emoji' has no attribute 'get_emoji_regexp' #223

Fred-Wu opened this issue Aug 1, 2022 · 2 comments

Comments

@Fred-Wu
Copy link

Fred-Wu commented Aug 1, 2022

I encountered this error after the recent update. Is there anyway to fix this?

@Fred-Wu
Copy link
Author

Fred-Wu commented Aug 1, 2022

I just reverted to v1.7, and saw the deprecation message. With the new version, how can I achieve the following

emoji.get_emoji_regexp().search(ch)

@cvzi
Copy link
Contributor

cvzi commented Aug 1, 2022

If you want to find emoji in a string, you can use emoji.emoji_list() as a replacement.

See #222 (comment) and https://carpedm20.github.io/emoji/docs/#migrating-to-version-2-0-0 for more information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants