admin管理员组

文章数量:1126116

I just installed Inkscape and was trying to install an extension.

However, when I open the Extension Manager, I get the error shown below that importing the numpy C-extensions failed, so I can't get any extensions to work.

I did already have Python 3.8 installed on my machine with NumPy, but was not expecting this to interact with Inkscape in anyway. It looks like Inkscape brought Python 3.11 with it, but is trying to reference Numpy from my previously installed Python 3.8 folders, so perhaps that has something to do with it. I am at a loss what to do here.

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: 
Location: C:\Program Files\Inkscape\share\inkscape\extensions\inkman\inkman\inkman
inkscape-extension-manager: 1.0

Not done
Traceback (most recent call last):
  File "C:\Users\#####\AppData\Local\Programs\Python\Python38\Lib\site-packages\numpy\core\__init__.py", line 23, in <module>
    from . import multiarray
  File "C:\Users\#####\AppData\Local\Programs\Python\Python38\Lib\site-packages\numpy\core\multiarray.py", line 10, in <module>
    from . import overrides
  File "C:\Users\#####\AppData\Local\Programs\Python\Python38\Lib\site-packages\numpy\core\overrides.py", line 6, in <module>
    from numpy.core._multiarray_umath import (
ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\Inkscape\share\inkscape\extensions\inkman\inkman\manage_extensions.py", line 61, in recovery_run
    run(args)
  File "C:\Program Files\Inkscape\share\inkscape\extensions\inkman\inkman\manage_extensions.py", line 34, in run
    from inkman.targets import TARGETS
  File "C:\Program Files\Inkscape\share\inkscape\extensions\inkman\inkman\inkman\targets.py", line 5, in <module>
    from .target import ExtensionsTarget, BasicTarget
  File "C:\Program Files\Inkscape\share\inkscape\extensions\inkman\inkman\inkman\target.py", line 28, in <module>
    from inkexmand import call
  File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\__init__.py", line 11, in <module>
    from .extensions import *
  File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\extensions.py", line 32, in <module>
    from .utils import errormsg, Boolean
  File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\utils.py", line 34, in <module>
    import numpy as np
  File "C:\Users\#####\AppData\Local\Programs\Python\Python38\Lib\site-packages\numpy\__init__.py", line 141, in <module>
    from . import core
  File "C:\Users\#####\AppData\Local\Programs\Python\Python38\Lib\site-packages\numpy\core\__init__.py", line 49, in <module>
    raise ImportError(msg)
ImportError: 

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

    .html

Please note and check the following:

  * The Python version is: Python3.11 from "C:\Program Files\Inkscape\bin\pythonw.exe"
  * The NumPy version is: "1.24.4"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: No module named 'numpy.core._multiarray_umath'

I have not found any mention of this problem from searching online.

本文标签: Inkscape extension manager unable to load due to numpy errorStack Overflow