Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. python scripts executable windows
Forum Updated to NodeBB v4.3 + New Features

python scripts executable windows

Scheduled Pinned Locked Moved Unsolved Language Bindings
12 Posts 3 Posters 3.8k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • khakhilK Offline
    khakhilK Offline
    khakhil
    wrote on last edited by
    #1

    hey
    greetings of the day.
    i build an .exe file from python scripts using pyinstaller by using command-

    pyinstaller.exe --onefile --windowed  app.py
    

    when i run the executable file on same system it works well but when i run it on another system all other functions works except MySQL database error.

    i want that when i run the the exe file on any system, allnecessary databases will be create automatically.

    what can i do??

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you deploy the matching plugins ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • khakhilK Offline
        khakhilK Offline
        khakhil
        wrote on last edited by khakhil
        #3

        @SGaist
        no..
        how to implement ???

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Which python bindings are you using ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          khakhilK 1 Reply Last reply
          0
          • SGaistS SGaist

            Which python bindings are you using ?

            khakhilK Offline
            khakhilK Offline
            khakhil
            wrote on last edited by
            #5

            @SGaist
            i am using PyQT.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Here you have a nice page that should get you going on how to deploy a PyQt application

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              khakhilK 1 Reply Last reply
              1
              • SGaistS SGaist

                Here you have a nice page that should get you going on how to deploy a PyQt application

                khakhilK Offline
                khakhilK Offline
                khakhil
                wrote on last edited by
                #7

                @SGaist
                didn't understand :( :(

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  What exactly ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  khakhilK 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    What exactly ?

                    khakhilK Offline
                    khakhilK Offline
                    khakhil
                    wrote on last edited by
                    #9

                    @SGaist

                    i don't understand that how to deploy plugins.
                    the link you have suggest, I tried that but successful.
                    I am using Pyinstaller.
                    please help !!!

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      One thing you can do once you have the application executable ready is to run windeployqt on it. That should bring in the missing plugins.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      mrjjM 1 Reply Last reply
                      1
                      • SGaistS SGaist

                        One thing you can do once you have the application executable ready is to run windeployqt on it. That should bring in the missing plugins.

                        mrjjM Offline
                        mrjjM Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on last edited by mrjj
                        #11

                        @SGaist
                        Hi, i talked with him about this in chat.
                        Im a py ignorant so was not sure how it shall work.

                        So after he makes a .exe from py script, the rest of the deployment is the the same (as c++)?
                        Making a folder, add the Qt dlls to it?
                        including platform folder and sql/db folder?

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          Well, after a longer search: pyqtdeploy looks very promising for that task. And then you can follow the standard Qt deployment procedure.

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          1

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved