Skip to content

[On fresh install] ImportError: cannot import name 'UNICODE_EMOJI' from 'emoji' #59

Description

@thamin-i

Hi !

When I install streamdeckfs on a brand new virtual environment i get the error below:

Traceback (most recent call last):
  File "/tmp/venv/bin/streamdeckfs", line 5, in <module>
    from streamdeckfs.commands import main
  File "/tmp/venv/lib/python3.9/site-packages/streamdeckfs/commands/__init__.py", line 17, in <module>
    from .make_dirs import make_dirs  # noqa: F401
  File "/tmp/venv/lib/python3.9/site-packages/streamdeckfs/commands/make_dirs.py", line 14, in <module>
    from ..entities import Key, Page
  File "/tmp/venv/lib/python3.9/site-packages/streamdeckfs/entities/__init__.py", line 41, in <module>
    from .text import KeyTextLine
  File "/tmp/venv/lib/python3.9/site-packages/streamdeckfs/entities/text.py", line 14, in <module>
    from emoji import UNICODE_EMOJI, emojize
ImportError: cannot import name 'UNICODE_EMOJI' from 'emoji' (/tmp/venv/lib/python3.9/site-packages/emoji/__init__.py)

It seems that the emoji library made a major change in their 2.0.0 version and that streamdeckfs needs to install a version below.
Indeed, after installing emoji==1.7.0 manually, this error disappeared.

Could we force emoji<2.0.0 on the setup.cfg file ?

[edit] It should be fixed if we merge the #60 pull request

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions