Please help me with an Import error I get when running code in Pycharm


OS = Ubuntu 18.04

PyCharm version 2022.3.3

When I run code in a virtual environment in PyCharm, I get this error message:Traceback (most recent call last):
  File "/home/sam/Documents/Python3.9_Projects/Projects/ScratchPyQt5/", line 9, in <module>
    from PyQt5 import QtWidgets, QtCore, QtGui, QtMultimedia
ImportError: /usr/lib/x86_64-linux-gnu/ symbol krb5_ser_context_init version krb5_3_MIT not defined in file with link time reference

I have no clue how to approach fixing this except that the problem may be located outside my venv. Can anyone guide me to a solution?


SQ:  The solution was to remove instances of pyqt from the anaconda environment by doing ‘conda list pyqt’. Apparently, they were interfering with system access by PyCharm venv dependencies.