May I find the errors in stable-diffusion-webui with pytest? #12643
Unanswered
tmprabubiz
asked this question in
Q&A
Replies: 1 comment 1 reply
-
don't bother pytest it is not for end user use and not for debugging. and you're using it wrong so doubly don't bother |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With a Windows-10 / i9 / RTX2060-8GB GPU / 64GB CPU - I am using Automatic 1111
Reinstalled many times, but some basic hitches cannot be cleared at all. I do SDXL creations, develop my own prompts But still when it comes to img2img or conrolnet, the webui kicks me out of the league. I don't know coding. Just read about pytest, downloaded, tested to find many warnings and errors. May somebody give a look, to my very minimum knowledge in coding, one particular thing is the problem for all the errors, may be two. Please find below the results. (IF PYTEST IS NOT THE RIGHT THING< PLEASE SUGGESST THE RIGHT ONE)
C:\Users\Winnertmp\stable-diffusion-webui>pytest
================================================= test session starts =================================================
platform win32 -- Python 3.10.6, pytest-7.4.0, pluggy-1.2.0
rootdir: C:\Users\Winnertmp\stable-diffusion-webui
configfile: pyproject.toml
plugins: anyio-3.7.1
collected 0 items / 1 error
======================================================= ERRORS ========================================================
____________________________________________ ERROR collecting test session ____________________________________________
..\AppData\Local\Programs\Python\Python310\lib\site-packages_pytest\runner.py:341: in from_call
result: Optional[TResult] = func()
..\AppData\Local\Programs\Python\Python310\lib\site-packages_pytest\runner.py:372: in
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
..\AppData\Local\Programs\Python\Python310\lib\site-packages_pytest\main.py:743: in collect
for x in self._collectfile(path):
..\AppData\Local\Programs\Python\Python310\lib\site-packages_pytest\main.py:577: in _collectfile
assert (
E AssertionError: WindowsPath('C:/Users/Winnertmp/stable-diffusion-webui/extensions/DWPose/ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/base_models/midas_repo/mobile/android/lib_support/src/main/java/org/tensorflow/lite/examples/classification/tflite/ClassifierFloatEfficientNet.java') is not a file (isdir=False, exists=False, islink=False)
================================================== warnings summary ===================================================
..\AppData\Local\Programs\Python\Python310\lib\site-packages\altair\utils\schemapi.py:353: 99 warnings
C:\Users\Winnertmp\AppData\Local\Programs\Python\Python310\lib\site-packages\altair\utils\schemapi.py:353: DeprecationWarning: jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
resolver = jsonschema.RefResolver.from_schema(root or schema)
..\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\routes.py:25
C:\Users\Winnertmp\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\routes.py:25: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
..\AppData\Local\Programs\Python\Python310\lib\site-packages\pkg_resources_init_.py:2871
C:\Users\Winnertmp\AppData\Local\Programs\Python\Python310\lib\site-packages\pkg_resources_init_.py:2871: DeprecationWarning: Deprecated call to
pkg_resources.declare_namespace('mpl_toolkits')
.Implementing implicit namespace packages (as specified in PEP 420) is preferred to
pkg_resources.declare_namespace
. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packagesdeclare_namespace(pkg)
..\AppData\Local\Programs\Python\Python310\lib\site-packages\pkg_resources_init_.py:2871
C:\Users\Winnertmp\AppData\Local\Programs\Python\Python310\lib\site-packages\pkg_resources_init_.py:2871: DeprecationWarning: Deprecated call to
pkg_resources.declare_namespace('google')
.Implementing implicit namespace packages (as specified in PEP 420) is preferred to
pkg_resources.declare_namespace
. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packagesdeclare_namespace(pkg)
..\AppData\Local\Programs\Python\Python310\lib\site-packages_pytest\config_init_.py:1373
C:\Users\Winnertmp\AppData\Local\Programs\Python\Python310\lib\site-packages_pytest\config_init_.py:1373: PytestConfigWarning: Unknown config option: base_url
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=============================================== short test summary info ===============================================
ERROR - AssertionError: WindowsPath('C:/Users/Winnertmp/stable-diffusion-webui/extensions/DWPose/ControlNet-v1-1-nightly/an...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=========================================== 103 warnings, 1 error in 1.05s ============================================
Beta Was this translation helpful? Give feedback.
All reactions