New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qt fails in GNOME/Fedora 22 #368

Closed
janpipek opened this Issue Jun 29, 2015 · 18 comments

Comments

Projects
None yet
@janpipek
Copy link

janpipek commented Jun 29, 2015

I have Fedora 22, Anaconda 2.2.0, Python 2.7.10, pyqt 4.11.3 (all packages updated today). The same with python 3.4..

When KDE is running, everything works fine.
But once GNOME is started, any attempt to start application using PyQt (my own applications, spyder, ipython qtconsole) fails with the following message:

/home/honza/anaconda/bin/python: symbol lookup error: /lib64/libpangoft2-1.0.so.0: undefined symbol: FcWeightFromOpenType

Thanks for any ideas, luckily I use Gnome only occasionally ;-)

@ccordoba12

This comment has been minimized.

Copy link

ccordoba12 commented Jun 29, 2015

Please run

conda install -c asmeurer pango

to fix this problem. It only occurs in Fedora because it's the only major distribution to be using a too recent version of fontconfig.

@janpipek

This comment has been minimized.

Copy link

janpipek commented Jun 30, 2015

Thanks a lot. It really works.

@prasadv2088

This comment has been minimized.

Copy link

prasadv2088 commented Aug 7, 2015

Thanks It works with Fedora 22 for spyder too

@daudich

This comment has been minimized.

Copy link

daudich commented Oct 13, 2015

Fedora 22 👍

@jerrymomo10

This comment has been minimized.

Copy link

jerrymomo10 commented Oct 21, 2015

Thanks

@jbertran

This comment has been minimized.

Copy link

jbertran commented Nov 21, 2015

Legend! Thank you very much.

@dballesteros7

This comment has been minimized.

Copy link

dballesteros7 commented Dec 1, 2015

Worked like a charm!

@rgiovanini

This comment has been minimized.

Copy link

rgiovanini commented Dec 18, 2015

Worked Perfectly!
I was the same trouble with matplotlib on Fedora 22. Thanks a lot!

@Tipplynne

This comment has been minimized.

Copy link

Tipplynne commented Jan 6, 2016

Works now in Python 3.5 in condas and Fedora 22. Such Joy. Many thanks.

@NiranjanMudhiraj

This comment has been minimized.

Copy link

NiranjanMudhiraj commented Jan 15, 2016

i got this error

/lib64/libpangoft2-1.0.so.0: undefined symbol: FcWeightToOpenType

i fixed this problem by your solution

$ conda install -c asmeurer pango

but i got another error:

/home/niranjan/anaconda3/bin/../lib/libgomp.so.1: version `GOMP_4.0' not found (required by /home/niranjan/mxnet/python/mxnet/../../lib/libmxnet.so)

can you tell me how to fix this problem.thanks in advance.

@ccordoba12

This comment has been minimized.

Copy link

ccordoba12 commented Jan 15, 2016

Do you have the libgcc package installed?

@NiranjanMudhiraj

This comment has been minimized.

Copy link

NiranjanMudhiraj commented Jan 15, 2016

yes, it is installed

@ccordoba12

This comment has been minimized.

Copy link

ccordoba12 commented Jan 15, 2016

What program are you trying to run? I see the error comes from libmxnet.so but I haven't heard of that library before.

@NiranjanMudhiraj

This comment has been minimized.

Copy link

NiranjanMudhiraj commented Jan 16, 2016

deep learning package https://mxnet.readthedocs.org/en/latest/build.html#python-package-installation
can you tell me any working solution for this problem.thanks in advance

@ccordoba12

This comment has been minimized.

Copy link

ccordoba12 commented Jan 16, 2016

No idea, sorry. Your problem is not related to the problem on this issue (which you confirmed was solved after following my advice).

@havocp

This comment has been minimized.

Copy link

havocp commented Jan 25, 2016

I think the problem is that Fedora has a Pango that requires latest fontconfig, and my conda env has an older fontconfig than the system one:

(py3)[hp@localhost anaconda-ui]$ nm -D /lib64/libfontconfig.so.1 | grep FcWeightFromOpenType
00000033faa21dd0 T FcWeightFromOpenType
(py3)[hp@localhost anaconda-ui]$ nm -D ~/bin/Anaconda-2.2.0/envs/py3/lib/libfontconfig.so.1 | grep FcWeightFromOpenType
(py3)[hp@localhost anaconda-ui]$

Conda has fontconfig 2.11.1, this function was added in 2.11.91. Fedora 22 has 2.11.94.

conda's older fontconfig is breaking the system pango, essentially. So installing a conda version of pango would fix it as discussed here, as would putting a newer fontconfig in conda.

This will presumably break on other linux distributions if/when they upgrade Pango.

The danger in installing a conda version of pango is that presumably that's also a downgrade in version from the system pango, and apps higher in the stack could rely on whatever is new in Pango.

@chendaniely

This comment has been minimized.

Copy link

chendaniely commented Apr 25, 2016

want to confirm that

conda install -c asmeurer pango

also fixes the

~/anaconda3/bin/python: symbol lookup error: /usr/lib/libpangoft2-1.0.so.0: undefined symbol: FcWeightFromOpenType

error in Arch Linux

@wuwuwuwuwu55555

This comment has been minimized.

Copy link

wuwuwuwuwu55555 commented May 12, 2018

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment