Comments (13)
Many thanks for your patience!! It's finally installed successfully.
from manimpango.
Hey @YishiMichael! More of a general comment than a concrete solution for your issue here:
@naveen521kk also has put some thought into refactoring Text
, not sure what the current status is but you can find a sketch of the plans at ManimCommunity/manim#2355. To avoid further fragmentation between Grant's personal version of Manim and the community version, we should try to stick to the same version of ManimPango, meaning that all changes to the interface should also be ported to ManimCommunity/manim. We'd certainly love to have you as a contributor! :-) (And even if you prefer to stick to 3b1b/manim, I'm sure we will find a suitable way for collaborating.)
from manimpango.
@behackl Yeah I'd like to contribute to ManimCE as well!
I've read #2355 and was pleased to see the new implementation design. I'm looking forward to collaborating with manim community, started with Text
class.
from manimpango.
Thanks for the contribution. As @behackl mentioned it would be great if the changes you do on Grant's version related to ManimPango/Text API be ported to ManimCommunity/manim.
Also, I have been planning to refactor the Text API ManimCommunity/manim#2355 and also have thoughts to provide a stable API here #28; suggestions about them welcome. I have been waiting for the refactor period (which we announced a while ago) to be done, but it seems like we won't have anything like it anytime soon; which means I would start working on it anytime soon (probably after the exams which will end by march).
Failed to open 'D:/msys64/mingw64/lib/pkgconfig\freetype2.pc': Too many open files
Package 'freetype2', required by 'harfbuzz', not found
This is the error from pkg-config, which seems like just restarting your computer and re-running the install should fix it.
from manimpango.
It doesn't work... But thanks for replying. I may try other means.
from manimpango.
It doesn't work... But thanks for replying. I may try other means.
Maybe try running pacman -Qkq
in that shell to check whether all the files are installed correctly? Also, try running pkg-config --libs --cflags pangocairo
manually on that shell to see if it errors out in that case?
from manimpango.
It goes into error when I run pkg-config --libs --cflags pangocairo
. The message is
$ pkg-config --libs --cflags pangocairo
Failed to open 'D:/msys64/mingw64/lib/pkgconfig\freetype2.pc': Too many open files
Package 'freetype2', required by 'harfbuzz', not found
from manimpango.
Does the pacman command suceed? Also, does a file called D:/msys64/mingw64/lib/pkgconfig\freetype2.pc
exists?
from manimpango.
Also, what does pkg-config --version
and which pkg-config
commands print?
from manimpango.
The file D:/msys64/mingw64/lib/pkgconfig/freetype2.pc
exists. And here's the output:
$ pacman -Qkq
mingw-w64-x86_64-make /mingw64/bin/mingw32-make.exe
$ pkg-config --version
0.23
$ which pkg-config
/mingw64/bin/pkg-config
from manimpango.
Hmm, I'm wondering why pkg-config is used instead of pkgconf, I remember they replaced pkgconf by default. Did you ever update the packages there ie run (pacman -Syu
)? If yes, can you run pacman -S mingw-w64-x86_64-pkgconf
and then press yes for all questions asked from Pacman. If not, please update first using pacman -Syu
, it should ask about replacement and just input yes there.
Doing so should fix the issue I think.
from manimpango.
I've run the commands provided, i.e.
$ pacman -Syu
$ pacman -S mingw-w64-x86_64-pkgconf
I've also restarted my computer.
They worked --- the error changed :(
Listed here:
$ pip install -e .
Obtaining file:///E://ManimKindergarten/ManimPango
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Installing collected packages: ManimPango
Running setup.py develop for ManimPango
ERROR: Command errored out with exit status 1:
command: D:/msys64/mingw64/bin/python.exe -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'E:/ManimKindergarten/ManimPango/setup.py'"'"'; __file__='"'"'E:/ManimKindergarten/ManimPango/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps
cwd: E:/ManimKindergarten/ManimPango/
Complete output (17 lines):
running develop
C:/Users/Michael/AppData/Local/Temp/pip-build-env-2qi7q51c/overlay/lib/python3.9/site-packages/setuptools/command/easy_install.py:160: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
C:/Users/Michael/AppData/Local/Temp/pip-build-env-2qi7q51c/overlay/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running egg_info
writing ManimPango.egg-info/PKG-INFO
writing dependency_links to ManimPango.egg-info/dependency_links.txt
writing top-level names to ManimPango.egg-info/top_level.txt
reading manifest file 'ManimPango.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
adding license file 'LICENSE'
writing manifest file 'ManimPango.egg-info/SOURCES.txt'
running build_ext
building 'manimpango.cmanimpango' extension
error: --plat-name must be one of ('win32', 'win-amd64', 'win-arm32', 'win-arm64')
----------------------------------------
ERROR: Command errored out with exit status 1: D:/msys64/mingw64/bin/python.exe -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'E:/ManimKindergarten/ManimPango/setup.py'"'"'; __file__='"'"'E:/ManimKindergarten/ManimPango/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.
from manimpango.
Now the problem is https://www.msys2.org/news/#2021-12-21-potential-incompatibilities-with-newer-python-setuptools I should've updated the README file about it. Simply, running export SETUPTOOLS_USE_DISTUTILS=stdlib
before the pip command should work.
from manimpango.
Related Issues (20)
- list index out of range when rebasing HOT 2
- Failed to install via pip in GitHub Action HOT 6
- Add option to Register Fonts using Fc backend on Windows and macOS
- Showing Errors in Markup if any HOT 2
- Remove linux wheels totally HOT 1
- libpango-1.0.so.0: undefined symbol: hb_buffer_set_invisible_glyph HOT 2
- CI: Windows-2016 environment will be removed soon HOT 1
- macOS: Wheels in v0.4.0 isn't working
- Symbol not found: ___darwin_check_fd_set_overflow HOT 8
- M1 Mac Installation Problem HOT 2
- Implemented a refactored version HOT 4
- Cannot show Text in Ubuntu20.04 HOT 7
- Building/dependencies HOT 1
- symbol not found in flat namespace HOT 5
- Failed building wheel for manimpango HOT 16
- Installing issue with AUR/YaY and PIP HOT 1
- Problem with MANIM installation. HOT 6
- `register_font` broken on Windows with Pango 1.50.12 + Cairo 1.17.6 HOT 1
- Tests fail to run from PyTest: ManimPango could not import and load the necessary shared libraries. HOT 3
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 manimpango.