sd_civitai_extension icon indicating copy to clipboard operation
sd_civitai_extension copied to clipboard

Startup warning: python-socketio[client] version 5.7.2 NOT installed.

Open mw88-personal opened this issue 1 year ago • 17 comments

I have a newer version of python-socketio[client] in my venv, which does not get detected properly by the requirements.txt.

Please change requirements.txt to

python-socketio[client]>=5.7.2

to include newer versions.

mw88-personal avatar Mar 23 '23 18:03 mw88-personal

same with you

YuFengDing avatar Mar 25 '23 16:03 YuFengDing

pip install "python-socketio[client]"

sumic avatar Apr 03 '23 09:04 sumic

first download: pip.py from web second input: python get-pip.py third input: pip install "python-socketio[client]" good lucky, ok!

toniedeng avatar Apr 22 '23 13:04 toniedeng

首先,卸载掉高版本的python-socketio,在stable-diffusion-webui\【你的项目】\Scripts下,访问CMD,输入pip list查看是否有高版本的python-socketio

如果有,则输入pip uninstall python-socketio卸载。 卸载后,或者此前并没有python-socketio,输入pip install python-socketio[client]==5.7.2用来安装5.7.2这个特定版本

Recle avatar Apr 28 '23 13:04 Recle

I encountered the same problem, my machine has a python environment of 3.10.8. And installed python-socketio[client]==5.7.2.

##############################################################################################

Initializing Civitai Link

If submitting an issue on github, please provide the below text for debugging purposes:

Python revision: 3.10.8 (tags/v3.10.8:aaaf517, Oct 11 2022, 16:50:30) [MSC v.1933 64 bit (AMD64)]

Civitai Link revision: d0e83e7b048f9a6472b4964fa530f8da754aba58

SD-WebUI revision: 22bcc7be428c94e9408f589966c2040187245d81

Checking Civitai Link requirements...

[!] python-socketio[client] version 5.7.2 NOT installed.

##############################################################################################

bruce-yan avatar May 01 '23 15:05 bruce-yan

pip install python-socketio[client]==5.7.2

I have the same problem have you solved yours

JimWatL avatar May 02 '23 23:05 JimWatL

Checking Civitai Link requirements... [!] python-socketio[client] version 5.7.2 NOT installed.

DarksealStudios avatar May 03 '23 01:05 DarksealStudios

After hours of searching I'm going to bed, I hope to see more clearly tomorrow:(

JimWatL avatar May 03 '23 03:05 JimWatL

It's likely that you have the latest version 5.8 installed. However, the plugin requires version 5.7.2. Uninstall it completely first and then install the required version. Works for me.

  1. pip uninstall python-socketio
  2. pip install python-socketio[client]==5.7.2

sadikh94 avatar May 03 '23 11:05 sadikh94

Just to clarify: I got the civitai extension working by changing the file <my base directory>\stable-diffusion-webui\extensions\sd_civitai_extension\requirements.txt from

python-socketio[client]==5.7.2

to

python-socketio[client]>=5.7.2

locally (Notice >= instead of ==!). I have not experienced any bugs with the newer version, so I am staying on the version I am right now. This issues was raised as a feature request to incorporate my local change into future development for this extension, as I see no benefit in locking down the python-socketion[client] module to this exact version.

mw88-personal avatar May 03 '23 12:05 mw88-personal

Win: Run cmd and put this line: pip install python-socketio[client]==5.7.2

Just it!

mdsavio avatar May 03 '23 12:05 mdsavio

thx but I already did it and again. uninstalled reinstalled, I still have the same error message. the civitai logo is displayed but no window or interaction possible and still the same error socketio 5.7.2 not installed. socketio not installed

JimWatL avatar May 03 '23 16:05 JimWatL

I added the requirements, and even though it got the extension working it would still say not installed. It wasn't until I ran cmd in the root folder of automatic1111 and entered : pip install python-socketio==5.7.2 that it started working. Thanks everyone.... it's the wrong version of the extension, i needed the other one, lol! This one does't download images, it's the other one. Anyway, thank you for teaching me, [client] needed to be replaced with the version number. Slow, but learning.

DarksealStudios avatar May 03 '23 17:05 DarksealStudios

pip install python-socketio[client]==5.7.2

Can you explain us how you arrived there please I tried to put the zip and even the folder, here C:\Users\xxxxx\Documents\A1111 Web UI Autoinstaller and here C:\Users\jimmy\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui, t hen to launch CMD since these same folder and made the installation but that always does not function :(

JimWatL avatar May 03 '23 20:05 JimWatL

Just to clarify: I got the civitai extension working by changing the file <my base directory>\stable-diffusion-webui\extensions\sd_civitai_extension\requirements.txt from

python-socketio[client]==5.7.2

to

python-socketio[client]>=5.7.2

locally (Notice >= instead of ==!). I have not experienced any bugs with the newer version, so I am staying on the version I am right now. This issues was raised as a feature request to incorporate my local change into future development for this extension, as I see no benefit in locking down the python-socketion[client] module to this exact version.

Thanks and this did eliminate the python-socketio[client] missing error, however, the following exception still exists:

Error executing callback app_started_callback for D:\ts\stable-diffusion-webui\extensions\sd_civitai_extension\scripts\link.py
Traceback (most recent call last):
  File "D:\ts\stable-diffusion-webui\modules\script_callbacks.py", line 108, in app_started_callback
    c.callback(demo, app)
  File "D:\ts\stable-diffusion-webui\extensions\sd_civitai_extension\scripts\link.py", line 13, in connect_to_civitai
    link.socketio_connect()
  File "D:\ts\stable-diffusion-webui\extensions\sd_civitai_extension\civitai\link.py", line 201, in socketio_connect
    sio.connect(socketio_url, socketio_path='/api/socketio')
  File "D:\ts\stable-diffusion-webui\venv\lib\site-packages\socketio\client.py", line 347, in connect
    raise exceptions.ConnectionError(
socketio.exceptions.ConnectionError: One or more namespaces failed to connect

After restarting .\webui.bat , I still did not see the Civitai tab. Any ideas to fix this issue?

hughlv avatar May 07 '23 14:05 hughlv

Done, re-installing to 5.7.2 and restarting did the trick -xformers are loading and version check passed image

freyandere avatar May 28 '23 12:05 freyandere

Just to clarify: I got the civitai extension working by changing the file <my base directory>\stable-diffusion-webui\extensions\sd_civitai_extension\requirements.txt from

python-socketio[client]==5.7.2

to

python-socketio[client]>=5.7.2

locally (Notice >= instead of ==!). I have not experienced any bugs with the newer version, so I am staying on the version I am right now. This issues was raised as a feature request to incorporate my local change into future development for this extension, as I see no benefit in locking down the python-socketion[client] module to this exact version.

this removed the error for me

MIDG3Tp3nguin avatar Dec 31 '23 21:12 MIDG3Tp3nguin