easydiffusion / easydiffusion

Easiest 1-click way to create beautiful artwork on your PC using AI, with no tech knowledge. Provides a browser UI for generating images from text prompts and images. Just enter your text prompt, and see the generated image.
https://easydiffusion.github.io/
Other
9.5k stars 784 forks source link

Null bytes in Easy Diffusion. #1462

Open Jevgeni6067 opened 1 year ago

Jevgeni6067 commented 1 year ago

Describe the bug When installing Easy Diffusion, such an inscription appeared: ValueError: source code string cannot contain null bytes What to do with it?

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. Install dir: D:\EasyDiffusion\ C:\Program Files\Git\cmd\git.exe git version 2.41.0.windows.3 D:\EasyDiffusion\installer_files\env\Library\bin\conda.bat D:\EasyDiffusion\installer_files\env\Scripts\conda.exe conda 22.11.1

"Easy Diffusion - v2"

"Easy Diffusion's git repository was already installed. Updating from main.." HEAD is now at 710208f3 Update README.md Already on 'main' Your branch is up to date with 'origin/main'. remote: Enumerating objects: 240, done. Receiving objects: 100% (119/119), 20.9 remote: Counting objects: 100% (197/197), done. remote: Compressing objects: 100% (73/73), done. remote: Total 119 (delta 84), reused 74 (delta 42), pack-reused 0 Resolving deltas: 100% (84/84), completed with 25 local objects. From https://github.com/cmdr2/stable-diffusion-ui 710208f3..851aa7aa main -> origin/main 6a95c602..d47816e7 beta -> origin/beta

"Easy Diffusion installation complete! Starting the server!"

PYTHONPATH=D:\EasyDiffusion\installer_files\env\lib\site-packages D:\EasyDiffusion\installer_files\env\python.exe C:\Users\Evgeniy\AppData\Local\Programs\Python\Python310\python.exe C:\Users\Evgeniy\AppData\Local\Microsoft\WindowsApps\python.exe Python 3.8.5 Traceback (most recent call last): File "D:\EasyDiffusion\installer_files\env\lib\runpy.py", line 185, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "D:\EasyDiffusion\installer_files\env\lib\runpy.py", line 144, in _get_module_details return _get_module_details(pkg_main_name, error) File "D:\EasyDiffusion\installer_files\env\lib\runpy.py", line 111, in _get_module_details import(pkg_name) File "D:\EasyDiffusion\installer_files\env\lib\site-packages\uvicorn__init__.py", line 1, in from uvicorn.config import Config ValueError: source code string cannot contain null bytes

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

cmdr2 commented 1 year ago

Hi, sorry for the delay. Can you please restart Easy Diffusion and try again?