AlizerUncaged / desktop-waifu

Desktop Waifu!
323 stars 48 forks source link

FOR WHOEVER GOT "PYTHON ERROR, NO MODULES FOUND ERROR", PLEASE READ THIS (ESPECIALLY IF YOU JUST STARTED LIKE LITERALLY NOW) #229

Open SaikoYuuji opened 7 months ago

SaikoYuuji commented 7 months ago

So if you're not knowing... i did downloaded Python 3.12 (the latest version)... and at first, i got "no python found error" so i just copy my python 3.12 which had been installed MONTHS AGO AFTER make a new folder called "3.10".. it did fixed but it also make n new issue which is "no module found error" aka "pip subprocess to install build dependencies did not run successfully"

I found the QUICKEST SOLUTION FOR YOU... JUST DOWNLOAD PYTHON 3.10 (there are 11 variant/version for 3.10.... just download whatever you want AS LONG AS IT IS PYTHON 3.10)... it legit FIXED!!!! and now i'm downloading voicevox (NOT FROM WEBSITE... FROM START.BAT) as i did not get that far.... so developer/maker... please tell everyone who is beginner to make sure download/install python 3.10 as the requirement

ZhiVT commented 7 months ago

I tried your method and surprisingly I got past the missing modules. However I ran into another error.

03dd9745e4d8f5bf0782398fdf0339ee

Did you also run into this? If yes, how did you fix it?

SaikoYuuji commented 7 months ago

@ZhiVT for your question, i did not run into this BUT... let me ask you, did you make sure that you set the setting correct.. by that, i mean in "example.env" as it does say something about "env" and i can only think of that as BEFORE THAT LINE, it does related to that file.. so yeah.. you might gonna need to check your "example.env" or ".env"

if you're asking how i think about that... it is because i look back at "runner.rpy" with using IDLE that came up with Python and searching on that SPECIFIC line (line 15 as what it say on your image).. it say this

If user didn't rename example.env

if os.path.exists("example.env") and not os.path.exists(".env"): os.rename("example.env", ".env")

Load settings from .env file

with open('.env') as f: for line in f: line = line.strip() if not line or line.startswith("#"): continue key, value = line.split('=', 1) THIS IS LINE 15 THAT YOU'RE LOOKING FOR os.environ[key] = value

so based on this, i can only think about your setting on "example.env" that you have

Jackkind2023 commented 7 months ago

no no no 'No modules found error' issue is they need python package you can see for example 'No modules found error "pyaudio"' you can download at command prompt "pip install pyaudio or you using python version 3.10 you can use pip3 install pyaudio"

SaikoYuuji commented 6 months ago

@Jackkind2023 uhh i'm not talking about "just pyaudio"... well yeah i already did that but after that... there are like 20s of no modules found error with different modules each.... so it need specific python version to download it automatically rather than download it manually for every single modules so yeah.. that's the way to fix it quicker and easier.. not to mention.. it also need specific python to make it work.. just like mine... after i first download it like pyaudio, afterward.. like i said, i also need to install EVERY SINGLE MODULES MANUALLY and i did but afterwards.. i got another issue.. when think about it... the version of modules that i download is for python 3.12... by that i mean.. i had about 3 python in which i got python 3.10, 3.11 and 3.12 so it really mess me up.. so in the end.. i just reinstall it using 3.10 as for some reason, they cannot detect 3.11 and 3.12 so yeah that's it.. sorry i'm not really english speaker

red085 commented 3 weeks ago

yo i had this problem and i literally dont know anything about this and my english is bad so i cant really understand what you guys saying but i try if you guys help me with this

Traceback (most recent call last): File "E:\ai gf\desktop-waifu-master\waifu\Src\runner.py", line 1, in from colorama import * ModuleNotFoundError: No module named 'colorama' Press any key to continue . . .

SaikoYuuji commented 3 weeks ago

Basically... Every single version of Python has its own plugin/modules (specifically its version including coding) and if you're trying to use newer/older python than what it used to.. you basically need to either manual download (specifically colorama module into your Python before you tried to open the file but it could possibly failed at the end) so when that happens, you need to simply to use other version of Python that works for this code and then it will automatically download it for you as the rest of it.. it will do on its own so you had to be really patient..

Edit: or if you are talented enough or at least you had learnt about programing.. you can switch the code into its ideal condition to work on your Python