Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 773046 - media-gfx/xdot-1.2 - missing dependency (python-dev/numpy)
Summary: media-gfx/xdot-1.2 - missing dependency (python-dev/numpy)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matt Turner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-26 14:00 UTC by dust
Modified: 2021-02-26 23:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dust 2021-02-26 14:00:07 UTC
media-gfx/xdot-1.2 is missing dev-python/numpy as runtime dependency.
If numpy is not present, it will terminate with an "ModuleNotFoundError" error.

The project-page itself also states its dependency on numpy (https://github.com/jrfonseca/xdot.py/blob/1.2/README.md)
The same applies to media-gfx/xdot-9999.ebuild

------

proposed patch:
diff -u {x,foo}dot-1.2.ebuild
--- xdot-1.2.ebuild     2021-02-26 14:53:02.000000000 +0100
+++ foodot-1.2.ebuild   2021-02-26 14:52:13.000000000 +0100
@@ -27,6 +27,7 @@
 SLOT="0"

 DEPEND="
+       dev-python/numpy[${PYTHON_USEDEP}]
        dev-python/pycairo[${PYTHON_USEDEP}]
        dev-python/pygobject:3[${PYTHON_USEDEP}]
        media-gfx/graphviz

-----

Full traceback:
user@host: xdot
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.8/xdot", line 33, in <module>
    sys.exit(load_entry_point('xdot==1.2', 'gui_scripts', 'xdot')())
  File "/usr/lib/python-exec/python3.8/xdot", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.8/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3.8/site-packages/xdot/__init__.py", line 26, in <module>
    from . import ui
  File "/usr/lib/python3.8/site-packages/xdot/ui/__init__.py", line 3, in <module>
    from .window import DotWidget, DotWindow
  File "/usr/lib/python3.8/site-packages/xdot/ui/window.py", line 40, in <module>
    from . import actions
  File "/usr/lib/python3.8/site-packages/xdot/ui/actions.py", line 21, in <module>
    from xdot.ui.elements import Jump
  File "/usr/lib/python3.8/site-packages/xdot/ui/elements.py", line 29, in <module>
    import numpy
ModuleNotFoundError: No module named 'numpy'
Comment 1 Larry the Git Cow gentoo-dev 2021-02-26 23:55:59 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc62ea91168646ec7f809767a0f031843fac1aba

commit fc62ea91168646ec7f809767a0f031843fac1aba
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2021-02-26 23:54:38 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2021-02-26 23:55:39 +0000

    media-gfx/xdot: Add dependency on dev-python/numpy
    
    Closes: https://bugs.gentoo.org/773046
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 media-gfx/xdot/xdot-1.2.ebuild  | 1 +
 media-gfx/xdot/xdot-9999.ebuild | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)
Comment 2 Matt Turner gentoo-dev 2021-02-26 23:56:26 UTC
Thanks!