kohya-ss / kohya-ss/sd-scripts

Cannot find path

Open
#498 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
7.2k
Forks
1.2k
Avg merge
11m
Merged PRs (30d)
2

Description

Trying to install it on windows:

I did run power shell as admin and set it to unrestricted.
then opened it regularly and copied the lines into power shell.

After I copied the lines into power shell I did the config then I got this error:

Do you wish to use FP16 or BF16 (mixed precision)?
fp16
accelerate configuration saved at C:\Users\Fischer/.cache\huggingface\accelerate\default_config.yaml
cp : Cannot find path 'C:\Users\Fischer\Kohya\bitsandbytes_windows\main.py' because it does not exist.
At line:3 char:1
+ cp .\bitsandbytes_windows\main.py .\venv\Lib\site-packages\bitsandbyt ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\Fische...windows\main.py:String) [Copy-Item], ItemNotFoundExce
ption
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand

cp : Cannot find path 'C:\Users\Fischer\Kohya\bitsandbytes_windows\cextension.py' because it does not exist.
At line:4 char:1
+ cp .\bitsandbytes_windows\cextension.py .\venv\Lib\site-packages\bits ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\Fische...s\cextension.py:String) [Copy-Item], ItemNotFoundExce
ption
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand

cp : Cannot find path 'C:\Users\Fischer\Kohya\bitsandbytes_windows' because it does not exist.
At line:5 char:1
+ cp .\bitsandbytes_windows\*.dll .\venv\Lib\site-packages\bitsandbytes ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\Fische...ndbytes_windows:String) [Copy-Item], ItemNotFoundExce
ption
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand



It seems like I am missing something but I don't know what. Python 3.10.6(also tested it with 3.10.9) and Git is installed.
Can someone help me please?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by checking the PowerShell copy commands for .\bitsandbytes_windows\main.py, cextension.py, and *.dll against the reported C:\Users\Fischer\Kohya paths. Verify the expected bitsandbytes_windows directory and files are present before running the commands; done means installation no longer reports these missing paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, python
Domain
devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.