Hello, coding guys,
as you saw in the title, my code returns a
ImportError
, here's the error below:
Traceback (most recent call last):
File "main.py", line 1, in <module>
from PyQt5.QtGui import *
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
I am running this in
Replit, but I don't know if this is something with the error.
But, anyways, here's my code:
What I have tried:
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import Qt
import sys
class Window(QMainWindow):
def __init__(self):
super().__init__()
self.setWindowFlag(Qt.FramelessWindowHint)
self.setWindowTitle("Omega")
self.setGeometry(100, 100, 400, 300)
self.label_1 = QLabel('This is a test, please come back later.', self)
self.label_1.move(100, 100)
self.label_1.setStyleSheet("background-color: Tomato;border: 3px solid Red;")
self.show()
App = QApplication("")
window = Window()
sys.exit(App.exec())