Bug 1509657
Summary: | Should matplotlib depend on texlive and perl? | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
Component: | python-matplotlib | Assignee: | Miro Hrončok <mhroncok> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | cstratak, dominik, gwync, Jacek.Pliszka, jonathan.underwood, paulo.cesar.pereira.de.andrade, pviktori, python-sig, quantum.analyst, thibault.north, tomspur, zbyszek |
Target Milestone: | --- | Keywords: | FutureFeature |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | python-matplotlib-3.3.0-0.1.rc1.fc33 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-06-30 05:47:21 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: | 1838207 | ||
Bug Blocks: |
Description
Miro Hrončok
2017-11-05 13:36:45 UTC
I don't know about all the packages, but LaTeX is needed if you create an artist with `usetex=True` and probably also if you try to save as a pgf/TikZ file. If the user explicitly needs to say "usetex=True" or "pgf/TikZ", I'd cont that as integration with LaTex rather than a part of matplotlib's core functionality. I think it would be fine to require installing LaTeX separately. If LaTeX is not installed, do these use cases give a reasonable error message? This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle. Changing version to '28'. This is still a thing to consider. When I install matplotlib into a Python virtual environment and I don't ahve tex and I explicitly say usetex=True: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/pythonista/venv/lib64/python3.6/site-packages/matplotlib/pyplot.py", line 689, in savefig res = fig.savefig(*args, **kwargs) File "/home/pythonista/venv/lib64/python3.6/site-packages/matplotlib/figure.py", line 2094, in savefig self.canvas.print_figure(fname, **kwargs) File "/home/pythonista/venv/lib64/python3.6/site-packages/matplotlib/backend_bases.py", line 2075, in print_figure **kwargs) File "/home/pythonista/venv/lib64/python3.6/site-packages/matplotlib/backends/backend_agg.py", line 510, in print_png FigureCanvasAgg.draw(self) File "/home/pythonista/venv/lib64/python3.6/site-packages/matplotlib/backends/backend_agg.py", line 402, in draw self.figure.draw(self.renderer) File "/home/pythonista/venv/lib64/python3.6/site-packages/matplotlib/artist.py", line 50, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File "/home/pythonista/venv/lib64/python3.6/site-packages/matplotlib/figure.py", line 1649, in draw renderer, self, artists, self.suppressComposite) File "/home/pythonista/venv/lib64/python3.6/site-packages/matplotlib/image.py", line 138, in _draw_list_compositing_images a.draw(renderer) File "/home/pythonista/venv/lib64/python3.6/site-packages/matplotlib/artist.py", line 50, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File "/home/pythonista/venv/lib64/python3.6/site-packages/matplotlib/axes/_base.py", line 2628, in draw mimage._draw_list_compositing_images(renderer, self, artists) File "/home/pythonista/venv/lib64/python3.6/site-packages/matplotlib/image.py", line 138, in _draw_list_compositing_images a.draw(renderer) File "/home/pythonista/venv/lib64/python3.6/site-packages/matplotlib/artist.py", line 50, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File "/home/pythonista/venv/lib64/python3.6/site-packages/matplotlib/axis.py", line 1187, in draw renderer) File "/home/pythonista/venv/lib64/python3.6/site-packages/matplotlib/axis.py", line 1125, in _get_tick_bboxes extent = tick.label1.get_window_extent(renderer) File "/home/pythonista/venv/lib64/python3.6/site-packages/matplotlib/text.py", line 930, in get_window_extent bbox, info, descent = self._get_layout(self._renderer) File "/home/pythonista/venv/lib64/python3.6/site-packages/matplotlib/text.py", line 313, in _get_layout ismath=ismath) File "/home/pythonista/venv/lib64/python3.6/site-packages/matplotlib/backends/backend_agg.py", line 209, in get_text_width_height_descent s, fontsize, renderer=self) File "/home/pythonista/venv/lib64/python3.6/site-packages/matplotlib/texmanager.py", line 464, in get_text_width_height_descent dvifile = self.make_dvi(tex, fontsize) File "/home/pythonista/venv/lib64/python3.6/site-packages/matplotlib/texmanager.py", line 328, in make_dvi texfile], tex) File "/home/pythonista/venv/lib64/python3.6/site-packages/matplotlib/texmanager.py", line 298, in _run_checked_subprocess stderr=subprocess.STDOUT) File "/usr/lib64/python3.6/subprocess.py", line 336, in check_output **kwargs).stdout File "/usr/lib64/python3.6/subprocess.py", line 403, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib64/python3.6/subprocess.py", line 707, in __init__ restore_signals, start_new_session) File "/usr/lib64/python3.6/subprocess.py", line 1326, in _execute_child raise child_exception_type(errno_num, err_msg) FileNotFoundError: [Errno 2] No such file or directory: 'latex' Not sure if this is decent, but: * I've explicitly said use tex and the error is latex not found * It's how pip installed matplotlib behaves Conclusion: Switch to recommends? This message is a reminder that Fedora 28 is nearing its end of life. On 2019-May-28 Fedora will stop maintaining and issuing updates for Fedora 28. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '28'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 28 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. +1 to switching to Recommends. On the mailing list I suggested the following:
> > Recommends: dvipng
> > Requires: (dvipng if texlive-base)
*** Bug 1847729 has been marked as a duplicate of this bug. *** |