Comments (6)
@jay3332 please fix it fast
from pilmoji.
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.
i made up a fix on my github, feel free to use that fork because idk when jay will merge my fix
from pilmoji.
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.
quick fix
fork the repo and update the
requirements.txt
:Pillow emoji==2.11.0longer fix
he removed
get_emoji_unicode_dict()
and placed it underutils/testutils.py
- here. likely just port over code below intohelpers.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.
fixed in #40
from pilmoji.
Related Issues (20)
- PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x00000236633A08B0> HOT 2
- might want to pin emoji==1.7.0 HOT 1
- There is a problem about import Pilmoji HOT 2
- Add alignment support
- Please make a pypi release of the latest version. HOT 5
- [HELP] Render text with emojis HOT 3
- It seems that there are some errors
- Support https://emojipedia.org
- Solve problem with the anchor
- Custom emoji not being drawn when the length of its name is 1 letter HOT 3
- pilmoji-2.0.2 ImageFont.TransposedFont
- README images are broken HOT 1
- Not working with Pillow v10 HOT 13
- Some emoji are recognized incorrectly.
- Pilmoji not working with any emojis source HOT 3
- Demo Codes Causes AttributeError When Importing Pilmoji HOT 1
- Import is still broken pls push it for we can do pip install pilmoj HOT 1
- Pilmoji seems to just stop
- Add support for emoji 2.12 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pilmoji.