instapy-quickstart icon indicating copy to clipboard operation
instapy-quickstart copied to clipboard

cannot import name 'UNICODE_EMOJI' from 'emoji.unicode_codes'

Open MichaelCho-haman opened this issue 3 years ago • 2 comments

ImportError: cannot import name 'UNICODE_EMOJI' from 'emoji.unicode_codes'

How can I fix this problem?

What I have done

  1. Search every single webpages in google
  2. pip uninstall emoji / pip install emoji == 1.7 & 2.0

Environment : window, VS CODE

Please help me, I am crying

""" Quickstart script for InstaPy usage """

imports

from instapy import InstaPy from instapy import smart_run

login credentials

insta_username = '' # <- enter username here insta_password = '' # <- enter password here

get an InstaPy session!

set headless_browser=True to run InstaPy in the background

session = InstaPy(username=insta_username, password=insta_password, headless_browser=False)

with smart_run(session): """ Activity flow """ # general settings session.set_relationship_bounds(enabled=True, delimit_by_numbers=True, max_followers=4590, min_followers=45, min_following=77)

session.set_dont_include(["friend1", "friend2", "friend3"])
session.set_dont_like(["pizza", "#store"])

# activity
session.like_by_tags(["natgeo"], amount=10)

MichaelCho-haman avatar Sep 11 '22 06:09 MichaelCho-haman

Hey Michael, Don't know if you fixed it, but these two commands saved me: pip uninstall emoji pip install emoji==1.7

BrunoSantos-Git avatar Oct 06 '22 21:10 BrunoSantos-Git

ImportError: cannot import name 'UNICODE_EMOJI' from 'emoji.unicode_codes'

How can I fix this problem?

What I have done

  1. Search every single webpages in google
  2. pip uninstall emoji / pip install emoji == 1.7 & 2.0

Environment : window, VS CODE

Please help me, I am crying

""" Quickstart script for InstaPy usage """

imports

from instapy import InstaPy from instapy import smart_run

login credentials

insta_username = '' # <- enter username here insta_password = '' # <- enter password here

get an InstaPy session!

set headless_browser=True to run InstaPy in the background

session = InstaPy(username=insta_username, password=insta_password, headless_browser=False)

with smart_run(session): """ Activity flow """ # general settings session.set_relationship_bounds(enabled=True, delimit_by_numbers=True, max_followers=4590, min_followers=45, min_following=77)

session.set_dont_include(["friend1", "friend2", "friend3"])
session.set_dont_like(["pizza", "#store"])

# activity
session.like_by_tags(["natgeo"], amount=10)

Did you fix it?

DAITYA69 avatar Aug 21 '23 07:08 DAITYA69