Closed bryanray closed 1 year ago
if once capture log level 4 is enable it will output this console error everytime it starts up.
even if turn off to level 0 none
this error in console will still happen.
only way to remove this output in console when start up is to delete the extension.
It's trying to install a new requirement, but doesn't seem to be able to.
What happens if you do this manually in the webui directory:
venv\Scripts\activate.bat
pip install image-reward
sorry only way i know how is to run python.exe. I run pip install image-reward, but faileed i dont know anything better.
You're on Windows, right?
Open your webui path in Windows Explorer:
then overwrite the file location with cmd
and press enter:
This should open a cmd-window in the right directory. There type in the venv and then the pip command:
in fact i know this method :)) but i just click on python.exe and run that and it failed last time,
but using this method. it works, but why is that? what is the different between running python.exe vs in the folder cmd?
If you click on python, a python shell should be opened. This shell interprets python code you enter.
But the venv and pip commands are not python code. They are code to support python. Small, but important difference.
you are god :) thanks a lot! i got lost half way, pardon my knowledge limitation
Yeah, I got off track today too...
I still don't know, why it didn't "just" work in the first place. Let's see if someone else also has that problem.
I had the same problem but I fixed it. The problem is AlUlkesh uses the cloned repo from a1111 what I see from the pictures. But I use the "https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases/tag/v1.0.0-pre" the zipped version and the zipped version doesn't have the virtual environment (venv) / activate.bat.
I know it uses the provided python folder but at the same time, it uses the libs from the local python310 folder. Maybe I don't know exactly.
What I did:
For the simple version, I reinstalled the requirements and installed image-reward in the appdata dir (local python310 install) and in the sd-webui dir from the zip and it works.
Which lib it uses I do not know I just shared my experience with the problem.
I also encountered the same problem, and after disabling the extension, there were no errors reported
Solved it according to the above method
I had the same problem but I fixed it. The problem is AlUlkesh uses the cloned repo from a1111 what I see from the pictures. But I use the "https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases/tag/v1.0.0-pre" the zipped version and the zipped version doesn't have the virtual environment (venv) / activate.bat.
me too :) same here dude, i just cmd in the python path
Error running install.py for extension Z:\z\sd\webui\extensions\stable-diffusion-webui-images-browser. Command: "Z:\z\sd\system\python\python.exe" "Z:\z\sd\webui\extensions\stable-diffusion-webui-images-browser\install.py" Error code: 1 stdout: Installing ImageReward requirement for image browser
stderr: Traceback (most recent call last): File "Z:\z\sd\webui\extensions\stable-diffusion-webui-images-browser\install.py", line 7, in
launch.run_pip("install image-reward", "ImageReward requirement for image browser")
File "Z:\z\sd\webui\launch.py", line 128, in run_pip
return run(f'"{python}" -m pip {command} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}", live=live)
File "Z:\z\sd\webui\launch.py", line 96, in run
raise RuntimeError(message)
RuntimeError: Couldn't install ImageReward requirement for image browser.
Command: "Z:\z\sd\system\python\python.exe" -m pip install image-reward --prefer-binary
Error code: 2
stdout: Collecting image-reward
Using cached image_reward-1.2-py3-none-any.whl (31 kB)
Collecting timm==0.6.13 (from image-reward)
Using cached timm-0.6.13-py3-none-any.whl (549 kB)
Collecting transformers==4.27.4 (from image-reward)
Using cached transformers-4.27.4-py3-none-any.whl (6.8 MB)
Collecting fairscale==0.4.13 (from image-reward)
Using cached fairscale-0.4.13.tar.gz (266 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
stderr: ERROR: Exception: Traceback (most recent call last): File "Z:\z\sd\system\python\lib\site-packages\pip_internal\cli\base_command.py", line 169, in exc_logging_wrapper status = run_func(*args) File "Z:\z\sd\system\python\lib\site-packages\pip_internal\cli\req_command.py", line 248, in wrapper return func(self, options, args) File "Z:\z\sd\system\python\lib\site-packages\pip_internal\commands\install.py", line 377, in run requirement_set = resolver.resolve( File "Z:\z\sd\system\python\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 92, in resolve result = self._result = resolver.resolve( File "Z:\z\sd\system\python\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 546, in resolve state = resolution.resolve(requirements, max_rounds=max_rounds) File "Z:\z\sd\system\python\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 427, in resolve failure_causes = self._attempt_to_pin_criterion(name) File "Z:\z\sd\system\python\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 239, in _attempt_to_pin_criterion criteria = self._get_updated_criteria(candidate) File "Z:\z\sd\system\python\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 230, in _get_updated_criteria self._add_to_criteria(criteria, requirement, parent=candidate) File "Z:\z\sd\system\python\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 173, in _add_to_criteria if not criterion.candidates: File "Z:\z\sd\system\python\lib\site-packages\pip_vendor\resolvelib\structs.py", line 156, in bool return bool(self._sequence) File "Z:\z\sd\system\python\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 155, in bool return any(self) File "Z:\z\sd\system\python\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 143, in
return (c for c in iterator if id(c) not in self._incompatible_ids)
File "Z:\z\sd\system\python\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 47, in _iter_built
candidate = func()
File "Z:\z\sd\system\python\lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 206, in _make_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
File "Z:\z\sd\system\python\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 293, in init
super().init(
File "Z:\z\sd\system\python\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 156, in init
self.dist = self._prepare()
File "Z:\z\sd\system\python\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 225, in _prepare
dist = self._prepare_distribution()
File "Z:\z\sd\system\python\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 304, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
File "Z:\z\sd\system\python\lib\site-packages\pip_internal\operations\prepare.py", line 516, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File "Z:\z\sd\system\python\lib\site-packages\pip_internal\operations\prepare.py", line 631, in _prepare_linked_requirement
dist = _get_prepared_distribution(
File "Z:\z\sd\system\python\lib\site-packages\pip_internal\operations\prepare.py", line 69, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(
File "Z:\z\sd\system\python\lib\site-packages\pip_internal\distributions\sdist.py", line 48, in prepare_distribution_metadata
self._install_build_reqs(finder)
File "Z:\z\sd\system\python\lib\site-packages\pip_internal\distributions\sdist.py", line 118, in _install_build_reqs
build_reqs = self._get_build_requires_wheel()
File "Z:\z\sd\system\python\lib\site-packages\pip_internal\distributions\sdist.py", line 95, in _get_build_requires_wheel
return backend.get_requires_for_build_wheel()
File "Z:\z\sd\system\python\lib\site-packages\pip_internal\utils\misc.py", line 692, in get_requires_for_build_wheel
return super().get_requires_for_build_wheel(config_settings=cs)
File "Z:\z\sd\system\python\lib\site-packages\pip_vendor\pyproject_hooks_impl.py", line 166, in get_requires_for_build_wheel
return self._call_hook('get_requires_for_build_wheel', {
File "Z:\z\sd\system\python\lib\site-packages\pip_vendor\pyproject_hooks_impl.py", line 321, in _call_hook
raise BackendUnavailable(data.get('traceback', ''))
pip._vendor.pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):
File "Z:\z\sd\system\python\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 77, in _build_backend
obj = import_module(mod_path)
File "importlib__init.py", line 126, in import_module
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 992, in _find_and_load_unlocked
File "", line 241, in _call_with_frames_removed
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "C:\Users\bryan\AppData\Local\Temp\pip-build-env-r99cw6wz\overlay\Lib\site-packages\setuptools__init__.py", line 15, in
import setuptools.version
File "C:\Users\bryan\AppData\Local\Temp\pip-build-env-r99cw6wz\overlay\Lib\site-packages\setuptools\version.py", line 1, in
from ._importlib import metadata
File "C:\Users\bryan\AppData\Local\Temp\pip-build-env-r99cw6wz\overlay\Lib\site-packages\setuptools_importlib.py", line 44, in
import importlib.metadata as metadata # noqa: F401
File "importlib\metadata\ init__.py", line 17, in
File "importlib\metadata_adapters.py", line 3, in
File "email\message.py", line 15, in
File "email\utils.py", line 29, in
File "socket.py", line 51, in
ModuleNotFoundError: No module named '_socket'