Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947738 - media-gfx/inkscape-1.4-r1 crashes Extensions, complains of missing numpy
Summary: media-gfx/inkscape-1.4-r1 crashes Extensions, complains of missing numpy
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-08 19:39 UTC by Russell Dwiggins
Modified: 2025-02-16 13:34 UTC (History)
2 users (show)

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


Attachments
emerge --info (info.txt,7.82 KB, text/plain)
2025-01-08 20:41 UTC, Russell Dwiggins
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Russell Dwiggins 2025-01-08 19:39:40 UTC
When selecting "Extensions | Manage Extensions" from the menu (or when applying an Extension in work), the following error message pops up:

An error occured with the extensions manager!
Trying to self-update the package... Failed to update!

Please delete the package manually! (see location below)


Please report this error
------------------------

Report URL: https://gitlab.com/inkscape/extras/extension-manager/-/issues
Location: /usr/share/inkscape/extensions/inkman/inkman/inkman
inkscape-extension-manager: 1.0

Not done
Traceback (most recent call last):
  File "/usr/share/inkscape/extensions/inkman/inkman/manage_extensions.py", line 61, in recovery_run
    run(args)
    ~~~^^^^^^
  File "/usr/share/inkscape/extensions/inkman/inkman/manage_extensions.py", line 34, in run
    from inkman.targets import TARGETS
  File "/usr/share/inkscape/extensions/inkman/inkman/inkman/targets.py", line 5, in <module>
    from .target import ExtensionsTarget, BasicTarget
  File "/usr/share/inkscape/extensions/inkman/inkman/inkman/target.py", line 28, in <module>
    from inkex.command import call
  File "/usr/share/inkscape/extensions/inkex/__init__.py", line 11, in <module>
    from .extensions import *
  File "/usr/share/inkscape/extensions/inkex/extensions.py", line 32, in <module>
    from .utils import errormsg, Boolean
  File "/usr/share/inkscape/extensions/inkex/utils.py", line 34, in <module>
    import numpy as np
ModuleNotFoundError: No module named 'numpy'


Reproducible: Always

Steps to Reproduce:
1.Start Inkscape
2.Select Extensions, then Manage Extensions
3.
Comment 1 Russell Dwiggins 2025-01-08 20:41:07 UTC
Created attachment 916159 [details]
emerge --info
Comment 2 Zhixu Liu 2025-01-20 10:41:12 UTC
unable to reproduce yet, can you try:

INKSCAPE_PROFILE_DIR=~/.config/inkscape PYTHONPATH=/usr/share/inkscape/extensions:/usr/share/inkscape/extensions/inkex/deprecated-simple python3 /usr/share/inkscape/extensions/inkman/inkman/manage_extensions.py
Comment 3 Russell Dwiggins 2025-02-07 23:53:47 UTC
(In reply to Zhixu Liu from comment #2)
> unable to reproduce yet, can you try:
> 
> INKSCAPE_PROFILE_DIR=~/.config/inkscape
> PYTHONPATH=/usr/share/inkscape/extensions:/usr/share/inkscape/extensions/
> inkex/deprecated-simple python3
> /usr/share/inkscape/extensions/inkman/inkman/manage_extensions.py

I lost the drive on the previous gentoo install, so this is relatively fresh:

russell@apollo ~ $ INKSCAPE_PROFILE_DIR=~/.config/inkscape PYTHONPATH=/usr/share/inkscape/extensions:/usr/share/inkscape/extensions/inkex/deprecated-simple python3 /usr/share/inkscape/extensions/inkman/inkman/manage_extensions.py
An error occured with the extensions manager!
Trying to self-update the package... Failed to update!

Please delete the package manually! (see location below)


Please report this error
------------------------

Report URL: https://gitlab.com/inkscape/extras/extension-manager/-/issues
Location: /usr/share/inkscape/extensions/inkman/inkman/inkman
inkscape-extension-manager: 1.0

Not done
Traceback (most recent call last):
  File "/usr/share/inkscape/extensions/inkman/inkman/manage_extensions.py", line 61, in recovery_run
    run(args)
  File "/usr/share/inkscape/extensions/inkman/inkman/manage_extensions.py", line 34, in run
    from inkman.targets import TARGETS
  File "/usr/share/inkscape/extensions/inkman/inkman/inkman/targets.py", line 5, in <module>
    from .target import ExtensionsTarget, BasicTarget
  File "/usr/share/inkscape/extensions/inkman/inkman/inkman/target.py", line 28, in <module>
    from inkex.command import call
  File "/usr/share/inkscape/extensions/inkex/__init__.py", line 11, in <module>
    from .extensions import *
  File "/usr/share/inkscape/extensions/inkex/extensions.py", line 32, in <module>
    from .utils import errormsg, Boolean
  File "/usr/share/inkscape/extensions/inkex/utils.py", line 34, in <module>
    import numpy as np
ModuleNotFoundError: No module named 'numpy'
Comment 4 Zhixu Liu 2025-02-08 12:12:10 UTC
ok, please run following command:

# qfile /usr/share/inkscape/extensions/inkman/inkman/manage_extensions.py
# equery check media-gfx/inkscape
# equery check numpy
# which python3
# cat /var/db/pkg/media-gfx/inkscape-*/RDEPEND
# python3 -V
# python3 -c "import numpy; print('ok');"
Comment 5 Russell Dwiggins 2025-02-08 20:33:01 UTC
(In reply to Zhixu Liu from comment #4)
> ok, please run following command:
> 
> # qfile /usr/share/inkscape/extensions/inkman/inkman/manage_extensions.py
> # equery check media-gfx/inkscape
> # equery check numpy
> # which python3
> # cat /var/db/pkg/media-gfx/inkscape-*/RDEPEND
> # python3 -V
> # python3 -c "import numpy; print('ok');"

Thanks! This bug can be closed. 

The issue was my use of different versions of python for venv's with which I was playing.
Comment 6 Russell Dwiggins 2025-02-08 21:30:15 UTC
Just in case someone runs into a similar issue:

You can specify the python interpreter for extensions in the:

~/.config/inkscape/preferences.xml

file. 

In my case I have put:

<group
     id="extensions"
     org.inkscape.output.png.inkscape.png_bitdepth="99"
     org.inkscape.output.png.inkscape.png_compression="6"
     org.inkscape.output.png.inkscape.png_antialias="2"
     python-interpreter="/usr/bin/python3.12"
     org.ekips.filter.gears.unit="px"
     org.ekips.filter.gears.__live_effect__="0" />


Hope this helps!
Comment 7 Zhixu Liu 2025-02-09 04:49:38 UTC
thanks for the update