Retrieval-based-Voice-Conversion-WebUI icon indicating copy to clipboard operation
Retrieval-based-Voice-Conversion-WebUI copied to clipboard

Cannot open.venv/bin/activate : No such file

Open maepopi opened this issue 1 year ago • 10 comments

Hey there,

I'm a bit confused by the installation process on Linux. I'm using conda, as advised in the readme, but when I type "sh ./run.sh" in the cloned repo, I have this message :

Activate venv...
./run.sh: 11: .: cannot open .venv/bin/activate: No such file

I've gone and see into the ".venv" folder, and indeed there are no scripts in the activate folder. I'm not very familiar with python Venv's, so I don't understand what I'm supposed to do to configure it and then run the sh command.

Can someone help? Thanks!

maepopi avatar May 18 '24 09:05 maepopi

If you're using conda, then you should not use the run.sh directly but run pip install and then launch the infer-web.py manually.

fumiama avatar May 26 '24 06:05 fumiama

If you're using conda, then you should not use the run.sh directly but run pip install and then launch the infer-web.py manually.

Have a similar issue as @maepopi

when i run pip install: ERROR: You must give at least one requirement to install (see "pip help install")

So my guess is you meant the pip install torch torchvision torchaudio ? I did install this, but can't manually launch infer-web.py.

❯ python3 infer-web.py
Traceback (most recent call last):
  File "/Retrieval-based-Voice-Conversion-WebUI-main/infer-web.py", line 3, in <module>
    from dotenv import load_dotenv
ModuleNotFoundError: No module named 'dotenv'

So I'm still missing some module(s).

I did all the other steps and am completely stuck here. Assistance is highly appreciated

flowen avatar Aug 23 '24 11:08 flowen

If you're using conda, then you should not use the run.sh directly but run pip install and then launch the infer-web.py manually.

Hey @fumiama, @flowen,

Thank you for your answers and sorry for the delay, I didn't see your messages. Indeed I could launch it manually, I forgot to close my post here.

Flowen, what did you do exactly? Can you run us through your whole installation process? I'll make a fresh environment and try to reproduce your problem if I can help

maepopi avatar Aug 23 '24 13:08 maepopi

No module named 'dotenv'

The file requirements.txt contains the whole depends you need. Also, the package dotenv has been dropped in the latest main branch. Please update the code to the newest commit.

fumiama avatar Aug 23 '24 16:08 fumiama

ugghh too much to describe tbh..

went through whole processes of reinstalling python.. pyenv, etc etc etc

just to now discover that I downloaded a folder called Retrieval-based-Voice-Conversion-WebUI-main

I think I downloaded the zip from the git instead of cloning locally

so I just cloned locally and sh ./run.sh now works... but I already installed it using pinokio

flowen avatar Aug 23 '24 19:08 flowen

Ah yes that certainly explains it!

maepopi avatar Aug 23 '24 19:08 maepopi

what was the issue exactly? was downloading the zip the mistake I made?

flowen avatar Aug 23 '24 20:08 flowen

Mmh, at second glance I'm not sure. I thought the ZIP was sort of a "quick" way to launch the program for example for Windows but it's really just the repo in zip Have you seen this message by fumiama?

The file requirements.txt contains the whole depends you need. Also, the package dotenv has been dropped in the latest main branch. Please update the code to the newest commit.

As you've recloned locally I would guess that is what solved your problem

maepopi avatar Aug 23 '24 20:08 maepopi

I downloaded it today.. so don't think thats the issue

flowen avatar Aug 23 '24 20:08 flowen

Mmmmh....Wouldn't Pinokio be messing stuff around? I had to uninstall it on Windows because it was messing up my environment paths. That's far fetched though

maepopi avatar Aug 23 '24 21:08 maepopi