I set up and installed the requirements as root with pip3 and I followed the guide here: https://jupyterhub.readthedocs.io/en/stable/reference/config-sudo.htm
However, I am still getting an error about a substring not being found when I try to launch jupyterhub as a regular user using the command:
sudo -u username jupyterhub --JupyterHub.spawner_class=sudospawner.SudoSpawner
I literally have almost the same error as this person here and barely anyone responded: Cannot login to Jupyterhub for new user -- ValueError: substring not found · Issue #436 · jupyter/jupyter · GitHub
I have tried so many solutions from changing the sudo file and disabling SELinux etc. Running out of ideas here. Could anyone point me in the right direction. I am trying to re-install everything as I write this.