Bug 928326
Summary: | fontconfig problem with python3-matplotlib | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Thomas Spura <tomspur> |
Component: | python-matplotlib | Assignee: | Thomas Spura <tomspur> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 18 | CC: | asaha, gwync, haliyo, jonathan.underwood, jspaleta, paulo.cesar.pereira.de.andrade, thibault.north, tomspur |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | python-matplotlib-1.2.0-14.fc19 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-04-12 22:25:50 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 784947 |
Description
Thomas Spura
2013-03-27 12:37:43 UTC
I made an update for this problem but did not submit it 28th february because it did not correct all problems with python3 and matplotlib, but I guess better to remake it and submit, for an "evolutionary" update of the package, as I did not work on that anymore. There is a nasty issue with USE_FONTCONFIG, it is not used by default by upstream and breaks a lot of stuff with python3+matplotlib, but it is required to avoid a lot of issues with stix-fonts changes (and afaik works correctly with python2). Upstream does not have this issue because they use the fonts/data in the mpl_data subdir, what is agains't fedora policies to bundle fonts. I will make an update to correct the exact problems reported and/or add the patches suggested. python-matplotlib-1.2.0-10.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/python-matplotlib-1.2.0-10.fc18 Now there is this crash from http://koji.fedoraproject.org/koji/taskinfo?taskID=5197830: ERROR: %pylab works on engines ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILDROOT/ipython-0.13.1-4.fc19.noarch/usr/lib/python3.3/site-packages/IPython/testing/decorators.py", line 229, in skipper_func return f(*args, **kwargs) File "/builddir/build/BUILDROOT/ipython-0.13.1-4.fc19.noarch/usr/lib/python3.3/site-packages/IPython/parallel/tests/test_magics.py", line 329, in test_px_pylab ip.magic("px plot(rand(100))") File "/builddir/build/BUILDROOT/ipython-0.13.1-4.fc19.noarch/usr/lib/python3.3/site-packages/IPython/core/interactiveshell.py", line 2137, in magic return self.run_line_magic(magic_name, magic_arg_s) File "/builddir/build/BUILDROOT/ipython-0.13.1-4.fc19.noarch/usr/lib/python3.3/site-packages/IPython/core/interactiveshell.py", line 2063, in run_line_magic result = fn(*args) File "/builddir/build/BUILDROOT/ipython-0.13.1-4.fc19.noarch/usr/lib/python3.3/site-packages/IPython/parallel/client/magics.py", line 234, in px return self.parallel_execute(line) File "/builddir/build/BUILDROOT/ipython-0.13.1-4.fc19.noarch/usr/lib/python3.3/site-packages/IPython/parallel/client/magics.py", line 259, in parallel_execute result.get() File "/builddir/build/BUILDROOT/ipython-0.13.1-4.fc19.noarch/usr/lib/python3.3/site-packages/IPython/parallel/client/asyncresult.py", line 125, in get raise self._exception File "/builddir/build/BUILDROOT/ipython-0.13.1-4.fc19.noarch/usr/lib/python3.3/site-packages/IPython/parallel/client/asyncresult.py", line 150, in wait raise r IPython.parallel.error.RemoteError: RuntimeError(Could not open facefile None; Cannot_Open_Resource It seems facefile is not found... I just tested a plain rpmbuild in rawhide, and only got this failure: ERROR: test_send (IPython.zmq.tests.test_session.TestSession) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib64/python3.3/site-packages/zmq/sugar/attrsettr.py", line 35, in __setattr__ opt = getattr(constants, upper_key) AttributeError: 'module' object has no attribute 'DATA' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/pcpa/rpmbuild/BUILDROOT/ipython-0.13.1-4.fc20.x86_64/usr/lib/python3.3/site-packages/IPython/zmq/tests/test_session.py", line 76, in test_send socket = MockSocket(zmq.Context.instance(),zmq.PAIR) File "/home/pcpa/rpmbuild/BUILDROOT/ipython-0.13.1-4.fc20.x86_64/usr/lib/python3.3/site-packages/IPython/zmq/tests/test_session.py", line 34, in __init__ self.data = [] File "/usr/lib64/python3.3/site-packages/zmq/sugar/attrsettr.py", line 38, in __setattr__ self.__class__.__name__, upper_key) AttributeError: MockSocket has no such option: DATA I am almost sure adding %if 0%{?fedora} >= 18 BuildRequires: stix-math-fonts %else BuildRequires: stix-fonts %endif May also need to run the tests under xvfb-run. Trying it in a f19 mock build... The mock build did find the same error adding stix-fonts to build requires. I also just made a fool proof test of a python-matplotlib update to actually have the fonts as requires, so that the problem should not happen again in other circumstances. python-matplotlib-1.2.0-11.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/python-matplotlib-1.2.0-11.fc19 python-matplotlib-1.2.0-11.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/python-matplotlib-1.2.0-11.fc18 Package python-matplotlib-1.2.0-11.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing python-matplotlib-1.2.0-11.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-4658/python-matplotlib-1.2.0-11.fc19 then log in and leave karma (feedback). Sorry, the patch from comment #0 was wrong and I have it working differently locally. I'll change the patch and build it in fc18+ and ship the updates. Unfortunately the ipython issue is not fully resolved, as there is another bug in pyparsing, see bug #947655. I just saw, that bug #912843 is actually the same issue as this one (or the other way around...). The upstream pull request is at: https://github.com/matplotlib/matplotlib/pull/1879 python-matplotlib-1.2.0-12.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/python-matplotlib-1.2.0-12.fc18 python-matplotlib-1.2.0-12.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/python-matplotlib-1.2.0-12.fc19 *** Bug 915722 has been marked as a duplicate of this bug. *** *** Bug 929383 has been marked as a duplicate of this bug. *** python-matplotlib-1.2.0-12.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report. python-matplotlib-1.2.0-12.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. python-matplotlib-1.2.0-14.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/python-matplotlib-1.2.0-14.fc19 python-matplotlib-1.2.0-14.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/python-matplotlib-1.2.0-14.fc18 python-matplotlib-1.2.0-14.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report. python-matplotlib-1.2.0-14.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. |