Getting error while using the latest version
anantaarora opened this issue · comments
Hi,
I am facing an issue while upgrading to the latest emot version:
This is my import statement
from emot.emo_unicode import UNICODE_EMO, EMOTICONS
Error:
ImportError: cannot import name 'UNICODE_EMO' from 'emot.emo_unicode' (/usr/local/lib/python3.7/dist-packages/emot/emo_unicode.py)
Please help
Hello @anantaarora thank you for issue. Did you try 3.1 version?
still getting the same error
I had resolved this error by making following changes:
from emot.emo_unicode import UNICODE_EMOJI
Thanks
Let me check I think try and catch us is not working as expected for loading of the other library.
I had resolved this error by making following changes:
from emot.emo_unicode import UNICODE_EMOJIThanks
Actually, it doesn't work. I don't see any change in my dataset after the emoticon conversion. Even I had resolved this error like you.
@SajibKumar It is error with mismatching of bracts.
@SajibKumar Please check the all code you put in the correct bracts level.
@SajibKumar It is error with mismatching of bracts.
But this code is working fine before updating the emot library.
@SajibKumar Please check the all code you put in the correct bracts level.
I think all brackets are okay.
Error shows in the code are regarding unbalanced bracket position. It can have two possibilities:
- https://stackoverflow.com/questions/10318248/unbalanced-parenthesis-python
- https://www.geeksforgeeks.org/check-for-balanced-parentheses-in-python/
Can you please check the issue. If you can share more detail what you want try to do, we can help you.
Thank you,
Neel
@topekekere Yes, That's true. Their is reason for that. We notice most of the user want to use each dict as input in the system. So instead of loading whole file and than specific dic. We make it easy for everyone to load dict directly from library as contact variable.
You can all dict as below:
@topekekere Let me know if you face any issue. Thank you. This new version library doesn't use standard regex. It is new regex algorithm which make the library 10x faster in large database.
I am still getting an error like this. Could you please check @NeelShah18?