How do I fix a MESA-LOADER error while running pyqt5 on raspbian 9 stretch?












0















I want to ensure that pyqt5 is working properly on my raspberry pi. When I try to run a tutorial producing a simple window, the code produces the desired results but an error message is thrown. The tutorial in question is from http://zetcode.com/gui/pyqt5/firstprograms/. The tutorial code is included at the end of this post.



The error message I get is



MESA-LOADER: device is not located on the PCI bus
MESA-LOADER: device is not located on the PCI bus
MESA-LOADER: device is not located on the PCI bus
qt5ct: using qt5ct plugin
inotify_add_watch("/home/pi/.config/qt5ct") failed: "No such file or directory"


The operating system is “Raspbian GNU/Linux 9 (stretch)" on which I have installed “Qt version 5.7.1”. The IDE is “Thonny” on which I am running “Python 3.5.3”.



I installed pyqt5 by running the following code:



sudo apt-get update
sudo apt-get install qt5-default pyqt5-dev pyqt5-dev-tools


Here is what I have tried.



The sources https://raspberrypi.stackexchange.com/questions/84703/qcamera-get-error-mesa-loader-failed-to-retrieve-device-information and https://github.com/RPi-Distro/repo/issues/89 suggested to update the libdrm.



I updated libdrm using these instructions https://github.com/anholt/mesa/wiki/VC4-complete-Raspbian-upgrade#libdrm. I ignored the instructions before the libdrm section. I was able to update libdrm without error messages. The result was changing the error message to the one listed above. Before updating libdrm, the error message was:



MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
qt5ct: using qt5ct plugin
inotify_add_watch("/home/pi/.config/qt5ct") failed: "No such file or directory"


Therefore, updating libdrm changed “failed to retrieve device information” to “device is not located on the PCI bus”.



I wanted to update Mesa to the newest version. For that, I wanted to check the currently installed Mesa version using the following terminal input:



glxinfo | grep "OpenGL version"


The output was:



libGL error: MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
OpenGL version string: 2.1 Mesa 13.0.6


This showed me that I am running Mesa version 13.0.6, while the most recent version is 19.0.0. I tried updating Mesa using these instructions: https://github.com/anholt/mesa/wiki/VC4-complete-Raspbian-upgrade#mesa. I ignored the instructions before the Mesa section. The code executed without error messages up to the “make” command, where the following error message was thrown:



make: *** No targets specified and no makefile found.  Stop.


Even knowing where to dig deeper would be a big help for me. Should I look into reinstalling pyqt5 or focus mainly on Mesa?



Code:



#!/usr/bin/python3
# -*- coding: utf-8 -*-

import sys
from PyQt5.QtWidgets import QApplication, QWidget

if __name__ == '__main__':

app = QApplication(sys.argv)

w = QWidget()
w.resize(250, 150)
w.move(300, 300)
w.setWindowTitle('Simple')
w.show()

sys.exit(app.exec_())









share|improve this question





























    0















    I want to ensure that pyqt5 is working properly on my raspberry pi. When I try to run a tutorial producing a simple window, the code produces the desired results but an error message is thrown. The tutorial in question is from http://zetcode.com/gui/pyqt5/firstprograms/. The tutorial code is included at the end of this post.



    The error message I get is



    MESA-LOADER: device is not located on the PCI bus
    MESA-LOADER: device is not located on the PCI bus
    MESA-LOADER: device is not located on the PCI bus
    qt5ct: using qt5ct plugin
    inotify_add_watch("/home/pi/.config/qt5ct") failed: "No such file or directory"


    The operating system is “Raspbian GNU/Linux 9 (stretch)" on which I have installed “Qt version 5.7.1”. The IDE is “Thonny” on which I am running “Python 3.5.3”.



    I installed pyqt5 by running the following code:



    sudo apt-get update
    sudo apt-get install qt5-default pyqt5-dev pyqt5-dev-tools


    Here is what I have tried.



    The sources https://raspberrypi.stackexchange.com/questions/84703/qcamera-get-error-mesa-loader-failed-to-retrieve-device-information and https://github.com/RPi-Distro/repo/issues/89 suggested to update the libdrm.



    I updated libdrm using these instructions https://github.com/anholt/mesa/wiki/VC4-complete-Raspbian-upgrade#libdrm. I ignored the instructions before the libdrm section. I was able to update libdrm without error messages. The result was changing the error message to the one listed above. Before updating libdrm, the error message was:



    MESA-LOADER: failed to retrieve device information
    MESA-LOADER: failed to retrieve device information
    MESA-LOADER: failed to retrieve device information
    qt5ct: using qt5ct plugin
    inotify_add_watch("/home/pi/.config/qt5ct") failed: "No such file or directory"


    Therefore, updating libdrm changed “failed to retrieve device information” to “device is not located on the PCI bus”.



    I wanted to update Mesa to the newest version. For that, I wanted to check the currently installed Mesa version using the following terminal input:



    glxinfo | grep "OpenGL version"


    The output was:



    libGL error: MESA-LOADER: failed to retrieve device information
    MESA-LOADER: failed to retrieve device information
    MESA-LOADER: failed to retrieve device information
    OpenGL version string: 2.1 Mesa 13.0.6


    This showed me that I am running Mesa version 13.0.6, while the most recent version is 19.0.0. I tried updating Mesa using these instructions: https://github.com/anholt/mesa/wiki/VC4-complete-Raspbian-upgrade#mesa. I ignored the instructions before the Mesa section. The code executed without error messages up to the “make” command, where the following error message was thrown:



    make: *** No targets specified and no makefile found.  Stop.


    Even knowing where to dig deeper would be a big help for me. Should I look into reinstalling pyqt5 or focus mainly on Mesa?



    Code:



    #!/usr/bin/python3
    # -*- coding: utf-8 -*-

    import sys
    from PyQt5.QtWidgets import QApplication, QWidget

    if __name__ == '__main__':

    app = QApplication(sys.argv)

    w = QWidget()
    w.resize(250, 150)
    w.move(300, 300)
    w.setWindowTitle('Simple')
    w.show()

    sys.exit(app.exec_())









    share|improve this question



























      0












      0








      0








      I want to ensure that pyqt5 is working properly on my raspberry pi. When I try to run a tutorial producing a simple window, the code produces the desired results but an error message is thrown. The tutorial in question is from http://zetcode.com/gui/pyqt5/firstprograms/. The tutorial code is included at the end of this post.



      The error message I get is



      MESA-LOADER: device is not located on the PCI bus
      MESA-LOADER: device is not located on the PCI bus
      MESA-LOADER: device is not located on the PCI bus
      qt5ct: using qt5ct plugin
      inotify_add_watch("/home/pi/.config/qt5ct") failed: "No such file or directory"


      The operating system is “Raspbian GNU/Linux 9 (stretch)" on which I have installed “Qt version 5.7.1”. The IDE is “Thonny” on which I am running “Python 3.5.3”.



      I installed pyqt5 by running the following code:



      sudo apt-get update
      sudo apt-get install qt5-default pyqt5-dev pyqt5-dev-tools


      Here is what I have tried.



      The sources https://raspberrypi.stackexchange.com/questions/84703/qcamera-get-error-mesa-loader-failed-to-retrieve-device-information and https://github.com/RPi-Distro/repo/issues/89 suggested to update the libdrm.



      I updated libdrm using these instructions https://github.com/anholt/mesa/wiki/VC4-complete-Raspbian-upgrade#libdrm. I ignored the instructions before the libdrm section. I was able to update libdrm without error messages. The result was changing the error message to the one listed above. Before updating libdrm, the error message was:



      MESA-LOADER: failed to retrieve device information
      MESA-LOADER: failed to retrieve device information
      MESA-LOADER: failed to retrieve device information
      qt5ct: using qt5ct plugin
      inotify_add_watch("/home/pi/.config/qt5ct") failed: "No such file or directory"


      Therefore, updating libdrm changed “failed to retrieve device information” to “device is not located on the PCI bus”.



      I wanted to update Mesa to the newest version. For that, I wanted to check the currently installed Mesa version using the following terminal input:



      glxinfo | grep "OpenGL version"


      The output was:



      libGL error: MESA-LOADER: failed to retrieve device information
      MESA-LOADER: failed to retrieve device information
      MESA-LOADER: failed to retrieve device information
      OpenGL version string: 2.1 Mesa 13.0.6


      This showed me that I am running Mesa version 13.0.6, while the most recent version is 19.0.0. I tried updating Mesa using these instructions: https://github.com/anholt/mesa/wiki/VC4-complete-Raspbian-upgrade#mesa. I ignored the instructions before the Mesa section. The code executed without error messages up to the “make” command, where the following error message was thrown:



      make: *** No targets specified and no makefile found.  Stop.


      Even knowing where to dig deeper would be a big help for me. Should I look into reinstalling pyqt5 or focus mainly on Mesa?



      Code:



      #!/usr/bin/python3
      # -*- coding: utf-8 -*-

      import sys
      from PyQt5.QtWidgets import QApplication, QWidget

      if __name__ == '__main__':

      app = QApplication(sys.argv)

      w = QWidget()
      w.resize(250, 150)
      w.move(300, 300)
      w.setWindowTitle('Simple')
      w.show()

      sys.exit(app.exec_())









      share|improve this question
















      I want to ensure that pyqt5 is working properly on my raspberry pi. When I try to run a tutorial producing a simple window, the code produces the desired results but an error message is thrown. The tutorial in question is from http://zetcode.com/gui/pyqt5/firstprograms/. The tutorial code is included at the end of this post.



      The error message I get is



      MESA-LOADER: device is not located on the PCI bus
      MESA-LOADER: device is not located on the PCI bus
      MESA-LOADER: device is not located on the PCI bus
      qt5ct: using qt5ct plugin
      inotify_add_watch("/home/pi/.config/qt5ct") failed: "No such file or directory"


      The operating system is “Raspbian GNU/Linux 9 (stretch)" on which I have installed “Qt version 5.7.1”. The IDE is “Thonny” on which I am running “Python 3.5.3”.



      I installed pyqt5 by running the following code:



      sudo apt-get update
      sudo apt-get install qt5-default pyqt5-dev pyqt5-dev-tools


      Here is what I have tried.



      The sources https://raspberrypi.stackexchange.com/questions/84703/qcamera-get-error-mesa-loader-failed-to-retrieve-device-information and https://github.com/RPi-Distro/repo/issues/89 suggested to update the libdrm.



      I updated libdrm using these instructions https://github.com/anholt/mesa/wiki/VC4-complete-Raspbian-upgrade#libdrm. I ignored the instructions before the libdrm section. I was able to update libdrm without error messages. The result was changing the error message to the one listed above. Before updating libdrm, the error message was:



      MESA-LOADER: failed to retrieve device information
      MESA-LOADER: failed to retrieve device information
      MESA-LOADER: failed to retrieve device information
      qt5ct: using qt5ct plugin
      inotify_add_watch("/home/pi/.config/qt5ct") failed: "No such file or directory"


      Therefore, updating libdrm changed “failed to retrieve device information” to “device is not located on the PCI bus”.



      I wanted to update Mesa to the newest version. For that, I wanted to check the currently installed Mesa version using the following terminal input:



      glxinfo | grep "OpenGL version"


      The output was:



      libGL error: MESA-LOADER: failed to retrieve device information
      MESA-LOADER: failed to retrieve device information
      MESA-LOADER: failed to retrieve device information
      OpenGL version string: 2.1 Mesa 13.0.6


      This showed me that I am running Mesa version 13.0.6, while the most recent version is 19.0.0. I tried updating Mesa using these instructions: https://github.com/anholt/mesa/wiki/VC4-complete-Raspbian-upgrade#mesa. I ignored the instructions before the Mesa section. The code executed without error messages up to the “make” command, where the following error message was thrown:



      make: *** No targets specified and no makefile found.  Stop.


      Even knowing where to dig deeper would be a big help for me. Should I look into reinstalling pyqt5 or focus mainly on Mesa?



      Code:



      #!/usr/bin/python3
      # -*- coding: utf-8 -*-

      import sys
      from PyQt5.QtWidgets import QApplication, QWidget

      if __name__ == '__main__':

      app = QApplication(sys.argv)

      w = QWidget()
      w.resize(250, 150)
      w.move(300, 300)
      w.setWindowTitle('Simple')
      w.show()

      sys.exit(app.exec_())






      raspberry-pi raspbian opengl pyqt






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 5 at 10:15







      Leon K.

















      asked Feb 5 at 10:09









      Leon K.Leon K.

      12




      12






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1402195%2fhow-do-i-fix-a-mesa-loader-error-while-running-pyqt5-on-raspbian-9-stretch%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1402195%2fhow-do-i-fix-a-mesa-loader-error-while-running-pyqt5-on-raspbian-9-stretch%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Probability when a professor distributes a quiz and homework assignment to a class of n students.

          Aardman Animations

          Are they similar matrix