Skip to content

[Bug]:AttributeError: module 'numpy' has no attribute 'dtypes'. Did you mean: 'dtype'? #519

Open
@J1hyuyn

Description

@J1hyuyn

What happened?

/content
env: TF_CPP_MIN_LOG_LEVEL=1
ERROR: ld.so: object '/content/libtcmalloc_minimal.so.4' from LD_PRELOAD cannot be preloaded (file too short): ignored.
ERROR: ld.so: object '/content/libtcmalloc_minimal.so.4' from LD_PRELOAD cannot be preloaded (file too short): ignored.
ERROR: ld.so: object '/content/libtcmalloc_minimal.so.4' from LD_PRELOAD cannot be preloaded (file too short): ignored.
ERROR: ld.so: object '/content/libtcmalloc_minimal.so.4' from LD_PRELOAD cannot be preloaded (file too short): ignored.
ERROR: ld.so: object '/content/libtcmalloc_minimal.so.4' from LD_PRELOAD cannot be preloaded (file too short): ignored.
ERROR: ld.so: object '/content/libtcmalloc_minimal.so.4' from LD_PRELOAD cannot be preloaded (file too short): ignored.
ERROR: ld.so: object '/content/libtcmalloc_minimal.so.4' from LD_PRELOAD cannot be preloaded (file too short): ignored.
ERROR: ld.so: object '/content/libtcmalloc_minimal.so.4' from LD_PRELOAD cannot be preloaded (file too short): ignored.
ERROR: ld.so: object '/content/libtcmalloc_minimal.so.4' from LD_PRELOAD cannot be preloaded (file too short): ignored.
ERROR: ld.so: object '/content/libtcmalloc_minimal.so.4' from LD_PRELOAD cannot be preloaded (file too short): ignored.
ERROR: ld.so: object '/content/libtcmalloc_minimal.so.4' from LD_PRELOAD cannot be preloaded (file too short): ignored.
ERROR: ld.so: object '/content/libtcmalloc_minimal.so.4' from LD_PRELOAD cannot be preloaded (file too short): ignored.
ERROR: ld.so: object '/content/libtcmalloc_minimal.so.4' from LD_PRELOAD cannot be preloaded (file too short): ignored.
ERROR: ld.so: object '/content/libtcmalloc_minimal.so.4' from LD_PRELOAD cannot be preloaded (file too short): ignored.
ERROR: ld.so: object '/content/libtcmalloc_minimal.so.4' from LD_PRELOAD cannot be preloaded (file too short): ignored.
ERROR: ld.so: object '/content/libtcmalloc_minimal.so.4' from LD_PRELOAD cannot be preloaded (file too short): ignored.
ERROR: ld.so: object '/content/libtcmalloc_minimal.so.4' from LD_PRELOAD cannot be preloaded (file too short): ignored.
ERROR: ld.so: object '/content/libtcmalloc_minimal.so.4' from LD_PRELOAD cannot be preloaded (file too short): ignored.
47 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Skipping acquire of configured file 'main/source/Sources' as repository 'https://r2u.stat.illinois.edu/ubuntu jammy InRelease' does not seem to provide it (sources.list entry misspelt?)
ERROR: ld.so: object '/content/libtcmalloc_minimal.so.4' from LD_PRELOAD cannot be preloaded (file too short): ignored.
ERROR: ld.so: object '/content/libtcmalloc_minimal.so.4' from LD_PRELOAD cannot be preloaded (file too short): ignored.
--2025-04-10 03:17:53-- https://github.com/camenduru/gperftools/releases/download/v1.0/libtcmalloc_minimal.so.4
Resolving github.com (github.com)... 20.205.243.166
Connecting to github.com (github.com)|20.205.243.166|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/669786276/620e2e64-be9f-4599-904f-18ee3811e159?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250410%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250410T031754Z&X-Amz-Expires=300&X-Amz-Signature=1bde8a639a511b995c253df1555b19fefdc26f31309c4b5f637f68adad04ff7c&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dlibtcmalloc_minimal.so.4&response-content-type=application%2Foctet-stream [following]
--2025-04-10 03:17:54-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/669786276/620e2e64-be9f-4599-904f-18ee3811e159?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250410%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250410T031754Z&X-Amz-Expires=300&X-Amz-Signature=1bde8a639a511b995c253df1555b19fefdc26f31309c4b5f637f68adad04ff7c&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dlibtcmalloc_minimal.so.4&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 373960 (365K) [application/octet-stream]
Saving to: ‘/content/libtcmalloc_minimal.so.4’

/content/libtcmallo 100%[===================>] 365.20K --.-KB/s in 0.004s

2025-04-10 03:17:55 (80.9 MB/s) - ‘/content/libtcmalloc_minimal.so.4’ saved [373960/373960]

env: LD_PRELOAD=/content/libtcmalloc_minimal.so.4
libcairo2-dev is already the newest version (1.16.0-5ubuntu2).
pkg-config is already the newest version (0.29.2-1ubuntu3).
aria2 is already the newest version (1.36.0-1).
python3-dev is already the newest version (3.10.6-1~22.04.1).
The following packages were automatically installed and are no longer required:
libbz2-dev libpkgconf3 libreadline-dev
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 47 not upgraded.
fatal: destination path 'stable-diffusion-webui' already exists and is not an empty directory.
fatal: destination path '/content/stable-diffusion-webui/embeddings/negative' already exists and is not an empty directory.
fatal: destination path '/content/stable-diffusion-webui/models/Lora/positive' already exists and is not an empty directory.

Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
0ffde3|OK | 0B/s|/content/stable-diffusion-webui/models/ESRGAN/4x-UltraSharp.pth

Status Legend:
(OK):download completed.
--2025-04-10 03:18:09-- https://rg.gosu.cc/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py
Resolving rg.gosu.cc (rg.gosu.cc)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to rg.gosu.cc (rg.gosu.cc)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 533 [text/plain]
Saving to: ‘/content/stable-diffusion-webui/scripts/run_n_times.py’

/content/stable-dif 100%[===================>] 533 --.-KB/s in 0s

2025-04-10 03:18:09 (36.5 MB/s) - ‘/content/stable-diffusion-webui/scripts/run_n_times.py’ saved [533/533]

fatal: destination path '/content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui' already exists and is not an empty directory.
fatal: destination path '/content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser' already exists and is not an empty directory.
fatal: destination path '/content/stable-diffusion-webui/extensions/stable-diffusion-webui-huggingface' already exists and is not an empty directory.
fatal: destination path '/content/stable-diffusion-webui/extensions/sd-civitai-browser' already exists and is not an empty directory.
fatal: destination path '/content/stable-diffusion-webui/extensions/sd-webui-additional-networks' already exists and is not an empty directory.
fatal: destination path '/content/stable-diffusion-webui/extensions/sd-webui-tunnels' already exists and is not an empty directory.
fatal: destination path '/content/stable-diffusion-webui/extensions/batchlinks-webui' already exists and is not an empty directory.
fatal: destination path '/content/stable-diffusion-webui/extensions/stable-diffusion-webui-catppuccin' already exists and is not an empty directory.
fatal: destination path '/content/stable-diffusion-webui/extensions/stable-diffusion-webui-rembg' already exists and is not an empty directory.
fatal: destination path '/content/stable-diffusion-webui/extensions/stable-diffusion-webui-two-shot' already exists and is not an empty directory.
fatal: destination path '/content/stable-diffusion-webui/extensions/sd-webui-aspect-ratio-helper' already exists and is not an empty directory.
fatal: destination path '/content/stable-diffusion-webui/extensions/asymmetric-tiling-sd-webui' already exists and is not an empty directory.
/content/stable-diffusion-webui
HEAD is now at cf1d67a Update modelcard.md

Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
b02119|OK | 0B/s|/content/stable-diffusion-webui/models/Stable-diffusion/Anything-V3.0-pruned.ckpt

Status Legend:
(OK):download completed.

Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
d394e3|OK | 0B/s|/content/stable-diffusion-webui/models/Stable-diffusion/Anything-V3.0-pruned.vae.pt

Status Legend:
(OK):download completed.
fatal: No names found, cannot describe anything.
Python 3.11.11 (main, Dec 4 2024, 08:55:07) [GCC 11.4.0]
Version: ## 1.4.1
Commit hash: f865d3e11647dfd6c7b2cdf90dde24680e58acd8
Installing requirements
*** Error running install.py for extension /content/stable-diffusion-webui/extensions/stable-diffusion-webui-rembg.
*** Command: "/usr/bin/python3" "/content/stable-diffusion-webui/extensions/stable-diffusion-webui-rembg/install.py"
*** Error code: 1
*** stdout: Installing rembg


*** stderr: Traceback (most recent call last):
*** File "/content/stable-diffusion-webui/extensions/stable-diffusion-webui-rembg/install.py", line 4, in
*** launch.run_pip("install rembg==2.0.38 --no-deps", "rembg")
*** File "/content/stable-diffusion-webui/modules/launch_utils.py", line 130, in run_pip
*** return run(f'"{python}" -m pip {command} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}", live=live)
*** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
*** File "/content/stable-diffusion-webui/modules/launch_utils.py", line 107, in run
*** raise RuntimeError("\n".join(error_bits))
*** RuntimeError: Couldn't install rembg.
*** Command: "/usr/bin/python3" -m pip install rembg==2.0.38 --no-deps --prefer-binary
*** Error code: 1
*** stderr: ERROR: Ignored the following versions that require a different python version: 2.0.28 Requires-Python >3.7, <3.11; 2.0.29 Requires-Python >3.7, <3.11; 2.0.30 Requires-Python >3.7, <3.11; 2.0.31 Requires-Python >3.7, <3.11; 2.0.32 Requires-Python >3.7, <3.11; 2.0.33 Requires-Python >3.7, <3.11; 2.0.34 Requires-Python >3.7, <3.11; 2.0.35 Requires-Python >3.7, <3.11; 2.0.36 Requires-Python >3.7, <3.11; 2.0.37 Requires-Python >3.7, <3.11; 2.0.38 Requires-Python >3.7, <3.11; 2.0.39 Requires-Python >3.7, <3.11; 2.0.40 Requires-Python >3.7, <3.11
*** ERROR: Could not find a version that satisfies the requirement rembg==2.0.38 (from versions: 2.0.41, 2.0.43, 2.0.44, 2.0.45, 2.0.46, 2.0.47, 2.0.48, 2.0.49, 2.0.50, 2.0.51, 2.0.52, 2.0.53, 2.0.54, 2.0.55, 2.0.56, 2.0.57, 2.0.58, 2.0.59, 2.0.60, 2.0.61, 2.0.62, 2.0.63, 2.0.64, 2.0.65)
*** ERROR: No matching distribution found for rembg==2.0.38


Launching Web UI with arguments: --listen --xformers --enable-insecure-extension-access --theme dark --gradio-queue --multiple
2025-04-10 03:18:23.690600: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:477] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1744255103.735174 6221 cuda_dnn.cc:8310] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
E0000 00:00:1744255103.748993 6221 cuda_blas.cc:1418] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
Traceback (most recent call last):
File "/content/stable-diffusion-webui/launch.py", line 44, in
main()
File "/content/stable-diffusion-webui/launch.py", line 40, in main
start()
File "/content/stable-diffusion-webui/modules/launch_utils.py", line 340, in start
import webui
File "/content/stable-diffusion-webui/webui.py", line 28, in
import pytorch_lightning # noqa: F401 # pytorch_lightning should be imported after torch, but it re-enables warnings on import so import once to disable them
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/pytorch_lightning/init.py", line 35, in
from pytorch_lightning.callbacks import Callback # noqa: E402
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/pytorch_lightning/callbacks/init.py", line 14, in
from pytorch_lightning.callbacks.batch_size_finder import BatchSizeFinder
File "/usr/local/lib/python3.11/dist-packages/pytorch_lightning/callbacks/batch_size_finder.py", line 24, in
from pytorch_lightning.callbacks.callback import Callback
File "/usr/local/lib/python3.11/dist-packages/pytorch_lightning/callbacks/callback.py", line 25, in
from pytorch_lightning.utilities.types import STEP_OUTPUT
File "/usr/local/lib/python3.11/dist-packages/pytorch_lightning/utilities/types.py", line 27, in
from torchmetrics import Metric
File "/usr/local/lib/python3.11/dist-packages/torchmetrics/init.py", line 37, in
from torchmetrics import functional # noqa: E402
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/torchmetrics/functional/init.py", line 128, in
from torchmetrics.functional.text._deprecated import _bleu_score as bleu_score
File "/usr/local/lib/python3.11/dist-packages/torchmetrics/functional/text/init.py", line 50, in
from torchmetrics.functional.text.bert import bert_score
File "/usr/local/lib/python3.11/dist-packages/torchmetrics/functional/text/bert.py", line 56, in
from transformers import AutoModel, AutoTokenizer
File "/usr/local/lib/python3.11/dist-packages/transformers/init.py", line 30, in
from . import dependency_versions_check
File "/usr/local/lib/python3.11/dist-packages/transformers/dependency_versions_check.py", line 17, in
from .utils.versions import require_version, require_version_core
File "/usr/local/lib/python3.11/dist-packages/transformers/utils/init.py", line 34, in
from .generic import (
File "/usr/local/lib/python3.11/dist-packages/transformers/utils/generic.py", line 33, in
import tensorflow as tf
File "/usr/local/lib/python3.11/dist-packages/tensorflow/init.py", line 55, in
from tensorflow._api.v2 import compat
File "/usr/local/lib/python3.11/dist-packages/tensorflow/_api/v2/compat/init.py", line 8, in
from tensorflow._api.v2.compat import v1
File "/usr/local/lib/python3.11/dist-packages/tensorflow/_api/v2/compat/v1/init.py", line 30, in
from tensorflow._api.v2.compat.v1 import compat
File "/usr/local/lib/python3.11/dist-packages/tensorflow/_api/v2/compat/v1/compat/init.py", line 8, in
from tensorflow._api.v2.compat.v1.compat import v1
File "/usr/local/lib/python3.11/dist-packages/tensorflow/_api/v2/compat/v1/compat/v1/init.py", line 47, in
from tensorflow._api.v2.compat.v1 import lite
File "/usr/local/lib/python3.11/dist-packages/tensorflow/_api/v2/compat/v1/lite/init.py", line 9, in
from tensorflow._api.v2.compat.v1.lite import experimental
File "/usr/local/lib/python3.11/dist-packages/tensorflow/_api/v2/compat/v1/lite/experimental/init.py", line 8, in
from tensorflow._api.v2.compat.v1.lite.experimental import authoring
File "/usr/local/lib/python3.11/dist-packages/tensorflow/_api/v2/compat/v1/lite/experimental/authoring/init.py", line 8, in
from tensorflow.lite.python.authoring.authoring import compatible # line: 263
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/tensorflow/lite/python/authoring/authoring.py", line 42, in
from tensorflow.lite.python import convert
File "/usr/local/lib/python3.11/dist-packages/tensorflow/lite/python/convert.py", line 35, in
from tensorflow.lite.python import util
File "/usr/local/lib/python3.11/dist-packages/tensorflow/lite/python/util.py", line 53, in
from jax import jit as _jit
File "/usr/local/lib/python3.11/dist-packages/jax/init.py", line 37, in
import jax.core as _core
File "/usr/local/lib/python3.11/dist-packages/jax/core.py", line 18, in
from jax._src.core import (
File "/usr/local/lib/python3.11/dist-packages/jax/_src/core.py", line 37, in
from jax._src import dtypes
File "/usr/local/lib/python3.11/dist-packages/jax/_src/dtypes.py", line 521, in
if hasattr(np.dtypes, 'StringDType') and xla_extension_version >= 311:
^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/numpy/init.py", line 311, in getattr
raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'dtypes'. Did you mean: 'dtype'?

Colab cell output

https://colab.research.google.com/github/camenduru/stable-diffusion-webui-colab/blob/main/lite/anything_3_webui_colab.ipynb#scrollTo=SaAJk33ppFw1&line=41&uniqifier=1

Which colab and model(s) were you using when the error occurred?

anything_3_webui_colab.ipynb

Which Public WebUI Colab URL were you using when the error occurred?

remote.moe

If you used HiRes mode when the error occurred, please provide the Hires info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions