Error

Python 3.9.16 | packaged by conda-forge | (main, Feb 1 2023, 21:39:03)

[GCC 11.3.0]

Version: 1.6.0

Commit hash: 5ef669de080814067961f28357256e8fe27544f4

/.conda/envs/default/lib/python3.9/site-packages/pytorch_lightning/utilities/distributed.py:258: LightningDeprecationWarning: `pytorch_lightning.utilities.distributed.rank_zero_only` has been deprecated in v1.8.1 and will be removed in v2.0.0. You can import it from `pytorch_lightning.utilities` instead.

rank_zero_deprecation(

*** Error running install.py for extension /home/studio-lab-user/codingexercise/extensions/sd-webui-reactor.

*** Command: "/.conda/envs/default/bin/python3" "codingexercise/extensions/sd-webui-reactor/install.py"

*** Error code: 1

*** stderr: /codingexercise/extensions/sd-webui-reactor/install.py:3: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html

*** import pkg_resources

*** Traceback (most recent call last):

*** File "/codingexercise/extensions/sd-webui-reactor/install.py", line 30, in

*** package: str, version: str | None = None, strict: bool = True

*** TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

Solution

Reinstall Pytorch