Open GameMelvin opened 6 hours ago
Try adding PAUSE at the end of start_windows.bat and run again.
so like this:
@echo off
REM Start GLaDOS
call .\venv\Scripts\activate
python glados.py
PAUSE
Traceback (most recent call last):
File "C:\Users\gamem\Desktop\GlaDOS-main\glados.py", line 21, in
This is the error I get
Did you install using install_windows.bat? (I'm no expert in this, but I'll try to help.)
Yes, I used the install_windows.bat.
Can you confirm that submodules\whisper.cpp and llama.cpp folders exist? In the Glados folder?
Yes. both exist in the folder
Could you remove them and rerun the installer?
I mean this:
echo Downloading Llama...
curl -L "https://github.com/ggerganov/llama.cpp/releases/download/b3266/cudart-llama-bin-win-cu12.2.0-x64.zip" --output "cudart-llama-bin-win-cu12.2.0-x64.zip"
curl -L "https://github.com/ggerganov/llama.cpp/releases/download/b3266/llama-b3266-bin-win-cuda-cu12.2.0-x64.zip" --output "llama-bin-win-cuda-cu12.2.0-x64.zip"
echo Unzipping Llama...
tar -xf cudart-llama-bin-win-cu12.2.0-x64.zip -C submodules\llama.cpp
tar -xf llama-bin-win-cuda-cu12.2.0-x64.zip -C submodules\llama.cpp
echo Downloading Whisper...
curl -L "https://github.com/ggerganov/whisper.cpp/releases/download/v1.6.0/whisper-cublas-12.2.0-bin-x64.zip" --output "whisper-cublas-12.2.0-bin-x64.zip"
echo Unzipping Whisper...
tar -xf whisper-cublas-12.2.0-bin-x64.zip -C submodules\whisper.cpp
echo Cleaning up...
del whisper-cublas-12.2.0-bin-x64.zip
del cudart-llama-bin-win-cu12.2.0-x64.zip
del llama-bin-win-cuda-cu12.2.0-x64.zip
Still gives the same error.
IS python 3.12 installed and does it show up like this in cmd?
C:\Users\xxx>python -V
Python 3.12.6 (should be 3.12.x)
and if it doesn't show like this try this command:
C:\Users\xxx>python3.12
Python 3.12.6 (tags/v3.12.6:a4a2d2b, Sep 6 2024, 20:11:23) [MSC v.1940 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
if it works it should be alright. No need to worry about "C:\Users\xxx>python -V"
attempt 2:
run this as a bat file
@echo off
:: Downloading Whisper
echo Downloading Whisper...
curl -L "https://github.com/ggerganov/whisper.cpp/releases/download/v1.6.0/whisper-cublas-12.2.0-bin-x64.zip" --output "whisper-cublas-12.2.0-bin-x64.zip"
:: Creating submodules directory for Whisper
echo Creating submodules directory for Whisper...
mkdir submodules\whisper.cpp
:: Unzipping Whisper using PowerShell with overwrite
echo Unzipping Whisper using PowerShell...
powershell -Command "Expand-Archive -Path 'whisper-cublas-12.2.0-bin-x64.zip' -DestinationPath 'submodules\whisper.cpp' -Force"
:: Cleaning up Whisper zip file
echo Cleaning up...
del whisper-cublas-12.2.0-bin-x64.zip
:: Downloading Llama
echo Downloading Llama...
curl -L "https://github.com/ggerganov/llama.cpp/releases/download/b3266/cudart-llama-bin-win-cu12.2.0-x64.zip" --output "cudart-llama-bin-win-cu12.2.0-x64.zip"
curl -L "https://github.com/ggerganov/llama.cpp/releases/download/b3266/llama-b3266-bin-win-cuda-cu12.2.0-x64.zip" --output "llama-b3266-bin-win-cuda-cu12.2.0-x64.zip"
:: Creating submodules directory for Llama
echo Creating submodules directory for Llama...
mkdir submodules\llama.cpp
:: Unzipping Llama using PowerShell with overwrite
echo Unzipping Llama using PowerShell...
powershell -Command "Expand-Archive -Path 'cudart-llama-bin-win-cu12.2.0-x64.zip' -DestinationPath 'submodules\llama.cpp' -Force"
powershell -Command "Expand-Archive -Path 'llama-b3266-bin-win-cuda-cu12.2.0-x64.zip' -DestinationPath 'submodules\llama.cpp' -Force"
:: Cleaning up Llama zip files
echo Cleaning up...
del cudart-llama-bin-win-cu12.2.0-x64.zip
del llama-b3266-bin-win-cuda-cu12.2.0-x64.zip
echo Done!
if that doesn't work then... I don't know. Maybe the path in the following is wrong? GlaDOS\glados\whisper_cpp_wrapper.py on line 858
"add_library_search_dirs(['./submodules/whisper.cpp/']) # add the path to the whisper.cpp submodule
# Begin libraries
_libs["whisper"] = load_library("whisper")"
You could change it to r"C:/Users/gamem/Desktop/GlaDOS-main/submodules/whisper.cpp/"
like this.
That's all I can think of... Sorry if it doesn't help.
Traceback (most recent call last):
File "C:\Users\gamem\Desktop\GlaDOS-main\glados.py", line 21, in
I did the last thing by changing the code and this is the new error I get.
It's the same, no idea. Sorry.
Hi, the install goes as it should but as soon as I use the start file it opens CMD for a second before closing again and not starting anything.