[GH-ISSUE #1237] TypeError: expected str, bytes or os.PathLike object, not NoneType #805

Closed
opened 2026-10-20 10:03:13 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @r4m71n on GitHub (Sep 12, 2023).
Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/1237

File "C:\Users\Fadak\Desktop\voice\Retrieval-based-Voice-Conversion-WebUI-main\infer-web.py", line 138, in
for root, dirs, files in os.walk(index_root, topdown=False):
File "C:\Program Files\Python39\lib\os.py", line 342, in walk
return _walk(fspath(top), topdown, onerror, followlinks)
TypeError: expected str, bytes or os.PathLike object, not NoneType

app could not recognized my gpu so as I saw in issues, i reinstalled pytorch and now it can recognize my gpu, but the app cant run succesfuly.

Originally created by @r4m71n on GitHub (Sep 12, 2023). Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/1237 File "C:\Users\Fadak\Desktop\voice\Retrieval-based-Voice-Conversion-WebUI-main\infer-web.py", line 138, in <module> for root, dirs, files in os.walk(index_root, topdown=False): File "C:\Program Files\Python39\lib\os.py", line 342, in walk return _walk(fspath(top), topdown, onerror, followlinks) TypeError: expected str, bytes or os.PathLike object, not NoneType app could not recognized my gpu so as I saw in issues, i reinstalled pytorch and now it can recognize my gpu, but the app cant run succesfuly.
Author
Owner

@ghost commented on GitHub (Sep 14, 2023):

It seems that the program cannot find the index_root directory, which is assigned by index_root = os.getenv("index_root"), and the index_root in the .env file refer to the ./logs directory. Please check your ./logs directory exists under the project root directory.

<!-- gh-comment-id:1718708851 --> @ghost commented on GitHub (Sep 14, 2023): It seems that the program cannot find the index_root directory, which is assigned by `index_root = os.getenv("index_root")`, and the index_root in the .env file refer to the `./logs` directory. Please check your `./logs` directory exists under the project root directory.
Author
Owner

@r4m71n commented on GitHub (Sep 14, 2023):

Thank you for your help. I reinstalled the project and it works well

<!-- gh-comment-id:1718924766 --> @r4m71n commented on GitHub (Sep 14, 2023): Thank you for your help. I reinstalled the project and it works well
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
RVC-Project/Retrieval-based-Voice-Conversion-WebUI#805
No description provided.