sd_civitai_extension: ERROR: Cannot install launch==0.1.0, launch==0.1.1, launch==0.1.2 and launch==0.1.3 because these package versions have conflicting dependencies.

  1. python install.py

Traceback (most recent call last): File "/root/soft/sd_civitai_extension/install.py", line 7, in <module> from launch import run ModuleNotFoundError: No module named 'launch'

  1. pip install launch
(py310) root@ubuntu20:~/soft/sd_civitai_extension# python install.py
Traceback (most recent call last):
  File "/root/soft/sd_civitai_extension/install.py", line 7, in <module>
    from launch import run
ModuleNotFoundError: No module named 'launch'
(py310) root@ubuntu20:~/soft/sd_civitai_extension# pip install launch
Looking in indexes: http://mirrors.cloud.aliyuncs.com/pypi/simple/
Collecting launch
  Using cached http://mirrors.cloud.aliyuncs.com/pypi/packages/a9/c1/793768c803a25e2e101ed88fe3979f17d4d67d160aedb3c3bd143653f068/launch-0.1.3.tar.gz (10 kB)
  Preparing metadata (setup.py) ... done
  Using cached http://mirrors.cloud.aliyuncs.com/pypi/packages/4a/cd/ba5ade0b40ce222d49d25aa22c6741e5de4a3ce89a5d7db507c749144137/launch-0.1.2.tar.gz (10 kB)
  Preparing metadata (setup.py) ... done
  Using cached http://mirrors.cloud.aliyuncs.com/pypi/packages/02/ea/f08cc7605f62868c5bc8ba7d64a7292ea58739696f0d8016a264daeca186/launch-0.1.1.tar.gz (10 kB)
  Preparing metadata (setup.py) ... done
  Using cached http://mirrors.cloud.aliyuncs.com/pypi/packages/b0/ef/1b1bca20ef3a088dd6475d9733ef58fcc4db2ab34a19003063d931dc9a28/launch-0.1.0.tar.gz (7.2 kB)
  Preparing metadata (setup.py) ... done
ERROR: Cannot install launch==0.1.0, launch==0.1.1, launch==0.1.2 and launch==0.1.3 because these package versions have conflicting dependencies.

The conflict is caused by:
    launch 0.1.3 depends on flowdas-meta<1.1 and >=1.0.1
    launch 0.1.2 depends on flowdas-meta<1.1 and >=1.0.1
    launch 0.1.1 depends on flowdas-meta<1.1 and >=1.0.1
    launch 0.1.0 depends on flowdas-meta<1.1 and >=1.0.1

To fix this you could try to:
1. loosen the range of package versions you've specified
3. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

system info: ubuntu 20.04 python 3.10 pip 22.3.1

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Reactions: 5
  • Comments: 18

Most upvoted comments

modify you install.py insert sys.path.append(‘…/YOUR_PATH’) the launch module is your launch.py just import it

Can someone properly explain how to fix it in English or make a pull request?

Python is failing to import a module. Usually, this can be solved by running “pip install <package>” inside of the terminal but because “launch” is not a package defined in the pip repository, we cannot use pip for this. Instead, we need to specify a path where Python looks for the “launch” module. “launch.py” is a Python script in the webui and is what we need to import. So instead of finding and installing something on the internet using pip, the webui uses a file path on your computer to import the “launch.py” script.

To fix this we need to change where python is looking. Normally we would have to use pip to install a module from the internet using pip, but we want it to look on our computer. To do that simply in a Python program, we can import the “sys” package (which is defined by Python) and add a file path to where it is looking to import from. Go to the extensions folder, find this extension’s folder, open the “launch.py” file (for the extension), and add this code to the top:

import sys sys.append(“your/file/path/to/a1111/here”) #MAKE SURE YOU CHANGE THE FILE PATH BEFORE YOU IMPORT “LAUNCH”

Now, when the script does “from launch import run” later on, it will check the webui folder and try importing the module from there.

What “sys.append()” does, is take an input of the file path you want to add: set this to your “stable-diffusion-webui” folder (for a1111) path. Mine on Linux looks like “sys.append(”/home/myname/stable-diffusion-webui")". Then after we have added the file path to a list that it checks when importing, we can import the “launch” module as done by the line later on: “from launch import run”.

I find myself having to do this pretty often with new extensions if they fail to import “launch”. I just go into the script and change the file path to include the a1111 webui folder and it usually works. Hope this helped. I am still learning too.

11111

import sys sys.append(“your/file/path/to/a1111/here”) #MAKE SURE YOU CHANGE THE FILE PATH BEFORE YOU IMPORT “LAUNCH”

works for me

modify you install.py insert sys.path.append(‘…/YOUR_PATH’) the launch module is your launch.py just import it

can you please explain your answer? adding this ( even using insert(0, doesn’t seem to help me

image add it to here, I guess the launch means launch.py in the root folder.

same here

Can someone properly explain how to fix it in English or make a pull request?

hi, i have the same problem Additionally, requirements.txt does not have the PythonGit library which is necessary to run install.py