Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'basicsr.version' #84

Open
ArtemChirakhov opened this issue Dec 19, 2022 · 3 comments
Open

ModuleNotFoundError: No module named 'basicsr.version' #84

ArtemChirakhov opened this issue Dec 19, 2022 · 3 comments

Comments

@ArtemChirakhov
Copy link

While trying to run the web-user.bat in stable diffusion i get this:

Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: AUTOMATIC1111/stable-diffusion-webui@685f963
Installing requirements for Web UI
Launching Web UI with arguments:
Traceback (most recent call last):
File "C:\Users\XXX\PycharmProjects\stable-diffusion-webui\launch.py", line 295, in
start()
File "C:\Users\XXX\PycharmProjects\stable-diffusion-webui\launch.py", line 286, in start
import webui
File "C:\Users\XXX\PycharmProjects\stable-diffusion-webui\webui.py", line 11, in
from modules.call_queue import wrap_queued_call, queue_lock, wrap_gradio_gpu_call
File "C:\Users\achir\PycharmProjects\stable-diffusion-webui\modules\call_queue.py", line 7, in
from modules import shared
File "C:\Users\XXX\PycharmProjects\stable-diffusion-webui\modules\shared.py", line 12, in
import modules.interrogate
File "C:\Users\XXX\PycharmProjects\stable-diffusion-webui\modules\interrogate.py", line 13, in
from modules import devices, paths, lowvram, modelloader
File "C:\Users\XXX\PycharmProjects\stable-diffusion-webui\modules\modelloader.py", line 7, in
from basicsr.utils.download_util import load_file_from_url
File "C:\Users\XXX\PycharmProjects\stable-diffusion-webui\repositories\CodeFormer\basicsr_init_.py", line 11, in
from .version import gitsha, version
ModuleNotFoundError: No module named 'basicsr.version'

someone answered to my issue and said i should post here an issue here because "This is a codeformer issue not a SD webui issue."

@sczhou
Copy link
Owner

sczhou commented Dec 22, 2022

Hi, CodeFormer doesn't have this issue, you may check if you install the basicsr successfully
https://github.com/sczhou/CodeFormer#dependencies-and-installation
python basicsr/setup.py develop

@ingale726
Copy link

Hi, CodeFormer doesn't have this issue, you may check if you install the basicsr successfully https://github.com/sczhou/CodeFormer#dependencies-and-installation python basicsr/setup.py develop

See here I know the reason, you rewrite this library, and write in the description, but this way in other projects rarely, so that many people here do not understand, the correct approach is to uninstall the basicsr library, and install the library you rewrite?

@YABIJIU
Copy link

YABIJIU commented Oct 14, 2023

正确安装basicsr之后,在你的codeformer项目里面会有两个basicsr的文件夹,一个在codeformer文件夹目录下,还有一个在..、CodeFormer-master\venv\Lib\site-packages下,在第二个basicsr中找到version.py文件,复制,然后粘贴到第一个basicsr文件夹里面,问题就解决了,就是缺个version.py的文件而已。我是个菜鸟,不懂这个开源项目为啥会自己创建个basicsr,并且少了一个重要的文件。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants