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

Cannot install kohya_ss on linux appimage #633

Closed
leuchtrakete666 opened this issue May 13, 2024 · 6 comments
Closed

Cannot install kohya_ss on linux appimage #633

leuchtrakete666 opened this issue May 13, 2024 · 6 comments
Labels
area: package-manager Issues with package install or update bug Something isn't working os-linux Issue affecting Linux builds

Comments

@leuchtrakete666
Copy link

i get this error:

Unpacking resources
Unpacking resources
Download Complete
created virtual environment CPython3.10.11.final.0-64 in 110ms
  creator CPython3Posix(dest=/home/lupo/StabilityMatrix/Packages/kohya_ss/venv, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/lupo/.local/share/virtualenv)
    added seed packages: pip==24.0, setuptools==69.5.1, wheel==0.43.0
  activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
18:19:36-005669 INFO     Python version is 3.10.11 (main, May  7 2023, 19:26:31)
                         [Clang 16.0.3 ]                                        
18:19:36-036333 INFO     Submodule initialized and updated.                     
usage: setup_linux.py [-h]
                      [--platform-requirements-file PLATFORM_REQUIREMENTS_FILE]
                      [--show_stdout] [--no_run_accelerate]
setup_linux.py: error: unrecognized arguments: --headless
Could not install kohya_ss (StabilityMatrix.Core.Exceptions.ProcessException: install script failed with code 2: '18:19:36-005669 INFO     Python version is 3.10.11 (main, May  7 2023, 19:26:31)\n                         [Clang 16.0.3 ]                                        \n18:19:36-036333 INFO     Submodule initialized and updated.                     \nusage: setup_linux.py [-h]\n                      [--platform-requirements-file PLATFORM_REQUIREMENTS_FILE]\n                      [--show_stdout] [--no_run_accelerate]\nsetup_linux.py: error: unrecognized arguments: --headless\n'
   at StabilityMatrix.Core.Python.PyVenvRunner.CustomInstall(String args, Action`1 outputDataReceived)
   at StabilityMatrix.Core.Models.Packages.KohyaSs.InstallPackage(String installLocation, TorchVersion torchVersion, SharedFolderMethod selectedSharedFolderMethod, DownloadPackageVersionOptions versionOptions, IProgress`1 progress, Action`1 onConsoleOutput)
   at StabilityMatrix.Core.Models.Packages.KohyaSs.InstallPackage(String installLocation, TorchVersion torchVersion, SharedFolderMethod selectedSharedFolderMethod, DownloadPackageVersionOptions versionOptions, IProgress`1 progress, Action`1 onConsoleOutput)
   at StabilityMatrix.Core.Models.PackageModification.InstallPackageStep.ExecuteAsync(IProgress`1 progress)
   at StabilityMatrix.Core.Models.PackageModification.PackageModificationRunner.ExecuteSteps(IReadOnlyList`1 steps))

It seems like stability matrix try to launch the setup_linux.py with the --headless flag and this is not recognized by the script.

@leuchtrakete666
Copy link
Author

I can push the installation by running the installation script manually and import kohya to stability matrix. but then the model sharing is not working.

@leuchtrakete666
Copy link
Author

I importet kohya_ss into stability matrix. But the training don't start. I get this error:

08:32:31-108438 ERROR accelerate not found

accelerate is installed. I did a accelerate config in the virtual environment.

I also reinstalled accelerate via the stability matrix gui.

@leuchtrakete666
Copy link
Author

Furthermore kohya cannot be stopped. When stopping with the stability matrix gui, the process still runs. I need to kill the coresponding python3 process manually.

@nitrousoxXxide
Copy link

Confirmed with same error. Tried updating kohya first, but failed on update. Uninstalled and attempted to reinstall, but got unrecognized arguments: --headless as well.

@nitrousoxXxide
Copy link

In StabilityMatrix.Core/Models/Packages/KohyaSs.cs

.CustomInstall(
                    "setup/setup_linux.py --platform-requirements-file=requirements_linux.txt --no_run_accelerate",
                    onConsoleOutput
                )

was changed to

.CustomInstall("setup/setup_linux.py --headless", onConsoleOutput)

which seems to be the problem

dkvsl pushed a commit to dkvsl/StabilityMatrix that referenced this issue Jun 4, 2024
Update OpenArtBrowserPage HorizontalAlignment -> HorizontalContentAlignment
@ionite34
Copy link
Member

@ionite34 ionite34 added bug Something isn't working os-linux Issue affecting Linux builds area: package-manager Issues with package install or update labels Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: package-manager Issues with package install or update bug Something isn't working os-linux Issue affecting Linux builds
Projects
None yet
Development

No branches or pull requests

3 participants