problem with "pip install --upgrade diffusers transformers scipy"

#35
by bigkahuna666 - opened

Hi wonderful community,

I have a slight problem getting the diffusers setup.
I managed to install most dependencies like fortran, meson, openblas etc., but when running "pip install --upgrade diffusers transformers scipy" I still get an error relating to openblas? Maybe it's related to distutil as well?

The output is below. I might just be missing something that's really obvious or I'm looking in the wrong place... If anyone has any suggestions as to how to resolve this I'd really appreciate any input/help/explanation.
Thanks in advance!

~ % pip install --upgrade diffusers transformers scipy
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Requirement already satisfied: diffusers in /opt/homebrew/lib/python3.9/site-packages (0.2.4)
Collecting transformers
Using cached transformers-4.21.2-py3-none-any.whl (4.7 MB)
Collecting scipy
Using cached scipy-1.9.1.tar.gz (42.0 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

Γ— Getting requirements to build wheel did not run successfully.
β”‚ exit code: 1
╰─> [60 lines of output]
The Meson build system
Version: 0.62.2
Source dir: /private/var/folders/yh/kqkl1tjd0576g1qtp27mg4xw0000gn/T/pip-install-47uaqwma/scipy_060c41d946494a6c9562087e3b3b2df6
Build dir: /private/var/folders/yh/kqkl1tjd0576g1qtp27mg4xw0000gn/T/pip-install-47uaqwma/scipy_060c41d946494a6c9562087e3b3b2df6/.mesonpy-21opxlq0/build
Build type: native build
Project name: SciPy
Project version: 1.9.1
C compiler for the host machine: cc (clang 12.0.5 "Apple clang version 12.0.5 (clang-1205.0.22.9)")
C linker for the host machine: cc ld64 650.9
C++ compiler for the host machine: c++ (clang 12.0.5 "Apple clang version 12.0.5 (clang-1205.0.22.9)")
C++ linker for the host machine: c++ ld64 650.9
Host machine cpu family: aarch64
Host machine cpu: arm64
Compiler for C supports arguments -Wno-unused-but-set-variable: NO
Library m found: YES
Fortran compiler for the host machine: gfortran (gcc 12.2.0 "GNU Fortran (Homebrew GCC 12.2.0) 12.2.0")
Fortran linker for the host machine: gfortran ld64 650.9
Program cython found: YES (/private/var/folders/yh/kqkl1tjd0576g1qtp27mg4xw0000gn/T/pip-build-env-d5rvolle/overlay/bin/cython)
Program pythran found: YES (/private/var/folders/yh/kqkl1tjd0576g1qtp27mg4xw0000gn/T/pip-build-env-d5rvolle/overlay/bin/pythran)
Program cp found: YES (/bin/cp)
Program python3 found: YES (/opt/homebrew/Cellar/python@3.9/3.9.13_4/bin/python3.9)
Found pkg-config: /opt/local/bin/pkg-config (0.29.2)
Library npymath found: YES
Library npyrandom found: YES
Found CMake: /opt/homebrew/bin/cmake (3.24.1)
Run-time dependency openblas found: NO (tried pkgconfig, framework and cmake)
Run-time dependency openblas found: NO (tried pkgconfig, framework and cmake)

  ../../scipy/meson.build:130:0: ERROR: Dependency "OpenBLAS" not found, tried pkgconfig, framework and cmake

~ % brew upgrade openblas
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
Warning: openblas 0.3.21 already installed

so openBlas is definitely installed as output shows... Do I manually need to point it to the location of openBlas?

Hmm sorry I'm not sure here - could you maybe try posting in the corresponding GitHub repos?

Ahoy Patrick! Thanks so much for your response. Managed to get it going by first of all updating my MacOS (Apple Silicone) and then using anaconda and rust. I tried to reproduce what I generated on the DreamStudio beta website (using same seed etc) but the results are nowhere near it. What ckpt and what py script is the web version using? I used the dream.py with the latest v1.4 chkpt as model and also tried the original text2img.py but neither were any good. Would be great to know your thoughts on this.

Thanks in advance!
Phil

Sign up or log in to comment