BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

Archicad AI Visualizer
Discussions about Archicad AI Visualizer.

ERROR: python3-venv is not installed, aborting

Sindre
Contributor

After dragging run.sh it to the Terminal window and hit Enter, this message shows up in HomeBrew / Terminal.

 

I have moved the AI Visualizer folder from Add-ons into Archicad 27 folder > Add-ons > Extra.

And i have moved the sd.webui folder into Archicad 27 folder.

 

Skjermbilde 2023-11-17 kl. 22.02.39.png

 

54 REPLIES 54
Fegoalbe
Participant

I found a possible solution: 

 

after the installing process you must edit the file "webui-user.sh" replacing the line: 

 

 

# python3 executable
python_cmd="/opt/homebrew/bin/python3.10"

 

 

with this one:

 

 

# python3 executable
#python_cmd="python3"

 

 

Also it's necessary to configure the memory limit editing the "run.sh"  in this way:

 

 

export PARENT_SCRIPT="run"

# Directory containing webui.sh
webui_directory="./webui"

# Define the path to the webui.sh script.
WEBUI_SCRIPT="webui.sh"

(
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd "$SCRIPT_DIR"

# Check if the webui.sh script exists.
if [ -f "$webui_directory/$WEBUI_SCRIPT" ]
then
# Change CWD to the webui_directory if exist else exit.
cd "$webui_directory" || exit 1

# Set the PYTORCH_MPS_HIGH_WATERMARK_RATIO environment variable
export PYTORCH_MPS_HIGH_WATERMARK_RATIO=0.0

# Start the webui.sh script with the specified parameters.
./"$WEBUI_SCRIPT" --no-half

else
echo "Error: webui.sh not found in the '$webui_directory' subfolder."
exit 1
fi
)

 

 

I'm copying the files, and you can test this solution; it's not optimal as this AI solver works mainly with the CPU if you don't have an NVIDIA GPU. Hopefully, with newer Metal SD versions, they are going to give us better Intel MAC versions (actually ComfyUI works with Metal). Use this fixed version with 512x512 pixels as larger resolutions give errors because of Lack of Memory issues.

 

Replace run.sh from /sd.webui directory and also replace webui-user.sh from //sd.webui/webui directory 

 

archi 1.png

 

Screenshot 2024-02-07 at 16.58.05.png

  

Dear Norbert Kucsma

 

Today, I just enabled some fixes for IntelMAC-based computers, basically editing some parameters inside the following files: run.sh and webui-user.sh, and I have some results, as you can see in the attached images.

 

I'm also attaching the modified files if you want to take a look at them.

 

All the best 

 

Alberto Fernandez

Screenshot 2024-02-07 at 18.22.52.png

Screenshot 2024-02-07 at 16.58.05.png

Hi Fegoalbe,

 

Thanks for the terrific job and the workaround!

 

Let me contact our developers and product management with your findings. We will discuss your solution and will get back to you soon.

 

Kind regards,

Norbert Kucsma

Technical Support Engineer

I have tried your idea of fixing the Intel Problem but sadly it didnt work. Maybe you have another solution or an idea if i did something wrong?

Bildschirmfoto 2024-02-12 um 17.03.41.png

Norbert Kucsma
Graphisoft
Graphisoft

Hi Fegoalbe,

 

We are happy to see that the AI ​​Visualizer has stimulated the imagination of our interested parties in all areas, and attempts are being made that go beyond the limits of the official release. At the same time, we would like to emphasize that we recommend using the current version of AI Visualizer only in an environment that meets the official hardware requirements.

 

Feel free to keep experimenting, but we do not troubleshoot custom installations.

 

Kind regards,

Norbert Kucsma

Technical Support Engineer

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!