wAIfu-DEV / w-AI-fu

Talk with or stream using an AI Vtuber [REQUIRES NOVELAI] blazing fast 🔥 READ THE README
GNU General Public License v3.0
126 stars 9 forks source link

no such file or directory, open './devices/devices.json' #18

Closed Linuxfy closed 1 year ago

Linuxfy commented 1 year ago

How to fix this error?

w-AI-fu 1.2.2 Loading config informations ... Loading character "Hilda" ... Loading filter ... Getting audio devices ... node:fs:601 handleErrorFromBinding(ctx); ^

Error: ENOENT: no such file or directory, open './devices/devices.json' at Object.openSync (node:fs:601:3) at Object.readFileSync (node:fs:469:35) at getDevices (C:\Users\LINUXFY\Downloads\w-AI-fu main\w-AI-fu\app.js:1197:21) at init (C:\Users\LINUXFY\Downloads\w-AI-fu main\w-AI-fu\app.js:356:5) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async main (C:\Users\LINUXFY\Downloads\w-AI-fu main\w-AI-fu\app.js:258:5) { errno: -4058, syscall: 'open', code: 'ENOENT', path: './devices/devices.json' }

Node.js v18.16.0 Press any key to continue . . .

wAIfu-DEV commented 1 year ago

Hey, you might not have seen the response to your comment so here: "Can you try running the python script at: 'w-AI-fu\devices\audio_devices.py' ? It's the script responsible for generating './devices/devices.json' so if it didn't work it should give you an error."

Some reasons why this issue might be happening:

Best way to now for sure is to run the script to know if it errors or not

Linuxfy commented 1 year ago

i run 'w-AI-fu\devices\audio_devices.py' and devices.json appear then i run Run w-AI-fu.shortcut got same error "./devices/devices.json" is now missing from "w-AI-fu\devices" folder.

i run Python 3.10 and Node.js v18.16.

wAIfu-DEV commented 1 year ago

I managed to replicate the issue by removing the system environment variables for Python. The fastest way to solve this is to reinstall Python with "Add Python 3.10 to PATH" ticked.

wAIfu-DEV commented 1 year ago

Did it solve your issue?

wAIfu-DEV commented 1 year ago

I added a more detailed error message for this case: "Critical Error: Could not create a Python child process. This may be due to a missing Python installation, or a missing PATH system environment variable; Either can be fixed by (re)installing Python with the "Add Python 3.10 to PATH" enabled."

Please reopen the issue if it didn't solve it for you.

Linuxfy commented 1 year ago

yes it work. thanks you