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

ImportError: numpy.core.multiarray failed to import #68

Open
zark119 opened this issue Sep 19, 2024 · 0 comments
Open

ImportError: numpy.core.multiarray failed to import #68

zark119 opened this issue Sep 19, 2024 · 0 comments

Comments

@zark119
Copy link

zark119 commented Sep 19, 2024

Can not import nodes...
`E:\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\library\custom_train_functions.py:163: SyntaxWarning: invalid escape sequence '('
"""
E:\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\library\lpw_stable_diffusion.py:64: SyntaxWarning: invalid escape sequence '('
"""

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.1.1 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last): File "E:\ComfyUI\main.py", line 210, in
nodes.init_extra_nodes(init_custom_nodes=not args.disable_all_custom_nodes)
File "E:\ComfyUI\nodes.py", line 2121, in init_extra_nodes
init_external_custom_nodes()
File "E:\ComfyUI\nodes.py", line 2040, in init_external_custom_nodes
success = load_custom_node(module_path, base_node_names, module_parent="custom_nodes")
File "E:\ComfyUI\nodes.py", line 1994, in load_custom_node
module_spec.loader.exec_module(module)
File "E:\ComfyUI\custom_nodes\ComfyUI-FluxTrainer_init_.py", line 1, in
from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "E:\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\nodes.py", line 26, in
import matplotlib
File "C:\Python312\Lib\site-packages\matplotlib_init_.py", line 174, in
from . import _api, _version, cbook, _docstring, rcsetup
File "C:\Python312\Lib\site-packages\matplotlib\rcsetup.py", line 27, in
from matplotlib.colors import Colormap, is_color_like
File "C:\Python312\Lib\site-packages\matplotlib\colors.py", line 57, in
from matplotlib import _api, _cm, cbook, scale
File "C:\Python312\Lib\site-packages\matplotlib\scale.py", line 22, in
from matplotlib.ticker import (
File "C:\Python312\Lib\site-packages\matplotlib\ticker.py", line 143, in
from matplotlib import transforms as mtransforms
File "C:\Python312\Lib\site-packages\matplotlib\transforms.py", line 49, in
from matplotlib._path import (
AttributeError: ARRAY_API not found
Traceback (most recent call last):
File "E:\ComfyUI\nodes.py", line 1994, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 995, in exec_module
File "", line 488, in call_with_frames_removed
File "E:\ComfyUI\custom_nodes\ComfyUI-FluxTrainer_init
.py", line 1, in
from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "E:\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\nodes.py", line 26, in
import matplotlib
File "C:\Python312\Lib\site-packages\matplotlib_init
.py", line 174, in
from . import _api, _version, cbook, _docstring, rcsetup
File "C:\Python312\Lib\site-packages\matplotlib\rcsetup.py", line 27, in
from matplotlib.colors import Colormap, is_color_like
File "C:\Python312\Lib\site-packages\matplotlib\colors.py", line 57, in
from matplotlib import _api, _cm, cbook, scale
File "C:\Python312\Lib\site-packages\matplotlib\scale.py", line 22, in
from matplotlib.ticker import (
File "C:\Python312\Lib\site-packages\matplotlib\ticker.py", line 143, in
from matplotlib import transforms as mtransforms
File "C:\Python312\Lib\site-packages\matplotlib\transforms.py", line 49, in
from matplotlib._path import (
ImportError: numpy.core.multiarray failed to import

Cannot import E:\ComfyUI\custom_nodes\ComfyUI-FluxTrainer module for custom nodes: numpy.core.multiarray failed to import`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant