Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

numpy import error #792

Open
gerroon opened this issue May 13, 2024 · 0 comments
Open

numpy import error #792

gerroon opened this issue May 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@gerroon
Copy link

gerroon commented May 13, 2024

Description

Hi

I am getting numpy import error on Windows 11 Blender 4.2 Does anyone know if this is an issue with 4.2?

I am using dream_textures-windows-cuda.7z 0.3.1


Traceback (most recent call last):
  File "c:\Blender_Addons\dream_textures\.python_dependencies\numpy\core\__init__.py", line 24, in <module>
    from . import multiarray
  File "c:\Blender_Addons\dream_textures\.python_dependencies\numpy\core\multiarray.py", line 10, in <module>
    from . import overrides
  File "c:\Blender_Addons\dream_textures\.python_dependencies\numpy\core\overrides.py", line 8, 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:\Blender_Addons\dream_textures\.python_dependencies\numpy\__init__.py", line 144, in <module>
    from numpy.__config__ import show as show_config
  File "c:\Blender_Addons\dream_textures\.python_dependencies\numpy\__config__.py", line 4, in <module>
    from numpy.core._multiarray_umath import (
  File "c:\Blender_Addons\dream_textures\.python_dependencies\numpy\core\__init__.py", line 50, 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:\blender\4.2\python\bin\python.exe"
  * The NumPy version is: "1.26.1"

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'


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

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\blender\4.2\python\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\blender\4.2\python\Lib\multiprocessing\spawn.py", line 132, in _main
    self = reduction.pickle.load(from_parent)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\USER\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\dream_textures\generator_process\__init__.py", line 3, in <module>
    class Generator(Actor):
  File "C:\Users\USER\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\dream_textures\generator_process\__init__.py", line 9, in Generator
    from .actions.load_model import load_model
  File "C:\Users\USER\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\dream_textures\generator_process\actions\load_model.py", line 4, in <module>
    from ..models import Checkpoint, ModelConfig, Scheduler
  File "C:\Users\USER\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\dream_textures\generator_process\models\__init__.py", line 2, in <module>
    from .image_generation_result import *
  File "C:\Users\USER\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\dream_textures\generator_process\models\image_generation_result.py", line 4, in <module>
    from numpy.typing import NDArray
  File "c:\Blender_Addons\dream_textures\.python_dependencies\numpy\__init__.py", line 149, 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.

Steps to Reproduce

install the addon using symlinking to the blender addon folder

Expected Behavior

it should not error out with numpy

Addon Version

Windows (CUDA)

GPU

NVIDIA

@gerroon gerroon added the bug Something isn't working label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant