Archicad AI Visualizer
Discussions about Archicad AI Visualizer.

Struggling with Python when installing AI Visualizer

tjszp
Contributor

Hi,

I have a Mac M1 that I use for ArchiCAD and some coding in Python, and I think maybe that is the root of my installation problems?
Here is messages from running 'run.sh' in the terminal:

tjszp@tjs-m1-pro ~ % /Applications/Graphisoft/Archicad\ 27/sd.webui/run.sh 
aaaawww --api --api-server-stop --listen --skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate aaaawwww

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on tjszp user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################

Python 3.10.13 (main, Aug 24 2023, 12:59:26) [Clang 15.0.0 (clang-1500.0.40.1)]
Version: v1.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
Launching Web UI with arguments: --api --api-server-stop --listen --skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate

no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.

Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled

Traceback (most recent call last):
  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/launch.py", line 48, in <module>
    main()
  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/launch.py", line 44, in main
    start()
  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/modules/launch_utils.py", line 432, in start
    import webui
  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/webui.py", line 13, in <module>
    initialize.imports()
  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/modules/initialize.py", line 37, in imports
    from modules import processing, gradio_extensons, ui  # noqa: F401
  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/modules/processing.py", line 14, in <module>
    import cv2
  File "/opt/homebrew/lib/python3.10/site-packages/cv2/__init__.py", line 114, in <module>
    bootstrap()
  File "/opt/homebrew/lib/python3.10/site-packages/cv2/__init__.py", line 102, in bootstrap
    import cv2
ImportError: dlopen(/opt/homebrew/Cellar/opencv@3/3.4.16_10/lib/python3.10/site-packages/cv2/python-3.10/cv2.cpython-310-darwin.so, 0x0002): Library not loaded: /opt/homebrew/opt/ceres-solver/lib/libceres.3.dylib
  Referenced from: <6EC8100D-EEAF-3483-8D26-B054B51D9095> /opt/homebrew/Cellar/opencv@3/3.4.16_10/lib/libopencv_sfm.3.4.16.dylib
  Reason: tried: '/opt/homebrew/opt/ceres-solver/lib/libceres.3.dylib' (errno=62), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/ceres-solver/lib/libceres.3.dylib' (no such file), '/opt/homebrew/opt/ceres-solver/lib/libceres.3.dylib' (errno=62), '/opt/homebrew/Cellar/ceres-solver/2.2.0_1/lib/libceres.3.dylib' (errno=62), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/ceres-solver/2.2.0_1/lib/libceres.3.dylib' (no such file), '/opt/homebrew/Cellar/ceres-solver/2.2.0_1/lib/libceres.3.dylib' (errno=62)

 

And here are the messages when trying to run the visualiser from within ArchiCAD:

Last login: Sun Dec  3 15:38:21 on ttys000
Loading pyenv...
/Applications/Graphisoft/Archicad\ 27/sd.webui/run.sh ; exit;
tjszp@tjs-m1-pro ~ % /Applications/Graphisoft/Archicad\ 27/sd.webui/run.sh ; exit;
aaaawww --api --api-server-stop --listen --skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate aaaawwww

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################
################################################################
Running on tjszp user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################
################################################################
Create and activate python venv
################################################################
################################################################
Launching launch.py...
################################################################
Python 3.10.13 (main, Aug 24 2023, 12:59:26) [Clang 15.0.0 (clang-1500.0.40.1)]

Version: v1.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
Launching Web UI with arguments: --api --api-server-stop --listen --skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled
Traceback (most recent call last):
  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/launch.py", line 48, in <module>
    main()
  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/launch.py", line 44, in main
    start()
  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/modules/launch_utils.py", line 432, in start
    import webui
  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/webui.py", line 13, in <module>
    initialize.imports()
  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/modules/initialize.py", line 37, in imports
    from modules import processing, gradio_extensons, ui  # noqa: F401
  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/modules/processing.py", line 14, in <module>
    import cv2
  File "/opt/homebrew/lib/python3.10/site-packages/cv2/__init__.py", line 114, in <module>
    bootstrap()
  File "/opt/homebrew/lib/python3.10/site-packages/cv2/__init__.py", line 102, in bootstrap
    import cv2

ImportError: dlopen(/opt/homebrew/Cellar/opencv@3/3.4.16_10/lib/python3.10/site-packages/cv2/python-3.10/cv2.cpython-310-darwin.so, 0x0002): Library not loaded: /opt/homebrew/opt/ceres-solver/lib/libceres.3.dylib

  Referenced from: <6EC8100D-EEAF-3483-8D26-B054B51D9095> /opt/homebrew/Cellar/opencv@3/3.4.16_10/lib/libopencv_sfm.3.4.16.dylib

  Reason: tried: '/opt/homebrew/opt/ceres-solver/lib/libceres.3.dylib' (errno=62), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/ceres-solver/lib/libceres.3.dylib' (no such file), '/opt/homebrew/opt/ceres-solver/lib/libceres.3.dylib' (errno=62), '/opt/homebrew/Cellar/ceres-solver/2.2.0_1/lib/libceres.3.dylib' (errno=62), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/ceres-solver/2.2.0_1/lib/libceres.3.dylib' (no such file), '/opt/homebrew/Cellar/ceres-solver/2.2.0_1/lib/libceres.3.dylib' (errno=62)

Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]

 

I'm guessing it has something to do with the pyenv, but I don't know how to fix it. Do you?

 

Regards,

tj

 

9 REPLIES 9
Norbert Kucsma
Graphisoft
Graphisoft

Hi tjszp,

 

Thanks for the report.

 

I suspect that something went wrong during the installation, please try the installation again. Did you face any errors in the process?

Please send us the content of the whole Terminal window after the installation.

 

Can you start the Engine with the 'Start AI Engine' button?

 

Kind regards,

Norbert Kucsma

Technical Support Engineer

tjszp
Contributor

Hi Norbert,

and thanks for your reply.

I tried running the whole installation again - after trying to switch my pyenv to my 3.10 - and here is the terminal window:

"

Last login: Mon Dec  4 19:06:32 on ttys000

Loading pyenv...

tjszp@tjs-m1-pro ~ % which python

/Users/tjszp/.pyenv/shims/python

tjszp@tjs-m1-pro ~ % pyenv global system

tjszp@tjs-m1-pro ~ % which python       

/Users/tjszp/.pyenv/shims/python

tjszp@tjs-m1-pro ~ % python --version

Python 3.11.5

tjszp@tjs-m1-pro ~ % pyenv versions 

* system (set by /Users/tjszp/.pyenv/version)

  3.6.15

  3.8.18

  3.9.10

  3.10.13

  3.11.1

  3.11.3

tjszp@tjs-m1-pro ~ % pyenv global 3.10.13

tjszp@tjs-m1-pro ~ % pyenv versions      

  system

  3.6.15

  3.8.18

  3.9.10

* 3.10.13 (set by /Users/tjszp/.pyenv/version)

  3.11.1

  3.11.3

tjszp@tjs-m1-pro ~ % /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"                                

==> Checking for `sudo` access (which may request your password)...

Password:

==> This script will install:

/opt/homebrew/bin/brew

/opt/homebrew/share/doc/homebrew

/opt/homebrew/share/man/man1/brew.1

/opt/homebrew/share/zsh/site-functions/_brew

/opt/homebrew/etc/bash_completion.d/brew

/opt/homebrew



Press RETURN/ENTER to continue or any other key to abort:

==> /usr/bin/sudo /usr/sbin/chown -R tjszp:admin /opt/homebrew

==> Downloading and installing Homebrew...

remote: Enumerating objects: 103, done.

remote: Counting objects: 100% (103/103), done.

remote: Compressing objects: 100% (64/64), done.

remote: Total 103 (delta 46), reused 83 (delta 34), pack-reused 0

Receiving objects: 100% (103/103), 74.71 KiB | 1.78 MiB/s, done.

Resolving deltas: 100% (46/46), completed with 13 local objects.

From https://github.com/Homebrew/brew

   a60918206..df3a0c434  master     -> origin/master

HEAD is now at df3a0c434 Merge pull request #16279 from Homebrew/dependabot/bundler/Library/Homebrew/json-2.7.0

Updated 2 taps (homebrew/core and homebrew/cask).

==> Installation successful!



==> Homebrew has enabled anonymous aggregate formulae and cask analytics.

Read the analytics documentation (and how to opt-out) here:

  https://docs.brew.sh/Analytics

No analytics data has been sent yet (nor will any be during this install run).



==> Homebrew is run entirely by unpaid volunteers. Please consider donating:

  https://github.com/Homebrew/brew#donations



==> Next steps:

- Run brew help to get started

- Further documentation:

    https://docs.brew.sh



tjszp@tjs-m1-pro ~ % /opt/homebrew/bin/brew install cmake protobuf rust python@3.10 git wget

Warning: Treating cmake as a formula. For the cask, use homebrew/cask/cmake

Warning: cmake 3.27.9 is already installed and up-to-date.

To reinstall 3.27.9, run:

  brew reinstall cmake

Warning: protobuf 25.1 is already installed, it's just not linked.

To link this version, run:

  brew link protobuf

Warning: rust 1.74.0 is already installed and up-to-date.

To reinstall 1.74.0, run:

  brew reinstall rust

Warning: python@3.10 3.10.13_1 is already installed and up-to-date.

To reinstall 3.10.13_1, run:

  brew reinstall python@3.10

Warning: git 2.43.0 is already installed and up-to-date.

To reinstall 2.43.0, run:

  brew reinstall git

Warning: wget 1.21.4 is already installed and up-to-date.

To reinstall 1.21.4, run:

  brew reinstall wget

tjszp@tjs-m1-pro ~ % /Applications/Graphisoft/Archicad\ 27/sd.webui/run.sh 

aaaawww --api --api-server-stop --listen --skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate aaaawwww



################################################################

Install script for stable-diffusion + Web UI

Tested on Debian 11 (Bullseye)

################################################################



################################################################

Running on tjszp user

################################################################



################################################################

Repo already cloned, using it as install directory

################################################################



################################################################

Create and activate python venv

################################################################



################################################################

Launching launch.py...

################################################################

Python 3.10.13 (main, Aug 24 2023, 12:59:26) [Clang 15.0.0 (clang-1500.0.40.1)]

Version: v1.6.0

Commit hash: 5ef669de080814067961f28357256e8fe27544f4

Launching Web UI with arguments: --api --api-server-stop --listen --skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate

no module 'xformers'. Processing without...

no module 'xformers'. Processing without...

No module 'xformers'. Proceeding without it.

Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled

Traceback (most recent call last):

  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/launch.py", line 48, in <module>

    main()

  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/launch.py", line 44, in main

    start()

  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/modules/launch_utils.py", line 432, in start

    import webui

  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/webui.py", line 13, in <module>

    initialize.imports()

  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/modules/initialize.py", line 37, in imports

    from modules import processing, gradio_extensons, ui  # noqa: F401

  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/modules/processing.py", line 14, in <module>

    import cv2

  File "/opt/homebrew/lib/python3.10/site-packages/cv2/__init__.py", line 114, in <module>

    bootstrap()

  File "/opt/homebrew/lib/python3.10/site-packages/cv2/__init__.py", line 102, in bootstrap

    import cv2

ImportError: dlopen(/opt/homebrew/Cellar/opencv@3/3.4.16_10/lib/python3.10/site-packages/cv2/python-3.10/cv2.cpython-310-darwin.so, 0x0002): Library not loaded: /opt/homebrew/opt/ceres-solver/lib/libceres.3.dylib

  Referenced from: <6EC8100D-EEAF-3483-8D26-B054B51D9095> /opt/homebrew/Cellar/opencv@3/3.4.16_10/lib/libopencv_sfm.3.4.16.dylib

  Reason: tried: '/opt/homebrew/opt/ceres-solver/lib/libceres.3.dylib' (errno=62), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/ceres-solver/lib/libceres.3.dylib' (no such file), '/opt/homebrew/opt/ceres-solver/lib/libceres.3.dylib' (errno=62), '/opt/homebrew/Cellar/ceres-solver/2.2.0_1/lib/libceres.3.dylib' (errno=62), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/ceres-solver/2.2.0_1/lib/libceres.3.dylib' (no such file), '/opt/homebrew/Cellar/ceres-solver/2.2.0_1/lib/libceres.3.dylib' (errno=62)

tjszp@tjs-m1-pro ~ % "



When I tried starting the AI Engine from within ArchiCAD I got this terminal message:


"

Last login: Mon Dec  4 19:13:39 on ttys000

Loading pyenv...

/Applications/Graphisoft/Archicad\ 27/sd.webui/run.sh ; exit;

tjszp@tjs-m1-pro ~ % /Applications/Graphisoft/Archicad\ 27/sd.webui/run.sh ; exit;

aaaawww --api --api-server-stop --listen --skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate aaaawwww



################################################################

Install script for stable-diffusion + Web UI

Tested on Debian 11 (Bullseye)

################################################################



################################################################

Running on tjszp user

################################################################



################################################################

Repo already cloned, using it as install directory

################################################################



################################################################

Create and activate python venv

################################################################



################################################################

Launching launch.py...

################################################################

Python 3.10.13 (main, Aug 24 2023, 12:59:26) [Clang 15.0.0 (clang-1500.0.40.1)]

Version: v1.6.0

Commit hash: 5ef669de080814067961f28357256e8fe27544f4

Launching Web UI with arguments: --api --api-server-stop --listen --skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate

no module 'xformers'. Processing without...

no module 'xformers'. Processing without...

No module 'xformers'. Proceeding without it.

Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled

Traceback (most recent call last):

  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/launch.py", line 48, in <module>

    main()

  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/launch.py", line 44, in main

    start()

  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/modules/launch_utils.py", line 432, in start

    import webui

  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/webui.py", line 13, in <module>

    initialize.imports()

  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/modules/initialize.py", line 37, in imports

    from modules import processing, gradio_extensons, ui  # noqa: F401

  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/modules/processing.py", line 14, in <module>

    import cv2

  File "/opt/homebrew/lib/python3.10/site-packages/cv2/__init__.py", line 114, in <module>

    bootstrap()

  File "/opt/homebrew/lib/python3.10/site-packages/cv2/__init__.py", line 102, in bootstrap

    import cv2

ImportError: dlopen(/opt/homebrew/Cellar/opencv@3/3.4.16_10/lib/python3.10/site-packages/cv2/python-3.10/cv2.cpython-310-darwin.so, 0x0002): Library not loaded: /opt/homebrew/opt/ceres-solver/lib/libceres.3.dylib

  Referenced from: <6EC8100D-EEAF-3483-8D26-B054B51D9095> /opt/homebrew/Cellar/opencv@3/3.4.16_10/lib/libopencv_sfm.3.4.16.dylib

  Reason: tried: '/opt/homebrew/opt/ceres-solver/lib/libceres.3.dylib' (errno=62), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/ceres-solver/lib/libceres.3.dylib' (no such file), '/opt/homebrew/opt/ceres-solver/lib/libceres.3.dylib' (errno=62), '/opt/homebrew/Cellar/ceres-solver/2.2.0_1/lib/libceres.3.dylib' (errno=62), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/ceres-solver/2.2.0_1/lib/libceres.3.dylib' (no such file), '/opt/homebrew/Cellar/ceres-solver/2.2.0_1/lib/libceres.3.dylib' (errno=62)



Saving session...

...copying shared history...

...saving history...truncating history files...

...completed.



[Process completed]"

 

I think there is something wrong with the 'libceres.3.dylib' and the 'OpenCV'.

How do I fix this?

 

(I get an error message when posting saying that: Your post has been changed because invalid HTML was found in the message body. The invalid HTML has been removed. Please review the message and submit the message when you are satisfied. I don't know if that makes the message useless...)

 

Regards,

Tj

 

 

Hi Tj,

 

Thanks for the info.

 

Please try to uninstall the AI Add-on. Did you already have homebrew installed? If not then you can delete it with this command:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"

(note that if you had homebrew packages before, those will be deleted too) After that delete the sd.webui folder too.

 

Please try to install it again from scratch. If it still fails please contact your local support, we will need to investigate this. 

 

Thanks,

 

Norbert Kucsma

Technical Support Engineer

Hi Norbert,

Thanks again!

I already had homebrew installed as what I'm doing besides ArchiCAD is programming in Python - LLMs and stable diffusion, just learning. I guessed that the plugin has its own python environment, pyenv, is that correct? And maybe my different venvs are causing the trouble?
Is there a way to fix this without deleting home-brew and all my packages and venvs?

Is there a way to direct the installation to the right environment without deleting all the others?

 

Regards,

Tj

Hi Tj,

 

Community is not our official support channel and your issue seems complex. 

Please contact your local support so we can investigate this further.

 

Thanks,

Norbert Kucsma

Technical Support Engineer

Hi Norbert,

Thanks again for your answer!

 

Regards,

Tj

Hi Norbert,

I gave it a last try, deleted, restarted and installed again, and for a while I was hopefull, but then... as far as I can see its problems with opencv and libceres.3.dylib...

Last login: Wed Dec  6 21:51:37 on console
Loading pyenv...
tjszp@tjs-m1-pro ~ % which python
/Users/tjszp/.pyenv/shims/python
tjszp@tjs-m1-pro ~ % pyenv versions
  system
  3.6.15
  3.8.18
  3.9.10
* 3.10.13 (set by /Users/tjszp/.pyenv/version)
  3.11.1
  3.11.3
tjszp@tjs-m1-pro ~ % which pyenc
pyenc not found
tjszp@tjs-m1-pro ~ % which pyenv
/opt/homebrew/bin/pyenv
tjszp@tjs-m1-pro ~ % /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"                                
==> Checking for `sudo` access (which may request your password)...
Password:
==> This script will install:
/opt/homebrew/bin/brew
/opt/homebrew/share/doc/homebrew
/opt/homebrew/share/man/man1/brew.1
/opt/homebrew/share/zsh/site-functions/_brew
/opt/homebrew/etc/bash_completion.d/brew
/opt/homebrew

Press RETURN/ENTER to continue or any other key to abort:
==> /usr/bin/sudo /usr/sbin/chown -R tjszp:admin /opt/homebrew

==> Downloading and installing Homebrew...
remote: Enumerating objects: 110, done.
remote: Counting objects: 100% (110/110), done.
remote: Compressing objects: 100% (80/80), done.
remote: Total 110 (delta 35), reused 92 (delta 25), pack-reused 0
Receiving objects: 100% (110/110), 185.22 KiB | 3.04 MiB/s, done.
Resolving deltas: 100% (35/35), completed with 6 local objects.
From https://github.com/Homebrew/brew
   df3a0c434..08b78357a  master     -> origin/master
 * [new tag]             4.1.23     -> 4.1.23
 * [new tag]             4.1.24     -> 4.1.24
HEAD is now at 08b78357a Merge pull request #16302 from Homebrew/sponsors-maintainers-man-completions
==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:d783cbeb6e6ef0d71c0b442317b54554370decd6fac66bf2d4938c07a63f67be
######################################################################### 100.0%
==> Pouring portable-ruby-3.1.4.arm64_big_sur.bottle.tar.gz
Updated 2 taps (homebrew/core and homebrew/cask).
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics
No analytics data has been sent yet (nor will any be during this install run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations

==> Next steps:
- Run brew help to get started
- Further documentation:
    https://docs.brew.sh

tjszp@tjs-m1-pro ~ % 
tjszp@tjs-m1-pro ~ % /opt/homebrew/bin/brew install cmake protobuf rust python@3.10 git wget
Warning: Treating cmake as a formula. For the cask, use homebrew/cask/cmake
Warning: cmake 3.27.9 is already installed and up-to-date.
To reinstall 3.27.9, run:
  brew reinstall cmake
Warning: protobuf 25.1 is already installed, it's just not linked.
To link this version, run:
  brew link protobuf
Warning: rust 1.74.0 is already installed and up-to-date.
To reinstall 1.74.0, run:
  brew reinstall rust
Warning: python@3.10 3.10.13_1 is already installed and up-to-date.
To reinstall 3.10.13_1, run:
  brew reinstall python@3.10
Warning: git 2.43.0 is already installed and up-to-date.
To reinstall 2.43.0, run:
  brew reinstall git
Warning: wget 1.21.4 is already installed and up-to-date.
To reinstall 1.21.4, run:
  brew reinstall wget
tjszp@tjs-m1-pro ~ % /Applications/Graphisoft/Archicad\ 27/sd.webui/run.sh 
aaaawww --api --api-server-stop --listen --skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate aaaawwww

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on tjszp user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Python 3.10.13 (main, Aug 24 2023, 12:59:26) [Clang 15.0.0 (clang-1500.0.40.1)]
Version: v1.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
Cloning Stable Diffusion into /Applications/Graphisoft/Archicad 27/sd.webui/webui/repositories/stable-diffusion-stability-ai...
Cloning into '/Applications/Graphisoft/Archicad 27/sd.webui/webui/repositories/stable-diffusion-stability-ai'...
remote: Enumerating objects: 580, done.
remote: Counting objects: 100% (310/310), done.
remote: Compressing objects: 100% (94/94), done.
remote: Total 580 (delta 248), reused 218 (delta 216), pack-reused 270
Receiving objects: 100% (580/580), 73.43 MiB | 1.23 MiB/s, done.
Resolving deltas: 100% (280/280), done.
Cloning Stable Diffusion XL into /Applications/Graphisoft/Archicad 27/sd.webui/webui/repositories/generative-models...
Cloning into '/Applications/Graphisoft/Archicad 27/sd.webui/webui/repositories/generative-models'...
remote: Enumerating objects: 860, done.
remote: Counting objects: 100% (503/503), done.
remote: Compressing objects: 100% (231/231), done.
remote: Total 860 (delta 360), reused 311 (delta 268), pack-reused 357
Receiving objects: 100% (860/860), 42.67 MiB | 1.48 MiB/s, done.
Resolving deltas: 100% (436/436), done.
Cloning K-diffusion into /Applications/Graphisoft/Archicad 27/sd.webui/webui/repositories/k-diffusion...
Cloning into '/Applications/Graphisoft/Archicad 27/sd.webui/webui/repositories/k-diffusion'...
remote: Enumerating objects: 1323, done.
remote: Counting objects: 100% (605/605), done.
remote: Compressing objects: 100% (76/76), done.
remote: Total 1323 (delta 565), reused 535 (delta 529), pack-reused 718
Receiving objects: 100% (1323/1323), 237.11 KiB | 2.55 MiB/s, done.
Resolving deltas: 100% (928/928), done.
Cloning CodeFormer into /Applications/Graphisoft/Archicad 27/sd.webui/webui/repositories/CodeFormer...
Cloning into '/Applications/Graphisoft/Archicad 27/sd.webui/webui/repositories/CodeFormer'...
remote: Enumerating objects: 594, done.
remote: Counting objects: 100% (245/245), done.
remote: Compressing objects: 100% (88/88), done.
remote: Total 594 (delta 175), reused 173 (delta 157), pack-reused 349
Receiving objects: 100% (594/594), 17.31 MiB | 7.74 MiB/s, done.
Resolving deltas: 100% (286/286), done.
Cloning BLIP into /Applications/Graphisoft/Archicad 27/sd.webui/webui/repositories/BLIP...
Cloning into '/Applications/Graphisoft/Archicad 27/sd.webui/webui/repositories/BLIP'...
remote: Enumerating objects: 277, done.
remote: Counting objects: 100% (165/165), done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 277 (delta 137), reused 136 (delta 135), pack-reused 112
Receiving objects: 100% (277/277), 7.03 MiB | 14.82 MiB/s, done.
Resolving deltas: 100% (152/152), done.
Launching Web UI with arguments: --api --api-server-stop --listen --skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled
Traceback (most recent call last):
  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/launch.py", line 48, in <module>
    main()
  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/launch.py", line 44, in main
    start()
  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/modules/launch_utils.py", line 432, in start
    import webui
  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/webui.py", line 13, in <module>
    initialize.imports()
  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/modules/initialize.py", line 37, in imports
    from modules import processing, gradio_extensons, ui  # noqa: F401
  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/modules/processing.py", line 14, in <module>
    import cv2
  File "/opt/homebrew/lib/python3.10/site-packages/cv2/__init__.py", line 114, in <module>
    bootstrap()
  File "/opt/homebrew/lib/python3.10/site-packages/cv2/__init__.py", line 102, in bootstrap
    import cv2
ImportError: dlopen(/opt/homebrew/Cellar/opencv@3/3.4.16_10/lib/python3.10/site-packages/cv2/python-3.10/cv2.cpython-310-darwin.so, 0x0002): Library not loaded: /opt/homebrew/opt/ceres-solver/lib/libceres.3.dylib
  Referenced from: <6EC8100D-EEAF-3483-8D26-B054B51D9095> /opt/homebrew/Cellar/opencv@3/3.4.16_10/lib/libopencv_sfm.3.4.16.dylib
  Reason: tried: '/opt/homebrew/opt/ceres-solver/lib/libceres.3.dylib' (errno=62), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/ceres-solver/lib/libceres.3.dylib' (no such file), '/opt/homebrew/opt/ceres-solver/lib/libceres.3.dylib' (errno=62), '/opt/homebrew/Cellar/ceres-solver/2.2.0_1/lib/libceres.3.dylib' (errno=62), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/ceres-solver/2.2.0_1/lib/libceres.3.dylib' (no such file), '/opt/homebrew/Cellar/ceres-solver/2.2.0_1/lib/libceres.3.dylib' (errno=62)
tjszp@tjs-m1-pro ~ % 

Here is the startup screen from within AI visualiser:

tjszp_0-1701897458335.png

And then I get the same errors in the new terminal window:

Last login: Wed Dec  6 22:17:53 on ttys002
/Applications/Graphisoft/Archicad\ 27/sd.webui/run.sh ; exit;
Loading pyenv...
tjszp@tjs-m1-pro ~ % /Applications/Graphisoft/Archicad\ 27/sd.webui/run.sh ; exit;
aaaawww --api --api-server-stop --listen --skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate aaaawwww

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on tjszp user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Python 3.10.13 (main, Aug 24 2023, 12:59:26) [Clang 15.0.0 (clang-1500.0.40.1)]
Version: v1.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
Launching Web UI with arguments: --api --api-server-stop --listen --skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled
Traceback (most recent call last):
  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/launch.py", line 48, in <module>
    main()
  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/launch.py", line 44, in main
    start()
  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/modules/launch_utils.py", line 432, in start
    import webui
  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/webui.py", line 13, in <module>
    initialize.imports()
  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/modules/initialize.py", line 37, in imports
    from modules import processing, gradio_extensons, ui  # noqa: F401
  File "/Applications/Graphisoft/Archicad 27/sd.webui/webui/modules/processing.py", line 14, in <module>
    import cv2
  File "/opt/homebrew/lib/python3.10/site-packages/cv2/__init__.py", line 114, in <module>
    bootstrap()
  File "/opt/homebrew/lib/python3.10/site-packages/cv2/__init__.py", line 102, in bootstrap
    import cv2
ImportError: dlopen(/opt/homebrew/Cellar/opencv@3/3.4.16_10/lib/python3.10/site-packages/cv2/python-3.10/cv2.cpython-310-darwin.so, 0x0002): Library not loaded: /opt/homebrew/opt/ceres-solver/lib/libceres.3.dylib
  Referenced from: <6EC8100D-EEAF-3483-8D26-B054B51D9095> /opt/homebrew/Cellar/opencv@3/3.4.16_10/lib/libopencv_sfm.3.4.16.dylib
  Reason: tried: '/opt/homebrew/opt/ceres-solver/lib/libceres.3.dylib' (errno=62), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/ceres-solver/lib/libceres.3.dylib' (no such file), '/opt/homebrew/opt/ceres-solver/lib/libceres.3.dylib' (errno=62), '/opt/homebrew/Cellar/ceres-solver/2.2.0_1/lib/libceres.3.dylib' (errno=62), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/ceres-solver/2.2.0_1/lib/libceres.3.dylib' (no such file), '/opt/homebrew/Cellar/ceres-solver/2.2.0_1/lib/libceres.3.dylib' (errno=62)

Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

 

How do I make the plugin (and Archicad) use the right Python environment (I guess the brew command installes the missing libraries somewhere)?

 

Regards,

Tj

Hi Tj,

 

I see, thanks. I contacted our devs and we will investigate this issue, I will get back to you once we find a solution.

 

Thank you for your patience in advance.

Norbert Kucsma

Technical Support Engineer

Thank you Norbert!

I'm looking forward to hearing from you when you find the solution.

 

Regards,

Tj

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!