Skip to content

MacOS - Error importing numpy upon clicking "Apply" #344

@anthonyj-codestuff

Description

@anthonyj-codestuff

MacOS Sequoia 15.5
Python 3.13
numpy 2.3.2
inkscape-silhouette 1.29

numpy was installed with pip install numpy

Installing the extension went down with no errors. I downloaded registration-marks-cameo-silhouette.svg, added a rectangle to the Plot layer, and ran Extensions > Export > Send to Silhouette. No default settings were changed.

Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/numpy/_core/init.py", line 22, in
from . import multiarray
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/numpy/_core/multiarray.py", line 11, in
from . import _multiarray_umath, overrides
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/numpy/_core/_multiarray_umath.cpython-313-darwin.so, 0x0002): tried: '/Applications/Inkscape.app/Contents/Resources/lib/_multiarray_umath.cpython-313-darwin.so' (no such file), '/Applications/Inkscape.app/Contents/Resources/lib/gdk-pixbuf-2.0/2.10.0/loaders/_multiarray_umath.cpython-313-darwin.so' (no such file), '/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/numpy/_core/_multiarray_umath.cpython-313-darwin.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/numpy/_core/_multiarray_umath.cpython-313-darwin.so' (no such file), '/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/numpy/_core/_multiarray_umath.cpython-313-darwin.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/numpy/init.py", line 112, in
from numpy.config import show_config
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/numpy/config.py", line 4, in
from numpy._core._multiarray_umath import (
...<3 lines>...
)
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/numpy/_core/init.py", line 48, in
raise ImportError(msg) from exc
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:

https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

  • The Python version is: Python3.13 from "/usr/local/bin/python3"
  • The NumPy version is: "2.3.2"

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

Original error was: dlopen(/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/numpy/_core/_multiarray_umath.cpython-313-darwin.so, 0x0002): tried: '/Applications/Inkscape.app/Contents/Resources/lib/_multiarray_umath.cpython-313-darwin.so' (no such file), '/Applications/Inkscape.app/Contents/Resources/lib/gdk-pixbuf-2.0/2.10.0/loaders/_multiarray_umath.cpython-313-darwin.so' (no such file), '/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/numpy/_core/_multiarray_umath.cpython-313-darwin.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/numpy/_core/_multiarray_umath.cpython-313-darwin.so' (no such file), '/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/numpy/_core/_multiarray_umath.cpython-313-darwin.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/Users/user/Library/Application Support/org.inkscape.Inkscape/config/inkscape/extensions/sendto_silhouette.py", line 41, in
import inkex
File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex/init.py", line 11, in
from .extensions import *
File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex/extensions.py", line 34, in
from .elements import (
...<10 lines>...
)
File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex/elements/init.py", line 12, in
from ._groups import Group, Layer, Anchor, Marker, ClipPath
File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex/elements/_groups.py", line 33, in
from ._polygons import PathElement
File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex/elements/_polygons.py", line 31, in
from ..bezier import pointdistance
File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex/bezier.py", line 29, in
import numpy
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/numpy/init.py", line 117, in
raise ImportError(msg) from e
ImportError: Error importing numpy: you should not try to import numpy from
its source directory; please exit the numpy source tree, and relaunch
your python interpreter from there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions