chaiNNer
chaiNNer copied to clipboard
Immediate critical error upon launching chaiNNer for the first time on Arch Linux
Information:
- Chainner version: [Alpha 0.18.7] also tried the 0.18.6 linux portables and the version from the AUR which should be the latest release
- OS: [Arch Linux x86_64, 6.3.2-arch1-1]
Description I installed chainner, both through the AUR it didn't work, resulting in the screenshot below. I then tried running the linux portables in the release section both 0.18.7 and 0.18.6. No matter what I do I always get the same error shown below
Logs main.log
I'll look into it a bit more later but at a first glance it looks like its trying to compile a bunch of the python dependencies and failing. I'm not sure why it's doing that but if i can figure anything out I'll let you know
Okay so the issue resolved itself. I used find
to search my computer for all mentions of chaiNNer I then manually deleted anything relating to the program and then installed the new version
Now the program is working perfectly. I guess the issue resolved itself in the update or perhaps the issue was with the clone repo in paru (My AUR manager)? I'm not too sure but thank you regardless 🥳 🎉
Just installed the latest version but I'm having the same issue
Have you tried doing the same thing that made it work before? Unfortunately I'm not sure how much help I can really be for this as I'm not a Linux user. Can you send your logs again?
Having the same issue on a x64 Windows 11 - Any help would be greatly appreciated! main.log
Looks like there's an SSL issue causing pip to not be able to connect. Are you using a VPN or do you have strict firewall settings? @dcary94
That makes sense! - trying to install at work offices and we have very strict firewall settings. - Will speak to our IT team. Would you be able to sum up what exactly the IT would need to do to have the application work? Just so I can inform them as best I can.
Thanks again for your quick response - really appreciate it!
I'm not really sure to be honest, all i can see from your logs is that there is an SSL issue. I've never encountered that myself so I don't know what would be needed to get past that.
The specific error is this:
[error] WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)'))': /simple/sanic/
Are you able to install from pip normally?
I'm terribly sorry but I'm not sure what you mean by 'pip'?
Apologies
Pip is python's package manager. ChaiNNer uses it to install the necessary python dependencies for its backend (which is why it can't start for you, since it's failing on that step)
Right thanks - good to know. Could you let me know how i could try installing from pip? I've just downloaded the v0.18.9 windows x64.exe under the 'Assets' tab.
https://packaging.python.org/en/latest/tutorials/installing-packages/
To be clear, I'm curious if pip works outside of chaiNNer, like just normally if you wanted to install things to your system's python, if you have python installed.
Great stuff! - Thanks for your help - I will speak to our IT team and see what they can do.
Really appreciate it!
For anyone still having this issue on Arch Linux, if the error message you're getting in the terminal is something like
12:42:02.054 › Error: /home/rafael/scripts/chaiNNer-linux-x64/python/python/bin/python3.9: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
this means you need to install libcrypt. You can check this with pkgfile. It tells you what packages install what you need.
$ pkgfile -s libcrypt.so.1
core/libxcrypt-compat
extra/riscv64-linux-gnu-glibc
multilib/lib32-libxcrypt-compat
After installing libxcrypt-compat and lib32-libxcrypt-compat I was able to run chainner without issues :)
Hi, I'm still having the same issue, can someone please help me, will be grateful, attached the log file as well main.log
@rishabh4uh what version of chaiNNer is that? You're getting an error I've never seen before with one of our dependencies
@joeyballentine 0.16.1.0 I guess I should go for the latest version. I was just testing out some old versions and some of them were not working. You dont have to dig too hard for this, I tried all the above solutions so I thought I might let you know about this as well. But no big deal. All good
Yeah lol... Use the latest version
Thanks though :)
For context, there was some issue with that dependency that's erroring (though I don't remember that specific error) where it was being updated to a later verison that was causing problems. We fixed that issue pretty quickly, but you obviously don't get that fix on old versions
yup, probably in 2-3 versions I guess but all good. Thanks for the info man
I am having this issue as well on start up - here is the error I am getting:
[2023-11-30 13:00:31.719] [error] Backend: Traceback (most recent call last):
File "C:\Users\User\AppData\Local\chainner\app-0.16.1\resources\src\run.py", line 14, in <module>
[2023-11-30 13:00:31.720] [error] Backend: from sanic import Sanic
File "C:\Users\User\AppData\Roaming\chaiNNer\python\python\lib\site-packages\sanic\__init__.py", line 2, in <module>
from sanic.app import Sanic
File "C:\Users\User\AppData\Roaming\chaiNNer\python\python\lib\site-packages\sanic\app.py", line 77, in <module>
from sanic.server.protocols.websocket_protocol import WebSocketProtocol
File "C:\Users\User\AppData\Roaming\chaiNNer\python\python\lib\site-packages\sanic\server\protocols\websocket_protocol.py", line 3, in <module>
[2023-11-30 13:00:31.721] [error] Backend: from websockets.connection import CLOSED, CLOSING, OPEN
ImportError: cannot import name 'CLOSED' from 'websockets.connection' (C:\Users\User\AppData\Roaming\chaiNNer\python\python\lib\site-packages\websockets\connection.py)
[2023-11-30 13:00:31.751] [error] Python subprocess exited with code 1 and signal null
[2023-11-30 13:03:09.390] [info] Attempting to kill backend...
[2023-11-30 13:03:09.391] [error] Error killing backend.
[2023-11-30 13:03:09.392] [info] Cleaning up temp folders...
- I tired deleting already installed python and re-installing it.
- removing python and letting chaiNNer installer download its own version of python.
- adding chaiNNer python and scripts path to windows user environment variables.
- clean installs of chaiNNer after clearing all files.. (tried both the .zip and windows setup installer as well)
still the critical error issue exists. any help would be appreciated.
This makes no sense. Unless you're using a super old version of chaiNNer, it should be installing a version of sanic that fixed this issue.
also further diving into the python code I tried the following test.py code below in this dir: C:\Users\User\AppData\Roaming\chaiNNer\python\python\Lib\site-packages
test.py:
try:
from websockets.connection import CLOSED, CLOSING, OPEN
print("Import successful.")
except ImportError:
print("Import failed. Check your installation or import statement.")
which is giving this error:
Import failed. Check your installation or import statement.
this is my pip list on in that dir:
C:\Users\User\AppData\Roaming\chaiNNer\python\python\Lib\site-packages>pip list
Package Version
----------------- -------
aiofiles 23.2.1
html5tagger 1.3.0
httptools 0.6.1
multidict 6.0.4
pip 23.3.1
sanic 23.6.0
sanic-routing 23.6.0
setuptools 69.0.2
tracerite 1.1.1
typing_extensions 4.8.0
websockets 12.0
Ok so it looks like it has installed websockets v12 for some reason, even though we specify for it to install v11. Could you try manually downgrading that?
alright let me try that now
Ok so it looks like it has installed websockets v12 for some reason, even though we specify for it to install v11. Could you try manually downgrading that?
just tired that, websocket is now v11, I have also completely removed the chaiNNer app file from AppData still no luck :(
This is the log I got after:
[2023-11-30 15:31:29.820] [info] Attempting to check for a port...
[2023-11-30 15:31:29.846] [info] Port found: 8000
[2023-11-30 15:31:30.097] [info] Attempting to check Python env...
[2023-11-30 15:31:30.099] [info] Integrated Python not found at C:\Users\User\AppData\Roaming\chaiNNer\python\python\python.exe
[2023-11-30 15:31:30.100] [info] Downloading integrated Python...
[2023-11-30 15:31:42.639] [info] Extracting integrated Python...
[2023-11-30 15:31:46.591] [info] Removing downloaded files...
[2023-11-30 15:31:46.729] [info] Final Python binary: C:\Users\User\AppData\Roaming\chaiNNer\python\python\python.exe
[2023-11-30 15:31:46.730] [info] {
python: 'C:\\Users\\User\\AppData\\Roaming\\chaiNNer\\python\\python\\python.exe',
version: '3.9.7'
}
[2023-11-30 15:31:46.988] [info] Attempting to check Ffmpeg env...
[2023-11-30 15:31:46.990] [info] Integrated FFMPEG not found at C:\Users\User\AppData\Roaming\chaiNNer\ffmpeg\ffmpeg.exe
[2023-11-30 15:31:46.990] [info] Downloading integrated FFMPEG...
[2023-11-30 15:31:56.444] [info] Extracting integrated FFMPEG...
[2023-11-30 15:31:58.121] [info] Removing downloaded files...
[2023-11-30 15:31:58.128] [info] Final ffmpeg binary: C:\Users\User\AppData\Roaming\chaiNNer\ffmpeg\ffmpeg.exe
[2023-11-30 15:31:58.128] [info] Final ffprobe binary: C:\Users\User\AppData\Roaming\chaiNNer\ffmpeg\ffprobe.exe
[2023-11-30 15:31:58.390] [info] Attempting to check Python deps...
[2023-11-30 15:31:58.397] [info] Python executable: C:\Users\User\AppData\Roaming\chaiNNer\python\python\python.exe
[2023-11-30 15:31:58.397] [info] Running pip command: pip list --format=json --disable-pip-version-check
[2023-11-30 15:32:01.269] [info] Installing/Updating dependencies...
[2023-11-30 15:32:01.270] [info] Python executable: C:\Users\User\AppData\Roaming\chaiNNer\python\python\python.exe
[2023-11-30 15:32:01.276] [info] Running pip command: pip install --upgrade sanic==21.9.3 Sanic-Cors==1.0.1 opencv-python==4.6.0.66 numpy==1.23.2 Pillow==9.2.0 appdirs==1.4.4 ffmpeg-python==0.2.0 pywin32==304 --disable-pip-version-check
[2023-11-30 15:32:02.034] [error] WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/sanic/
[2023-11-30 15:32:25.977] [info] Attempting to spawn backend...
[2023-11-30 15:32:26.031] [info] Successfully spawned backend.
[2023-11-30 15:32:26.747] [error] Backend: Traceback (most recent call last):
File "C:\Users\User\Downloads\chaiNNer-windows-x64-0.16.1\resources\src\run.py", line 14, in <module>
[2023-11-30 15:32:26.748] [error] Backend: from sanic import Sanic
File "C:\Users\User\AppData\Roaming\chaiNNer\python\python\lib\site-packages\sanic\__init__.py", line 2, in <module>
from sanic.app import Sanic
File "C:\Users\User\AppData\Roaming\chaiNNer\python\python\lib\site-packages\sanic\app.py", line 77, in <module>
from sanic.server.protocols.websocket_protocol import WebSocketProtocol
File "C:\Users\User\AppData\Roaming\chaiNNer\python\python\lib\site-packages\sanic\server\protocols\websocket_protocol.py", line 3, in <module>
[2023-11-30 15:32:26.749] [error] Backend: from websockets.connection import CLOSED, CLOSING, OPEN
ImportError: cannot import name 'CLOSED' from 'websockets.connection' (C:\Users\User\AppData\Roaming\chaiNNer\python\python\lib\site-packages\websockets\connection.py)
[2023-11-30 15:32:26.782] [error] Python subprocess exited with code 1 and signal null
[2023-11-30 15:34:02.183] [info] Attempting to kill backend...
[2023-11-30 15:34:02.184] [error] Error killing backend.
[2023-11-30 15:34:02.185] [info] Cleaning up temp folders...
@joeyballentine
also from the log above I tried to run this pip command manually in powershell
pip install --upgrade sanic==21.9.3 Sanic-Cors==1.0.1 opencv-python==4.6.0.66 numpy==1.23.2 Pillow==9.2.0 appdirs==1.4.4 ffmpeg-python==0.2.0 pywin32==304 --disable-pip-version-check
that gave me errors whilst installing:
pip install --upgrade sanic==21.9.3 Sanic-Cors==1.0.1 opencv-python==4.6.0.66 numpy==1.23.2 Pillow==9.2.0 appdirs==1.4.4 ffmpeg-python==0.2.0 pywin32==304 --disable-pip-version-check
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/sanic/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/sanic/
Collecting sanic==21.9.3
Downloading sanic-21.9.3-py3-none-any.whl (120 kB)
---------------------------------------- 120.1/120.1 kB 1.2 MB/s eta 0:00:00
Collecting Sanic-Cors==1.0.1
Downloading Sanic_Cors-1.0.1-py2.py3-none-any.whl (17 kB)
Collecting opencv-python==4.6.0.66
Downloading opencv_python-4.6.0.66-cp36-abi3-win_amd64.whl (35.6 MB)
---------------------------------------- 35.6/35.6 MB 4.7 MB/s eta 0:00:00
Collecting numpy==1.23.2
Downloading numpy-1.23.2.tar.gz (10.7 MB)
---------------------------------------- 10.7/10.7 MB 5.5 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [33 lines of output]
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 112, in get_requires_for_build_wheel
backend = _build_backend()
^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 77, in _build_backend
obj = import_module(mod_path)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1381, in _gcd_import
File "<frozen importlib._bootstrap>", line 1354, in _find_and_load
File "<frozen importlib._bootstrap>", line 1304, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1381, in _gcd_import
File "<frozen importlib._bootstrap>", line 1354, in _find_and_load
File "<frozen importlib._bootstrap>", line 1325, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 929, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 994, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "C:\Users\User\AppData\Local\Temp\pip-build-env-88474izy\overlay\Lib\site-packages\setuptools\__init__.py", line 16, in <module>
import setuptools.version
File "C:\Users\User\AppData\Local\Temp\pip-build-env-88474izy\overlay\Lib\site-packages\setuptools\version.py", line 1, in <module>
import pkg_resources
File "C:\Users\User\AppData\Local\Temp\pip-build-env-88474izy\overlay\Lib\site-packages\pkg_resources\__init__.py", line 2172, in <module>
register_finder(pkgutil.ImpImporter, find_on_path)
^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Get rid of numpy from that. And get rid of pywin