PyQt5/6 Import Error

I have a problem with importing PyQt in my code. This is specifically a problem with Replit, cause at home in a normal IDE everything works fine.
Is there maybe any shell command i have to run first or something? And yes, I am sure I have installed it.

My Error Message:
Traceback (most recent call last):
File “”, line 2, in
from PyQt6.QtWidgets import QApplication, QMainWindow
ImportError: cannot open shared object file: No such file or directory

Thanks for the help.

Code Snippet:

import sys
from PyQt6.QtWidgets import QApplication, QMainWindow

class MainWindow(QMainWindow):
    def __init__(self):

app = QApplication(sys.argv)
window = MainWindow()

Try adding pkgs.libxkbcommon to replit.nix. When a shared file is missing, nix can usually fix it.

In this case:

sed -i 's/];/  pkgs.libxkbcommon\&/' replit.nix