numpy error in 4.2 from extra mesh objects #2

Open
opened 2024-07-26 17:15:04 +02:00 by acadgatsu · 0 comments

I'm getting this error in blender 4.2 with the extra mesh objects extension:

Python: Traceback (most recent call last):
File "C:\Users-\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\modules\numpy_core_init_.py", line 23, in
from . import multiarray
File "C:\Users-\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\modules\numpy_core\multiarray.py", line 10, in
from . import overrides
File "C:\Users-\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\modules\numpy_core\overrides.py", line 8, in
from numpy._core._multiarray_umath import (
ImportError: DLL load failed while importing _multiarray_umath: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users-\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\modules\numpy_init_.py", line 128, in
from numpy.config import show as show_config
File "C:\Users-\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\modules\numpy_config_.py", line 4, in
from numpy._core.multiarray_umath import (
File "C:\Users-\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\modules\numpy_core_init
.py", line 49, in
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:

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

Please note and check the following:

  • The Python version is: Python3.11 from "C:\Program Files\Blender Foundation\Blender 4.2\4.2\python\bin\python.exe"
  • The NumPy version is: "2.0.1"

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

Original error was: DLL load failed while importing _multiarray_umath: The specified module could not be found.

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

Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\modules\addon_utils.py", line 401, in enable
mod = importlib.import_module(module_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\python\Lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in load_unlocked
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "Q:\Blender\Extensions\extra_mesh_objects_init
.py", line 43, in
from . import add_mesh_3d_function_surface
File "Q:\Blender\Extensions\extra_mesh_objects\add_mesh_3d_function_surface.py", line 9, in
import numpy
File "C:\Users-\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\modules\numpy_init
.py", line 133, 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.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\modules\addon_utils.py", line 426, in enable
elif is_extension and module_name.startswith(ex.name + "."):
~~~~^
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

I'm getting this error in blender 4.2 with the extra mesh objects extension: Python: Traceback (most recent call last): File "C:\Users\-\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\modules\numpy\_core\__init__.py", line 23, in <module> from . import multiarray File "C:\Users\-\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\modules\numpy\_core\multiarray.py", line 10, in <module> from . import overrides File "C:\Users\-\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\modules\numpy\_core\overrides.py", line 8, in <module> from numpy._core._multiarray_umath import ( ImportError: DLL load failed while importing _multiarray_umath: The specified module could not be found. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\-\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\modules\numpy\__init__.py", line 128, in <module> from numpy.__config__ import show as show_config File "C:\Users\-\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\modules\numpy\__config__.py", line 4, in <module> from numpy._core._multiarray_umath import ( File "C:\Users\-\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\modules\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: https://numpy.org/devdocs/user/troubleshooting-importerror.html Please note and check the following: * The Python version is: Python3.11 from "C:\Program Files\Blender Foundation\Blender 4.2\4.2\python\bin\python.exe" * The NumPy version is: "2.0.1" and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help. Original error was: DLL load failed while importing _multiarray_umath: The specified module could not be found. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\modules\addon_utils.py", line 401, in enable mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\python\Lib\importlib\__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1204, in _gcd_import File "<frozen importlib._bootstrap>", line 1176, in _find_and_load File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 690, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "Q:\Blender\Extensions\extra_mesh_objects\__init__.py", line 43, in <module> from . import add_mesh_3d_function_surface File "Q:\Blender\Extensions\extra_mesh_objects\add_mesh_3d_function_surface.py", line 9, in <module> import numpy File "C:\Users\-\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\modules\numpy\__init__.py", line 133, in <module> 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. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\modules\addon_utils.py", line 426, in enable elif is_extension and module_name.startswith(ex.name + "."): ~~~~~~~~^~~~~ TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: extensions/add_mesh_extra_objects#2
No description provided.