Coder Social home page Coder Social logo

Comments (3)

eteq avatar eteq commented on June 8, 2024 1

Aha! I figured out the problem, although I'm not sure what the best solution is here:

It turns out aggdraw was not finding freetype because pkgconfig was not installed. When I installed it, python setup.py install worked. However, even if I do pip install pkgconfig before the pip install aggdraw, it still doesn't work. My hunch is that something is wrong with the wheel? At any rate, I have a workaround that works for me locally at least.

I'll try to make a PR to at least catch this error, but the wheel probably needs fixing too?

from aggdraw.

eteq avatar eteq commented on June 8, 2024

(note I see the same error if I do python setup.py install in the same venv. Which really ought to be true but hey sanity checks are nice)

from aggdraw.

djhoese avatar djhoese commented on June 8, 2024

Normally pkgconfig is the last resort for finding freetype:

aggdraw/setup.py

Lines 101 to 110 in bd751fc

FREETYPE_ROOT = os.getenv('AGGDRAW_FREETYPE_ROOT')
for func in (_get_freetype_config, _get_freetype_with_ctypes,
_get_freetype_with_pkgconfig):
if FREETYPE_ROOT is None:
FREETYPE_ROOT = func()
if FREETYPE_ROOT is None:
print("=== freetype not available")
else:
print("=== freetype found: '{}'".format(FREETYPE_ROOT))

Do you have the output from when you run pip install (or python setup.py install)? Some of the messages should show whats going on inside the setup.py.

We do not currently have wheels published for Python 3.9 (see #73) so no matter how you install it into a python 3.9 environment it will be building from source. The wheels (for non-3.9 versions) should have freetype expected/builtin.

I don't know anything about the debian packages. What version does it install? Is it built from source with freetype? Do they include any patches to this source to hardcode the location of the freetype library? There's a lot of stuff that could be going on to make this work better.

Do you get any result if you do which freetype-config? If so, what about freetype-config --prefix? I ask because:

['freetype-config', '--prefix']).strip().replace(

from aggdraw.

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.