Closed Anibaaal closed 2 months ago
Solved by replacing line 6 in ai-toolkit\venv\Lib\site-packages\clip\clip.py from from 'pkg_resources import packaging' to 'import packaging' as suggested here https://github.com/pytorch/serve/issues/3176
Solved by replacing line 6 in ai-toolkit\venv\Lib\site-packages\clip\clip.py from from 'pkg_resources import packaging' to 'import packaging' as suggested here pytorch/serve#3176
thanks you saved me hours of work!
I solved this with gpt help by doing pip install --upgrade setuptools and then py -m pip install --upgrade pip setuptools wheel
Thank you random @diodiogod , I love random Githubbers and redditors for a random tech issue. Lora is training because of you and some guy in youtube comments!
thanks, fixed the issue
I set up everything according to the Readme and this guide video https://www.youtube.com/watch?v=HzGW_Kyermg, but I'm getting this error after a reinstall because dotenv failed to install the first time:
Running 1 job Error running job: cannot import name 'packaging' from 'pkg_resources' (C:\StableDiffusion\Training\ai-toolkit\venv\Lib\site-packages\pkg_resources__init__.py)
======================================== Result:
1 failure
Traceback (most recent call last): File "C:\StableDiffusion\Training\ai-toolkit\run.py", line 90, in
main()
File "C:\StableDiffusion\Training\ai-toolkit\run.py", line 86, in main
raise e
File "C:\StableDiffusion\Training\ai-toolkit\run.py", line 77, in main
job = get_job(config_file, args.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\StableDiffusion\Training\ai-toolkit\toolkit\job.py", line 28, in get_job
from jobs import ExtensionJob
File "C:\StableDiffusion\Training\ai-toolkit\jobs__init.py", line 1, in
from .BaseJob import BaseJob
File "C:\StableDiffusion\Training\ai-toolkit\jobs\BaseJob.py", line 5, in
from jobs.process import BaseProcess
File "C:\StableDiffusion\Training\ai-toolkit\jobs\process__init.py", line 8, in
from .TrainSliderProcess import TrainSliderProcess
File "C:\StableDiffusion\Training\ai-toolkit\jobs\process\TrainSliderProcess.py", line 26, in
from .BaseSDTrainProcess import BaseSDTrainProcess
File "C:\StableDiffusion\Training\ai-toolkit\jobs\process\BaseSDTrainProcess.py", line 39, in
from toolkit.sampler import get_sampler
File "C:\StableDiffusion\Training\ai-toolkit\toolkit\sampler.py", line 22, in
from k_diffusion.external import CompVisDenoiser
File "C:\StableDiffusion\Training\ai-toolkit\venv\Lib\site-packages\k_diffusion__init__.py", line 1, in
from . import augmentation, config, evaluation, external, gns, layers, models, sampling, utils
File "C:\StableDiffusion\Training\ai-toolkit\venv\Lib\site-packages\k_diffusion\evaluation.py", line 6, in
import clip
File "C:\StableDiffusion\Training\ai-toolkit\venv\Lib\site-packages\clip\ init__.py", line 1, in
from .clip import *
File "C:\StableDiffusion\Training\ai-toolkit\venv\Lib\site-packages\clip\clip.py", line 6, in
from pkg_resources import packaging
ImportError: cannot import name 'packaging' from 'pkg_resources' (C:\StableDiffusion\Training\ai-toolkit\venv\Lib\site-packages\pkg_resources\ init__.py)