InstaPy / InstaPy/instapy-docs

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

Open
#36 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
65
Forks
54
PR merge metrics
No merged PRs in 30d

Description

If I run `python3 quickstart.py` InstaPy fails to run and returns the following trace:
(Debian Bullseye on Rpi4)
```
Traceback (most recent call last):
File "/home/ha-server-pi/.local/lib/python3.9/site-packages/instapy/InstaPyScripts/quickstart.py", line 2, in
from instapy import InstaPy
File "/home/ha-server-pi/.local/lib/python3.9/site-packages/instapy/__init__.py", line 6, in
from .instapy import InstaPy
File "/home/ha-server-pi/.local/lib/python3.9/site-packages/instapy/instapy.py", line 34, in
from .browser import close_browser, set_selenium_local_session
File "/home/ha-server-pi/.local/lib/python3.9/site-packages/instapy/browser.py", line 14, in
from .util import interruption_handler
File "/home/ha-server-pi/.local/lib/python3.9/site-packages/instapy/util.py", line 27, in
from emoji.unicode_codes import UNICODE_EMOJI
ImportError: cannot import name 'UNICODE_EMOJI' from 'emoji.unicode_codes' (/home/ha-server-pi/.local/lib/python3.9/site-packages/emoji/unicode_codes/__init__.py)
```

If I `pip3 install emoji` it says that "Requirement already satisfied: emoji in /home/ha-server-pi/.local/lib/python3.9/site-packages (2.0.0)"

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing `python3 quickstart.py` with emoji 2.0 on the reported environment. Inspect `instapy/util.py`, especially the import of `UNICODE_EMOJI`, and check the project's dependency declarations for the expected emoji version. Done means quickstart.py imports successfully without this ImportError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.