Package Details: graphs 1.8.0-1

Git Clone URL: https://aur.archlinux.org/graphs.git (read-only, click to copy)
Package Base: graphs
Description: Plot and manipulate data (Gnome Circle app)
Upstream URL: https://welcome.gnome.org/app/Graphs/
Licenses: GPL-3.0-or-later
Conflicts: graphs-git
Submitter: plp
Maintainer: plp
Last Packager: plp
Votes: 2
Popularity: 0.34
First Submitted: 2024-03-22 17:00 (UTC)
Last Updated: 2024-04-24 13:22 (UTC)

Latest Comments

jianglai commented on 2024-09-29 22:56 (UTC)

It looks like there's some compatibility issue with the latest python-matplotlib:

$ graphs
WARNING: Could not load /usr/share/fonts/noto/NotoColorEmoji.ttf
Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/graphs/styles.py", line 288, in _on_use_custom_style
    self._on_style_change(True)
  File "/usr/lib/python3.12/site-packages/graphs/styles.py", line 323, in _on_style_change
    canvas = graphs.canvas.Canvas(self._selected_style_params)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/graphs/canvas.py", line 128, in __init__
    self._setup_interactive()
  File "/usr/lib/python3.12/site-packages/graphs/canvas.py", line 179, in _setup_interactive
    self.highlight = _Highlight(self)
                     ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/graphs/canvas.py", line 921, in __init__
    super().__init__(
  File "/usr/lib/python3.12/site-packages/matplotlib/widgets.py", line 2561, in __init__
    self.new_axes(ax, _props=props, _init=True)
  File "/usr/lib/python3.12/site-packages/matplotlib/widgets.py", line 2596, in new_axes
    rect_artist.update(_props)
  File "/usr/lib/python3.12/site-packages/matplotlib/artist.py", line 1206, in update
    return self._update_props(
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/matplotlib/artist.py", line 1192, in _update_props
    ret.append(func(v))
               ^^^^^^^
  File "/usr/lib/python3.12/site-packages/matplotlib/patches.py", line 403, in set_facecolor
    self._set_facecolor(color)
  File "/usr/lib/python3.12/site-packages/matplotlib/patches.py", line 391, in _set_facecolor
    self._facecolor = colors.to_rgba(color, alpha)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/matplotlib/colors.py", line 314, in to_rgba
    rgba = _to_rgba_no_colorcycle(c, alpha)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/matplotlib/colors.py", line 412, in _to_rgba_no_colorcycle
    raise ValueError("RGBA values should be within 0-1 range")
ValueError: RGBA values should be within 0-1 range
Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/graphs/application.py", line 172, in do_activate
    self.set_figure_style_manager(styles.StyleManager(self))
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/graphs/styles.py", line 170, in __init__
    self._on_style_change()
  File "/usr/lib/python3.12/site-packages/graphs/styles.py", line 323, in _on_style_change
    canvas = graphs.canvas.Canvas(self._selected_style_params)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/graphs/canvas.py", line 128, in __init__
    self._setup_interactive()
  File "/usr/lib/python3.12/site-packages/graphs/canvas.py", line 179, in _setup_interactive
    self.highlight = _Highlight(self)
                     ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/graphs/canvas.py", line 921, in __init__
    super().__init__(
  File "/usr/lib/python3.12/site-packages/matplotlib/widgets.py", line 2561, in __init__
    self.new_axes(ax, _props=props, _init=True)
  File "/usr/lib/python3.12/site-packages/matplotlib/widgets.py", line 2596, in new_axes
    rect_artist.update(_props)
  File "/usr/lib/python3.12/site-packages/matplotlib/artist.py", line 1206, in update
    return self._update_props(
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/matplotlib/artist.py", line 1192, in _update_props
    ret.append(func(v))
               ^^^^^^^
  File "/usr/lib/python3.12/site-packages/matplotlib/patches.py", line 403, in set_facecolor
    self._set_facecolor(color)
  File "/usr/lib/python3.12/site-packages/matplotlib/patches.py", line 391, in _set_facecolor
    self._facecolor = colors.to_rgba(color, alpha)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/matplotlib/colors.py", line 314, in to_rgba
    rgba = _to_rgba_no_colorcycle(c, alpha)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/matplotlib/colors.py", line 412, in _to_rgba_no_colorcycle
    raise ValueError("RGBA values should be within 0-1 range")
ValueError: RGBA values should be within 0-1 range

jianglai commented on 2024-09-29 22:51 (UTC)

diff --git a/PKGBUILD b/PKGBUILD                                                
index 500fd6e..2f537d8 100644                                                   
--- a/PKGBUILD                                                                  
+++ b/PKGBUILD                                                                  
@@ -10,7 +10,7 @@ url="https://welcome.gnome.org/app/Graphs/"                   
 license=('GPL-3.0-or-later')                                                   
 depends=('gtk4' 'libadwaita' 'python-matplotlib' 'python-scipy' 'python-numpy' 'python-numexpr' 'python-sympy' 'gobject-introspection')
 conflicts=('graphs-git')                                                       
-makedepends=('git' 'meson' 'blueprint-compiler' 'gettext' 'vala' 'gobject-introspection-runtime')
+makedepends=('git' 'meson' 'blueprint-compiler' 'gettext' 'vala' 'gobject-introspection-runtime' 'itstool')
 source=("https://gitlab.gnome.org/World/Graphs/-/archive/v${pkgver}/Graphs-v${pkgver}.tar.gz")
 sha256sums=('fb72387b8c692db434bc50a5cf851405b1d3f6be7cd274e461cecd57d3ac19af')

brianwo commented on 2024-08-20 17:47 (UTC)

Here after my build fails for missing itstool. Seems like this hasn't been fixed since last comment from three months ago.

gregthwuen commented on 2024-05-03 11:37 (UTC)

itstool is a missing build dependency, seems to be required for generating the Gnome help pages.