CraftyController 4 Install on Ubuntu 22.04
I received the following error on Ubuntu 20.04 and 22.04, Post-install. I had been following the documentation but later found that the instructions/links were for v3.
Exception caught: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
A virtual environment has been detected, would you like to try reinstalling the modules?[yes/no]: yes
yes
Traceback (most recent call last):
File "/var/opt/minecraft/crafty/crafty-web/crafty.py", line 21, in
from OpenSSL import crypto, SSL
File "/var/opt/minecraft/crafty/venv/lib/python3.10/site-packages/OpenSSL/init.py", line 8, in
from OpenSSL import crypto, SSL
File "/var/opt/minecraft/crafty/venv/lib/python3.10/site-packages/OpenSSL/crypto.py", line 1556, in
class X509StoreFlags(object):
File "/var/opt/minecraft/crafty/venv/lib/python3.10/site-packages/OpenSSL/crypto.py", line 1577, in X509StoreFlags
CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECK
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/opt/minecraft/crafty/crafty-web/crafty.py", line 44, in
with subprocess.Popen(command_list, stdout=subprocess.PIPE) as proc:
File "/usr/lib/python3.10/subprocess.py", line 969, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.10/subprocess.py", line 1778, in _execute_child
self.pid = _posixsubprocess.fork_exec(
TypeError: expected str, bytes or os.PathLike object, not list
The following installed Version 4 and resolved the Post Install issues I was having with .v3
git clone https://gitlab.com/crafty-controller/crafty-installer-4.0.git && cd crafty-installer-4.0 && sudo ./install_crafty.sh