Error in ./scripts/Setup.py
Describe the bug
I'm learning game engine dev and tried to take a look at Hazel. I clone the repository and all the submodules. I followed the Getting started section in the README.md. By the way I'm using Visual Studio 2022 Community. But when running Setup.py from Setup.bat there is an error in the file:
To Reproduce
Steps to reproduce the behavior:
-
git clone --recursive https://github.com/TheCherno/Hazel - Run
Setup.batlocated in./scripts - Now the error should be seen.
Expected behavior
Generate project files for the engine.
Operating system: (please complete the following information)
- OS: win-64
- Version: Windows 11 home
Do you have git installed on your PC and added to the PATH on Windows? Also, in case you have git installed, did you use "git clone --recursive https://github.com/TheCherno/Hazel" command or you cloned the repository non-recursively and used "git submodule update --init" for the submodule updates?
If you clone the repository recursively with the first command you should be able to run "Setup.bat" not "Setup.py" and the script should do its job (installing all of the other things needed for the project).
Thats exactly what i have done.
Thats exactly what i have done.
You might have to update your python version to at least 3.12.3! That's at least the version i'm using for my own engine with Hazel's code, and that works for me
Plus you need to have both git + python in your PATH on windows, it's not enough with either one of them! And the python 3.12.3 i'm using is the 64-bit version, i cannot say the 86x bit version will work with Hazel... Lastly, if you have a pretty old version of git, you might want to consider updating it... it can't hurt to do so at least
That does not help
That does not help
Hmm, then i only have one question... What type of GPU do you currently have? Is it Intel integrated GPU, is it an Nvidia or is it an AMD GPU, cause the latter does not work very well for everybody...
Okay so i have reset my laptop (Ryzen 7 6800H, RTC 3070 Laptop) and now i found out that the problem was that git was added not added to path because that i was using Git Bash. Now i get a diffrent error. It says something like i have a problem with diffrent architectures. I cannot show a screenshot right now because i am out shopping but maybe in a 2-5 hours i can show a screenshot. (I am on my phone)
So it is because that the vulkan installer is a 16-bit application.
So it is because that the vulkan installer is a 16-bit application.
Windows hasn't been 16-bit for about 40 years at this point. We're talking early to mid 80s during Windows 1.0 era. This sounds like an issue with your Windows installation if anything for it to treat executables made for 64-bit as if they're 16-bit. Especially considering Vulkan wasn't a thing until 2016 which is a time where even 32-bit started to become obsolete (which is even more the case nowadays).
I'm not sure what you can do to fix it other than formatting your drive, maybe someone else here have a better suggestion. Trying your steps though it runs fine for me.
I found out that my Vulkan installation was corrupt and now it works. But it is still weird how Python/Windows said it was a 16-bit application. Thanks for the help :)
I found out that my Vulkan installation was corrupt and now it works. But it is still weird how Python/Windows said it was a 16-bit application. Thanks for the help :)
This is because the vulkanInstallURL in SetupVulkan.py is incorrect, which causes problems with the downloaded vulkanSDK.
I found out that my Vulkan installation was corrupt and now it works. But it is still weird how Python/Windows said it was a 16-bit application. Thanks for the help :)
This is because the vulkanInstallURL in SetupVulkan.py is incorrect, which causes problems with the downloaded vulkanSDK.
It was right back then.