Show grafana in QWebEngineView Python

Hello everyone, i’m principiant in grafana, and i trying show a dashboard from grafana in python. For this i’m using QtWebEngineWidgets and i have the next error:

js: Uncaught SyntaxError: Unexpected token ‘=’

If you’re seeing this Grafana has failed to load its application files

  1. This could be caused by your reverse proxy settings.

  2. If you host grafana under subpath make sure your grafana.ini root_url setting includes subpath. If not using a reverse proxy make sure to set serve_from_sub_path to true.

  3. If you have a local dev build make sure you build frontend using: yarn start, yarn start:hot, or yarn build

  4. Sometimes restarting grafana-server can help

  5. Check if you are using a non-supported browser. For more information, refer to the list of supported browsers.

###python version 3.10.4
###PyQt5 version 5.15

Please someone can help me



Please show us some code?

Hi! I have the same error.

My code it is:

import sys
**from PyQt5.QtCore import ***
**from PyQt5.QtWidgets import ***
**from PyQt5.QtWebEngineWidgets import ***

class MainWindow(QMainWindow):
** def init(self):**
** super(MainWindow, self).init()**
** self.browser = QWebEngineView()**
** self.browser.setUrl(QUrl(‘http://grafanaweb’))**

** self.setCentralWidget(self.browser)**
** self.showMaximized()**

app = QApplication(sys.argv)


window = MainWindow()

It is my minimal code.

can you help me plase?