• Login
Community
  • Login

Python Script support in versions of npp > 7.9.2

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
14 Posts 5 Posters 2.7k Views
Loading More Posts
  • 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.
  • Y
    Yodadude
    last edited by Jun 7, 2019, 12:11 AM

    I make use of the Python Script plug-in, which includes having toolbar icons linked to python scripts that perform actions. This is a real bonus, but I have found that with the new Plugin Admin version, the Python Script plugin disappears. I just tried version 7.7 installer and still encountered this problem. But, if I install version 7.6.2, the python script plugin re-appears.
    The Python Script plugin was installed via a separate MSI installer - don’t know if this makes any difference.

    I would really like to keep NPP up-to-date, but now it has become problematic.

    Thanks

    1 Reply Last reply Reply Quote 0
    • A
      andrecool-68
      last edited by andrecool-68 Jun 7, 2019, 3:51 AM Jun 7, 2019, 3:49 AM

      @Yodadude
      Install the latest release of the plugin manually
      https://github.com/bruderstein/PythonScript/releases
      Directory structure:

      Imgur

      Imgur

      Y 2 Replies Last reply Jun 13, 2019, 11:50 PM Reply Quote 4
      • A
        Alan Kilborn
        last edited by Jun 7, 2019, 12:20 PM

        Be aware that Pythonscript and N++ 7.7 64 bits are currently incompatible if you have any scripts that use notifications (maybe that’s a rare use for most people that even touch Pythonscript).

        E 1 Reply Last reply Jun 10, 2019, 9:29 PM Reply Quote 4
        • E
          Ekopalypse @Alan Kilborn
          last edited by Jun 10, 2019, 9:29 PM

          @Alan-Kilborn

          pssst, Alan, are you there?

          A 1 Reply Last reply Jun 10, 2019, 10:08 PM Reply Quote 0
          • A
            Alan Kilborn @Ekopalypse
            last edited by Jun 10, 2019, 10:08 PM

            @Ekopalypse

            Ummmm…yes?

            E 1 Reply Last reply Jun 10, 2019, 10:12 PM Reply Quote 0
            • E
              Ekopalypse @Alan Kilborn
              last edited by Jun 10, 2019, 10:12 PM

              @Alan-Kilborn

              how do you use PS? With local python installation?

              A 1 Reply Last reply Jun 10, 2019, 10:36 PM Reply Quote 0
              • A
                Alan Kilborn @Ekopalypse
                last edited by Jun 10, 2019, 10:36 PM

                @Ekopalypse

                With local python installation?

                I’m sorry but I don’t know what that means. :(

                E 1 Reply Last reply Jun 10, 2019, 10:39 PM Reply Quote 0
                • E
                  Ekopalypse @Alan Kilborn
                  last edited by Jun 10, 2019, 10:39 PM

                  @Alan-Kilborn

                  python comes with python27.dll but you can use a local python installation if
                  you go to plugins->pythonscript->configuration and check prefer installed python …
                  Of course, you would do this only, if you have python installed locally.
                  If this is the case, then this might be of interest for you.

                  A 1 Reply Last reply Jun 11, 2019, 12:53 AM Reply Quote 0
                  • A
                    Alan Kilborn @Ekopalypse
                    last edited by Jun 11, 2019, 12:53 AM

                    @Ekopalypse

                    Oh, yes, now I recall that. I have never felt the need to do that because the only Python 2.7 I’ve ever had on my system is the one that comes with Notepad++'s Pythonscript. Everything else I do is (and is mandated by my company to be done in) Python3!

                    1 Reply Last reply Reply Quote 0
                    • Y
                      Yodadude @andrecool-68
                      last edited by Jun 13, 2019, 11:50 PM

                      @andrecool-68 Thanks for that. I will give it a try. (I use 32bit NPP anyway, so the 64bit incompatibility will not be an issue).

                      1 Reply Last reply Reply Quote 0
                      • Y
                        Yodadude @andrecool-68
                        last edited by Jun 14, 2019, 12:36 AM

                        @andrecool-68 Just tried this and it didn’t work.
                        My Notepad++/plugins folder already contains the PythonScript.dll and PythonScript folder, but I went and tried doing the minimal update of 7.7 and PythonScript plugins disappears. I repeated this process, going backwards through versions of NPP, i.e. 7.6.6, 7.6.4, and its only when 7.6.2 is installed that the PythonScript plugin re-appears.

                        E 1 Reply Last reply Jun 14, 2019, 1:01 PM Reply Quote 1
                        • E
                          Ekopalypse @Yodadude
                          last edited by Jun 14, 2019, 1:01 PM

                          @Yodadude

                          that sounds strange, indeed.
                          How did you install 7.7?
                          Can you post the debug-info from the ? menu (the last menu item of npp)?

                          1 Reply Last reply Reply Quote 1
                          • P
                            PeterJones
                            last edited by Jun 14, 2019, 1:21 PM

                            @Yodadude said:

                            My Notepad++/plugins folder already contains the PythonScript.dll and PythonScript folder, but I went and tried doing the minimal update of 7.7 and PythonScript plugins disappears. I repeated this process, going backwards through versions of NPP, i.e. 7.6.6, 7.6.4, and its only when 7.6.2 is installed that the PythonScript plugin re-appears.

                            Which tells me that your copy of PythonScript (PythonScript.dll) is at plugins\PythonScript.dll, which was the old location for NPP < v7.6.3, rather than at plugins\PythonScript\PythonScript.dll, for NPP >= v7.6.3. Please follow @Meta-Chuh 's “Guide: How to install the PythonScript plugin on Notepad++ 7.6.3, 7.6.4 and above”

                            1 Reply Last reply Reply Quote 2
                            • Y
                              Yodadude
                              last edited by Jun 20, 2019, 11:57 PM

                              That worked a treat!

                              Thanks.

                              1 Reply Last reply Reply Quote 2
                              5 out of 14
                              • First post
                                5/14
                                Last post
                              The Community of users of the Notepad++ text editor.
                              Powered by NodeBB | Contributors