Open Khaled-Abdelhamid opened 2 years ago
I have the same issue as you @Khaled-Abdelhamid in my machine. My Python version 3.8.5 and I also tried with Python 3.9 What python version are you using in your machine that is working?
I had the same issue! The reason for this issue is that the UNICODE_EMOJI was removed in version 2.0.0 of this module!(#https://github.com/carpedm20/emoji/issues/221)
You can resolve this issue by using older emoji library! I used 1.6.3 which worked fine in my local machine and google colab!
!pip install emoji==1.6.3
what resolved the issue for me is copying the emoji package folder to the text2emotion package folder
Hi, what about changing this line of code:
a = " ".join(c for c in text if c in emoji.UNICODE_EMOJI).split()
By replacing UNICODE_EMOJI by EMOJI_DATA ?
The following solution works for me, but I think it is possible to safely use the last version!
latest version of emoji==2.1.0 has no attribute Unicode_emoji. Uninstall the existing version and install emoji==1.7.0
pip uninstall emoji pip install emoji==1.7
I am still having this issue. Seems like this repository isn't maintained. @KavehKadkhoda , maybe you can raise a PR ?
This library is beyond messed up. Doing pip install emoji==1.6.3
works but then it just leads to:
Exception has occurred: BadZipFile
File is not a zip file
Garbage repository.
I'm using text2emoji, and it's working on my machine just fine. However, it's not working neither on google colab nor on docker containers. Here are that comes up when I run it:
The link for the Colab notebook is: https://colab.research.google.com/drive/1sCAcIGk2q9dL8dpFYddnsUin2MlhjaRw?usp=sharing the docker container is based on python:3.7-slim image the installed packages on the docker container are
======================================= Now here are the settings of the working system:
and here is a list of all of the installed packages
I hope I find a solution for this quickly, as it's so urgent. Thanks in advance.