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.
  • K Offline
    K Offline
    khakhil
    wrote on 30 Aug 2016, 08:02 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 30 Aug 2016, 23:01 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
      • K Offline
        K Offline
        khakhil
        wrote on 31 Aug 2016, 05:22 last edited by khakhil
        #3

        @SGaist
        no..
        how to implement ???

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 31 Aug 2016, 11:07 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

          K 1 Reply Last reply 1 Sept 2016, 07:45
          0
          • S SGaist
            31 Aug 2016, 11:07

            Which python bindings are you using ?

            K Offline
            K Offline
            khakhil
            wrote on 1 Sept 2016, 07:45 last edited by
            #5

            @SGaist
            i am using PyQT.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 1 Sept 2016, 10:52 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

              K 1 Reply Last reply 6 Sept 2016, 12:05
              1
              • S SGaist
                1 Sept 2016, 10:52

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

                K Offline
                K Offline
                khakhil
                wrote on 6 Sept 2016, 12:05 last edited by
                #7

                @SGaist
                didn't understand :( :(

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 6 Sept 2016, 13:37 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

                  K 1 Reply Last reply 7 Sept 2016, 09:03
                  0
                  • S SGaist
                    6 Sept 2016, 13:37

                    What exactly ?

                    K Offline
                    K Offline
                    khakhil
                    wrote on 7 Sept 2016, 09:03 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
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 7 Sept 2016, 20:30 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

                      M 1 Reply Last reply 8 Sept 2016, 20:27
                      1
                      • S SGaist
                        7 Sept 2016, 20:30

                        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.

                        M Offline
                        M Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on 8 Sept 2016, 20:27 last edited by mrjj 9 Aug 2016, 20:28
                        #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
                        • S Offline
                          S Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on 8 Sept 2016, 21:52 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

                          1/12

                          30 Aug 2016, 08:02

                          • Login

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