![]() |
Converting python plugin-in shellout.py from gimp 2.x to 3.x - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: Gimp 2.99 & Gimp 3.0 (https://www.gimp-forum.net/Forum-Gimp-2-99-Gimp-3-0) +--- Thread: Converting python plugin-in shellout.py from gimp 2.x to 3.x (/Thread-Converting-python-plugin-in-shellout-py-from-gimp-2-x-to-3-x) |
RE: Converting python plugin-in shellout.py from gimp 2.x to 3.x - iiey - 03-26-2025 (03-26-2025, 04:03 PM)Neptunus Wrote: Hi iiey, Hi Neptunus & denzjos, 1. Firstly, maybe you could check if your gimp3 fully installed, or not. By putting this file into .../plugin-ins/test-dialog/test-dialog.py and see if the test plugin is available under Filters/development/Demos after restarting gimp? If the example is not there, then Ofnuts may correct that you should reinstalled the latest gimp3 and ensure that the python component is not missing. [attachment=13267] 2. Otherwise, please check by starting "C:\Program Files\gimp3\bin\gimp-console-3.0.exe" instead of gimp gui program. If there is an issue with the plugin, it may output some hints there. [attachment=13266] 3. Select the nikplugin.py file, right-click > properties > securities and make sure that read & execute is checked. Let me know if you find out something! (03-26-2025, 08:01 PM)Zbyma72age Wrote:(03-25-2025, 11:20 PM)iiii Wrote: Cześć nchen, Hi Zbyma72age, Thank you for testing out, we use the old Google Nik Collection that is still out there on the internet. The "HDR Efex Pro 2" alone has an issue, that it cannot save the processed image back to the input image, you can also test it by running the program directly: Code: C:\Program Files\Google\Nik Collection\HDR Efex Pro 2> & './HDR Efex Pro 2.exe' MY_INPUT_IMAGE.jpg One stupid workaround is, you could input the path "C:\Users\YOUR_USERNAME\AppData\Local\Temp\TmpNik.jpg" by "Save Image as..." manually and click "Save". RE: Converting python plugin-in shellout.py from gimp 2.x to 3.x - iiey - 03-27-2025 (03-26-2025, 10:47 PM)iiey Wrote: 1. Firstly, maybe you could check if your gimp3 fully installed, or not. By putting this file into .../plugin-ins/test-dialog/test-dialog.py and see if the test plugin is available under Filters/development/Demos after restarting gimp? Other debugging ideas are: 0.0 Ensure you downloaded the latest commit to avoid any intermediate error. The content should be identical with nikplugin.py because python is indent sensitive. [attachment=13269] 0.1 Ensure that we place the plugin folder where your GIMP3 expected, if it was not a machine installation but only user installation, it will be different. Check here: GIMP > Edit > Preferences > Folders > Plug-ins 0.2 If the plugin is placed in the correct folder, check: GIMP > Filters > Development > Python-Fu > Python Console Input these lines and press enter, if error occurs, then gimp python modules are missing, reinstall may help. Code: import gi Please let me know if anything helps! RE: Converting python plugin-in shellout.py from gimp 2.x to 3.x - denzjos - 03-27-2025 Installed last gimp version, put the nikplugin in the right folder, tried the gi lines in the python console (result, no errors) Tried 'test dialog' : [attachment=13270] But can't see the test file nor the nikplugin in the gimp filters RE: Converting python plugin-in shellout.py from gimp 2.x to 3.x - Neptunus - 03-27-2025 Hi iiey, I uninstalled version 3.0.0 of GIMP and installed version 3.0.2. The nik collection works without any new action. Nikplugin is ailready at the right place. Many thanks for what you did ! Best regards, Neptunus RE: Converting python plugin-in shellout.py from gimp 2.x to 3.x - denzjos - 03-27-2025 Placed the nikplugin.py file in the right plugin folder and changed this in the nikplugin.py file : [attachment=13272] Still nothing to see in gimp RE: Converting python plugin-in shellout.py from gimp 2.x to 3.x - iiey - 03-27-2025 (03-27-2025, 09:38 AM)Neptunus Wrote: Hi iiey, Hi Neptunus, You are welcome, glad it help! ------------------------------------------------------------------------------------- (03-27-2025, 08:44 AM)denzjos Wrote: Installed last gimp version, put the nikplugin in the right folder, tried the gi lines in the python console (result, no errors) Your NIK_BASE_PATH looks okay. If programs not found, there will be a popup error message when clicking on Filters/NikCollection. But you still stuck at the first step, that plugin is not showed. So, did you mean that test-dialog don't appear in Filters/Development/Demos either? It's a very interesting case! Update: not sure whether your problem is related to this issue: https://discuss.pixls.us/t/completely-unexpected-bug-in-win-gimp-3-0-0-no-python-plug-ins-work/48948/9 v3.0.2 works for some, others not. In the bug report, they planned to fix in v3.0.4 milestone. I'm really out of idea, do other gimp developers in the forum know what is happening here? RE: Converting python plugin-in shellout.py from gimp 2.x to 3.x - denzjos - 03-27-2025 After erasing the previous gimp 3.x files (including cleaning register), I reinstalled gimp 3.0.2-1. The following plugins have I installed (see picture), I still can't see the nikplugin, the other plugins are visible also the test-dialog under Filters/development/Demos. [attachment=13282] [attachment=13283] RE: Converting python plugin-in shellout.py from gimp 2.x to 3.x - iiey - 03-27-2025 (03-27-2025, 05:17 PM)denzjos Wrote: After erasing the previous gimp 3.x files (including cleaning register), I reinstalled gimp 3.0.2-1. The following plugins have I installed (see picture), I still can't see the nikplugin, the other plugins are visible also the test-dialog under Filters/development/Demos. Hi denzjos, I made some changes today, it should not affect the result. But may it worth to try once again by using the new version (download file), and run gimp-console in verbose to check for error ouput about nik (via terminal Powershell or CommandPrompt)? Code: GIMP_INSTALL/bin/gimp-console-3.0.exe --verbose After that, check again with GUI gimp program. RE: Converting python plugin-in shellout.py from gimp 2.x to 3.x - denzjos - 03-28-2025 iiey, with your new version of nikplugin.py I was able to use the NIK collection in gimp 3.0. 2-1. Thanks for the effort you put into making this possible. [attachment=13294] RE: Converting python plugin-in shellout.py from gimp 2.x to 3.x - iiey - 03-28-2025 (03-28-2025, 08:15 AM)denzjos Wrote: iiey, with your new version of nikplugin.py I was able to use the NIK collection in gimp 3.0. 2-1. Thanks for the effort you put into making this possible. You are welcome, glad to know that it finally works. |