freecad 0.19.4-r1 fails to build with the following error from CMake: CMake Error at cMake/FindMatplotlib.cmake:39 (list): list index: 2 out of range (-2, 1) Call Stack (most recent call first): cMake/FreeCAD_Helpers/SetupMatplotlib.cmake:4 (find_package) CMakeLists.txt:73 (SetupMatplotlib) -- -- matplotlib-0.0 has been found. ... ============== Summary report ============== -- Matplotlib: 0.0-- matplotlib 3.5.2-r2 is installed Reproducible: Always
Created attachment 788051 [details] build log
Created attachment 788054 [details] emerge --info
Also see same issue
Please include /var/tmp/portage/media-gfx/freecad-0.19.4-r1/work/FreeCAD-0.19.4_build/CMakeFiles/CMakeOutput.log.
(In reply to Sam James from comment #4) > Please include > /var/tmp/portage/media-gfx/freecad-0.19.4-r1/work/FreeCAD-0.19.4_build/ > CMakeFiles/CMakeOutput.log. ... and emerge --info dev-python/matplotlib
Created attachment 788555 [details] emerge --info matplotlib
Created attachment 788558 [details] CMakeOutput.log
Hi, I have same issue here. I think issue that version in matplotlib/_version.py is set to 0.0: ❯ cat /usr/lib/python3.10/site-packages/matplotlib/_version.py # coding: utf-8 # file generated by setuptools_scm # don't change, don't track in version control __version__ = version = '0.0' __version_tuple__ = version_tuple = (0, 0)
(In reply to veig29 from comment #8) > Hi, > > I have same issue here. > > I think issue that version in matplotlib/_version.py is set to 0.0: > > ❯ cat /usr/lib/python3.10/site-packages/matplotlib/_version.py > # coding: utf-8 > # file generated by setuptools_scm > # don't change, don't track in version control > __version__ = version = '0.0' > __version_tuple__ = version_tuple = (0, 0) on it, thanks
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64ebc71df972b6d6d801bf9195a449ebc8cb4bf1 commit 64ebc71df972b6d6d801bf9195a449ebc8cb4bf1 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-06-29 09:07:46 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-06-29 09:07:52 +0000 dev-python/matplotlib: fix installed _version.py Closes: https://bugs.gentoo.org/854600 Signed-off-by: Sam James <sam@gentoo.org> .../{matplotlib-3.5.1-r1.ebuild => matplotlib-3.5.1-r2.ebuild} | 3 +++ .../{matplotlib-3.5.2-r2.ebuild => matplotlib-3.5.2-r3.ebuild} | 3 +++ 2 files changed, 6 insertions(+)