On Tue, May 29, 2018 at 11:25:24AM -0700, Long Yang wrote:
...
> I am trying to install PDFgui on a new computer. But I got some errors.
> Could you please help with it? It also looks like problem with wx package.
> I use Ubuntu 18.04 system, Anaconda 5.1 for Python 3.6.
>
> After I create py27 conda environment and installed pdfgui, I type "pdfgui"
> to run it but failed:
...
> ImportError: /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0: undefined symbol:
> FT_Get_Var_Blend_Coordinates
Hi Long,
This happens, because of incompatibility between system and Anaconda
dynamic libraries harfbuzz and freetype (AFAIK these are for font
rendering). Anaconda is set up to always prefer its own dynamic
libraries. It seems that your Anaconda environment has an old
version of freetype, but no harfbuzz. Upon loading wxpython,
the system finds its own harfbuzz version which needs a recent
freetype, but instead finds an old one from Anaconda, hence
the crash.
A possible fix is to manually install harfbuzz to your conda
environment
conda install -n py27 harfbuzz
which should install an older harfbuzz and thus avoid the new
one from Ubuntu. Another option is to remove the Anaconda
freetype and then use both new harfbuzz and freetype from Ubuntu:
conda remove --force freetype
I hope one of these works. Best,