Closed jfreitas123 closed 2 years ago
I think you have to change the name of your file. If the filename is emoji.py
then import emoji
may try to import the file emoji.py
and not the library. Try something like my_emoji.py
I think you have to change the name of your file. If the filename is
emoji.py
thenimport emoji
may try to import the fileemoji.py
and not the library. Try something likemy_emoji.py
Thank you men, it worked!
I've imported the library "emoji" to a code and appear this error
Traceback (most recent call last): File "C:\Users\jpf_l\PycharmProjects\CursoemVideo\aula 08\emoji.py", line 1, in
import emoji
File "C:\Users\jpf_l\PycharmProjects\CursoemVideo\aula 08\emoji.py", line 2, in
print(emoji.emojize('Python is :thumbsup:', language='alias'))
AttributeError: partially initialized module 'emoji' has no attribute 'emojize' (most likely due to a circular import). Did you mean: 'emoji'?
my email jp752749@gmail.com