Code Monkey home page Code Monkey logo

Comments (6)

annihilatorrrr avatar annihilatorrrr commented on September 16, 2024

@jay3332 please fix it fast

from pilmoji.

Lumabots avatar Lumabots commented on September 16, 2024

just downgrad emoji, i can fix his code with a fork but it will not be publish before a long time. Its better if u just download emoji, (pilmoji use emoji)
pip install emoji==2.11.0 should work

from pilmoji.

Lumabots avatar Lumabots commented on September 16, 2024

i made up a fix on my github, feel free to use that fork because idk when jay will merge my fix

from pilmoji.

kxzk avatar kxzk commented on September 16, 2024

quick fix

fork the repo and update the requirements.txt:

Pillow
emoji==2.11.0

longer fix

he removed get_emoji_unicode_dict() and placed it under utils/testutils.py - here. likely just port over code below into helpers.py here.

import emoji.unicode_codes

# ... omitted

_EMOJI_UNICODE: Dict[str, Any] = {lang: None for lang in emoji.LANGUAGES}  # Cache for the language dicts
_ALIASES_UNICODE: Dict[str, str] = {}  # Cache for the aliases dict

def get_emoji_unicode_dict(lang: str) -> Dict[str, Any]:
    """Generate dict containing all fully-qualified and component emoji name for a language
    The dict is only generated once per language and then cached in _EMOJI_UNICODE[lang]"""

    if _EMOJI_UNICODE[lang] is None:
        _EMOJI_UNICODE[lang] = {data[lang]: emj for emj, data in emoji.EMOJI_DATA.items()
                                if lang in data and data['status'] <= emoji.STATUS['fully_qualified']}

    return _EMOJI_UNICODE[lang]

from pilmoji.

Lumabots avatar Lumabots commented on September 16, 2024

quick fix

fork the repo and update the requirements.txt:

Pillow
emoji==2.11.0

longer fix

he removed get_emoji_unicode_dict() and placed it under utils/testutils.py - here. likely just port over code below into helpers.py here.

import emoji.unicode_codes

# ... omitted

_EMOJI_UNICODE: Dict[str, Any] = {lang: None for lang in emoji.LANGUAGES}  # Cache for the language dicts
_ALIASES_UNICODE: Dict[str, str] = {}  # Cache for the aliases dict

def get_emoji_unicode_dict(lang: str) -> Dict[str, Any]:
    """Generate dict containing all fully-qualified and component emoji name for a language
    The dict is only generated once per language and then cached in _EMOJI_UNICODE[lang]"""

    if _EMOJI_UNICODE[lang] is None:
        _EMOJI_UNICODE[lang] = {data[lang]: emj for emj, data in emoji.EMOJI_DATA.items()
                                if lang in data and data['status'] <= emoji.STATUS['fully_qualified']}

    return _EMOJI_UNICODE[lang]

i already made up a fix and made a pu ll request but im not sure he will push it before a long time

from pilmoji.

jay3332 avatar jay3332 commented on September 16, 2024

fixed in #40

from pilmoji.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.