I'm trying to pip install some dependencies into my virtual environment for a flask wsgi server with pipenv and I am met with his error:
(code-S7821ldY) sentry@sentry:/var/www/code$ sudo pipenv install
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
3/dist-packages/pipenv/resolver.py", line 52, in main
project = pipenv.core.project
AttributeError: module 'pipenv.core' has no attribute 'project'
This all began from trying to install opencv into a python 3.8 virtual environment. I can't seem to find much for this error online, any sort of help would be very much appreciated.
This error also occurs when using pipenv lock, I can still access the shell of the environment regardless of this error. Not sure if this info is helpful but thought I would add it.