It is currently Sat Jul 06, 2024 9:22 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 53 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: MrQ BoxText
PostPosted: Wed Jul 13, 2022 4:21 pm  (#21) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2607
Location: California
PixLab wrote:
mackenzieh wrote:
just curious, is the new version 3.0 that is listed here or is it 5.3, which is on gimpscripts.net?


On gimpscript.net you can download only the latest version


Thanks. :)


Top
 Post subject: Re: MrQ BoxText
PostPosted: Wed Jul 13, 2022 8:51 pm  (#22) 
Offline
GimpChat Member
User avatar

Joined: May 24, 2021
Posts: 793
Location: SEA - South East Asia
Tas_mania wrote:
Hi PixLab - I tested MrQ BoxText on my MX LInux and it was missing some libs. I repacked and uploaded it to HERE.

MrQ's latest BoxText plugin from gimpscripts works with 'gimp-python2-fuse-overlay-launcher-mx-linux21-1.AppImage'
You will notice it's slightly bigger :) but has the same filename.


Hi Tas_mania,
I downloaded and replaced it, and still the BoxText not showing up :oops:
Anything I can help to solve this?
Thanks

_________________
Patrice


Top
 Post subject: Re: MrQ BoxText
PostPosted: Thu Jul 14, 2022 12:22 am  (#23) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
Hi Patrice, I have not tested Gimp 2.10.32 on my MX.

This will tell you why from a terminal where the appimage is located:
./gimp-python2-fuse-overlay-launcher-mx-linux21-1.Appimage --verbose
You can interrupt it before the Gimp window opens with Ctrl + z
Then you will see if or why the wire read failed.

If it crashes when MrQ's Text Box opens an explanation will be in the terminal (probably) :)


Top
 Post subject: Re: MrQ BoxText
PostPosted: Fri Jul 15, 2022 8:07 pm  (#24) 
Offline
GimpChat Member
User avatar

Joined: May 24, 2021
Posts: 793
Location: SEA - South East Asia
Tas_mania wrote:
Hi Patrice, I have not tested Gimp 2.10.32 on my MX.

This will tell you why from a terminal where the appimage is located:
./gimp-python2-fuse-overlay-launcher-mx-linux21-1.Appimage --verbose
You can interrupt it before the Gimp window opens with Ctrl + z
Then you will see if or why the wire read failed.

If it crashes when MrQ's Text Box opens an explanation will be in the terminal (probably) :)


MrQ's don't crash, it just don't appear in the menu
Below is GIMP --verbose (GIMP was too fast to open I did not have time to stop it :mrgreen: )

$ ./gimp-python2-fuse-overlay-launcher-mx-linux21-1.AppImage --verbose
Exhausted all available authentication mechanisms (tried: EXTERNAL) (available: EXTERNAL)
Parsing '/etc/gimp/2.0/gimprc' for configured language.
Parsing '/home/Patrice/.config/GIMP/2.10/gimprc' for configured language.
No language property found.
INIT: gimp_load_config
Parsing '/home/Patrice/.config/GIMP/2.10/unitrc'
Parsing '/etc/gimp/2.0/gimprc'
Parsing '/home/Patrice/.config/GIMP/2.10/gimprc'
gimp: GEGL-WARNING: Parsing of color string "#" into GeglColor failed! Using transparent cyan instead
gimp: GEGL-WARNING: Parsing of color string "#" into GeglColor failed! Using transparent cyan instead
Adding icon theme 'Color' (/usr/share/gimp/2.0/icons/Color)
Adding icon theme 'Legacy' (/usr/share/gimp/2.0/icons/Legacy)
Adding icon theme 'Symbolic' (/usr/share/gimp/2.0/icons/Symbolic)
Adding icon theme 'Symbolic-High-Contrast' (/usr/share/gimp/2.0/icons/Symbolic-High-Contrast)
Adding icon theme 'Symbolic-Inverted' (/usr/share/gimp/2.0/icons/Symbolic-Inverted)
Adding icon theme 'Symbolic-Inverted-High-Contrast' (/usr/share/gimp/2.0/icons/Symbolic-Inverted-High-Contrast)
Loading icon theme 'Color'
Adding theme 'Dark' (/usr/share/gimp/2.0/themes/Dark)
Adding theme 'Gray' (/usr/share/gimp/2.0/themes/Gray)
Adding theme 'Light' (/usr/share/gimp/2.0/themes/Light)
Adding theme 'System' (/usr/share/gimp/2.0/themes/System)
Writing '/home/Patrice/.config/GIMP/2.10/themerc'
Trying splash '/home/Patrice/.config/GIMP/2.10/gimp-splash.png' ... failed
Trying splash '/usr/share/gimp/2.0/images/gimp-splash.png' ... OK
INIT: gimp_initialize
INIT: gimp_real_initialize
gui_dbus_name_lost: connection to the bus cannot be established.
Parsing '/usr/lib/gimp/2.0/interpreters/pygimp.interp'
Parsing '/usr/lib/gimp/2.0/interpreters/default.interp'
Parsing '/usr/lib/gimp/2.0/environ/pygimp.env'
Parsing '/usr/lib/gimp/2.0/environ/default.env'
INIT: gui_initialize_after_callback
INIT: gimp_restore
Parsing '/home/Patrice/.config/GIMP/2.10/parasiterc'
Loading 'brush factory' data
  Loading /usr/share/gimp/2.0/brushes/Basic/1-pixel.vbr

  ....../ I removed all the loading /parsing / clipboard
 
INIT: gimp_real_restore
Parsing '/home/Patrice/.config/GIMP/2.10/pluginrc'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-rawtherapee/file-rawtherapee'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-darktable/file-darktable'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/MrQ BoxText.py'
Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/plug-ins/MrQ BoxText.py", line 63, in <module>
    import random
  File "/usr/lib/python2.7/random.py", line 49, in <module>
    import hashlib as _hashlib
  File "/usr/lib/python2.7/hashlib.py", line 129, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/lib/python2.7/hashlib.py", line 98, in __get_openssl_constructor
    f(usedforsecurity=False)
TypeError: openssl_md5() takes no keyword arguments
gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
Terminating plug-in: '/usr/lib/gimp/2.0/plug-ins/MrQ BoxText.py'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/palette-sort/palette-sort.py'
Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/plug-ins/palette-sort/palette-sort.py", line 21, in <module>
    from random import randint
  File "/usr/lib/python2.7/random.py", line 49, in <module>
    import hashlib as _hashlib
  File "/usr/lib/python2.7/hashlib.py", line 129, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/lib/python2.7/hashlib.py", line 98, in __get_openssl_constructor
    f(usedforsecurity=False)
TypeError: openssl_md5() takes no keyword arguments
gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
Terminating plug-in: '/usr/lib/gimp/2.0/plug-ins/palette-sort/palette-sort.py'
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/file-openraster/file-openraster.py'
Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/plug-ins/file-openraster/file-openraster.py", line 16, in <module>
    import os, sys, tempfile, zipfile
  File "/usr/lib/python2.7/tempfile.py", line 35, in <module>
    from random import Random as _Random
  File "/usr/lib/python2.7/random.py", line 49, in <module>
    import hashlib as _hashlib
  File "/usr/lib/python2.7/hashlib.py", line 129, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/lib/python2.7/hashlib.py", line 98, in __get_openssl_constructor
    f(usedforsecurity=False)
TypeError: openssl_md5() takes no keyword arguments
gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
Terminating plug-in: '/usr/lib/gimp/2.0/plug-ins/file-openraster/file-openraster.py'
Initializing plug-in: '/usr/lib/gimp/2.0/plug-ins/file-rawtherapee/file-rawtherapee'
Initializing plug-in: '/usr/lib/gimp/2.0/plug-ins/file-heif/file-heif'
Initializing plug-in: '/usr/lib/gimp/2.0/plug-ins/file-darktable/file-darktable'
Writing '/home/Patrice/.config/GIMP/2.10/pluginrc'
Starting extension: 'extension-script-fu'
Plug-in "script-fu"
(/usr/lib/gimp/2.0/plug-ins/script-fu/script-fu) is installing procedure "script-fu-selection-to-anim-image" with a full menu path "<Image>/Filters/Animation/Animators/Selection to AnimImage..." as menu label, this deprecated and will be an error in GIMP 3.0
Plug-in "script-fu"
(/usr/lib/gimp/2.0/plug-ins/script-fu/script-fu) is installing procedure "script-fu-guide-to-path" with a full menu path "<Image>/Image/Guides/Guides To Path Simple" as menu label, this deprecated and will be an error in GIMP 3.0
Plug-in "script-fu"
(/usr/lib/gimp/2.0/plug-ins/script-fu/script-fu) is installing procedure "script-fu-sg-anim-overlay-background-merged" with a full menu path "<Image>/Layer/Multiple-Layers/Background over-under/_Overlay background merged" as menu label, this deprecated and will be an error in GIMP 3.0
Plug-in "script-fu"
(/usr/lib/gimp/2.0/plug-ins/script-fu/script-fu) is installing procedure "script-fu-sg-anim-overlay-background" with a full menu path "<Image>/Layer/Multiple-Layers/Background over-under/_Overlay background not merged" as menu label, this deprecated and will be an error in GIMP 3.0
Plug-in "script-fu"
(/usr/lib/gimp/2.0/plug-ins/script-fu/script-fu) is installing procedure "script-fu-sg-anim-combine-background-merged" with a full menu path "<Image>/Layer/Multiple-Layers/Background over-under/_Underlay background merged" as menu label, this deprecated and will be an error in GIMP 3.0
Plug-in "script-fu"
(/usr/lib/gimp/2.0/plug-ins/script-fu/script-fu) is installing procedure "script-fu-sg-anim-combine-background" with a full menu path "<Image>/Layer/Multiple-Layers/Background over-under/_Underlay background not merged" as menu label, this deprecated and will be an error in GIMP 3.0
Plug-in "script-fu"
(/usr/lib/gimp/2.0/plug-ins/script-fu/script-fu) is installing procedure "script-fu-gap-dup-continue" with a full menu path "<Image>/Video/Duplicate Continue" as menu label, this deprecated and will be an error in GIMP 3.0
INIT: gui_restore_after_callback
Parsing '/home/Patrice/.config/GIMP/2.10/menurc'
Parsing '/home/Patrice/.config/GIMP/2.10/action-history'
Parsing '/home/Patrice/.config/GIMP/2.10/devicerc'
Parsing '/home/Patrice/.config/GIMP/2.10/controllerrc'
loading menu '/usr/share/gimp/2.0/menus/image-menu.xml' for /image-menubar



_________________
Patrice


Top
 Post subject: Re: MrQ BoxText
PostPosted: Sun Jul 17, 2022 5:48 pm  (#25) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
Hi PixLab,
This is the error you got on BoxText:
Querying plug-in: '/usr/lib/gimp/2.0/plug-ins/MrQ BoxText.py'
Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/plug-ins/MrQ BoxText.py", line 63, in <module>
    import random
  File "/usr/lib/python2.7/random.py", line 49, in <module>
    import hashlib as _hashlib
  File "/usr/lib/python2.7/hashlib.py", line 129, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/lib/python2.7/hashlib.py", line 98, in __get_openssl_constructor
    f(usedforsecurity=False)
TypeError: openssl_md5() takes no keyword arguments
gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
Terminating plug-in: '/usr/lib/gimp/2.0/plug-ins/MrQ BoxText.py'


I don't have any ideas on this so sorry.


Top
 Post subject: Re: MrQ BoxText
PostPosted: Mon Jul 18, 2022 12:36 am  (#26) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
Looks like a problem in your Python 2.7 and OpenSSL installs. In a command prompt, if you do:
>python2.7
>>> import random
>>> exit()


Do you get:

>python2.7
Python 2.7.18 (default, Jul  1 2022, 12:27:04)
[GCC 9.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import random
>>> exit()


Or do you see errors?

In case you have errors, it is probably a problem with your distribution (see this), because you have incompatible Python modules (random shouldn't be using a keyword arg which isn't in the hashlib module).

_________________
Image


Top
 Post subject: Re: MrQ BoxText
PostPosted: Mon Jul 18, 2022 2:54 am  (#27) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
Hi ofnuts.
Python 2.7 is running inside an appimage not from the OS. The appimage loads whatever Gimp has been installed. At first I thought this was a mistake but then realized it has advantages. Getting it to work on MXLinux was interesting :)

Image

It has loaded the default Gimp that came with the install and python2 scripts work including MrQBoxText and python console.
'Random' seems to be working OK.

Image

I use a script that makes appimages relatively easy but I made the mistake of thinking libs are in the appimage when really they are in the OS. I just did a clean minimal install of Xubuntu and discovered my early appimages don't load some stuff. I'm fixing that now. Also the appimage needs to carry all the python2 when there is no python2 in the OS.


Top
 Post subject: Re: MrQ BoxText
PostPosted: Mon Jul 18, 2022 4:41 am  (#28) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 1826
Tas, your appimage works great here loading the PPA version of Gimp. I removed Python 2 from my system and your appimage loads Python 2 needed for Python scripts just fine. I also have no problem running the MrQ BoxText script here in Linux Mint 20.3.

MXlinux is based on Debian, so I guess things are a bit different.


Top
 Post subject: Re: MrQ BoxText
PostPosted: Mon Jul 18, 2022 8:27 pm  (#29) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
Hi racer-x
I'm happy it's working. Overlay and fuse-overlay are the two appimages I will keep. Ubuntu-based distros have overlay support in the kernel but the rest need to install fuse-overlayfs. The reason MathMap is included is because it calls Gimp. I made Gimp a requirement not a dependency, so instead of including Gimp it just looks for it :)

I found "sudo apt install gcc" was needed on this bare-bones system. There is no telling what is included or excluded from most distros today :)

PixLab
This looks like an OpenSSL incompatibility somewhere.


Top
 Post subject: Re: MrQ BoxText
PostPosted: Fri Jul 22, 2022 9:01 am  (#30) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
Users with working Python can try the new Ver.6.0.
Who likes ofn-gradient-along-path now has a 'Preview' option.


Attachments:
GAPbyOfn.jpg
GAPbyOfn.jpg [ 145.11 KiB | Viewed 306 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: MrQ BoxText
PostPosted: Fri Jul 22, 2022 9:13 am  (#31) 
Offline
GimpChat Member
User avatar

Joined: May 24, 2021
Posts: 793
Location: SEA - South East Asia
ofnuts wrote:
Looks like a problem in your Python 2.7 and OpenSSL installs. In a command prompt, if you do:
>python2.7
>>> import random
>>> exit()


Do you get:

>python2.7
Python 2.7.18 (default, Jul  1 2022, 12:27:04)
[GCC 9.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import random
>>> exit()


Or do you see errors?

In case you have errors, it is probably a problem with your distribution (see this), because you have incompatible Python modules (random shouldn't be using a keyword arg which isn't in the hashlib module).


I got this
for python2 I knew it (not installed as I pass by Tas_mania appimage), but "import random" what is that? :shock:

Patrice@raphael:~
$ python2.7
Command 'python2.7' not found, but can be installed with:
sudo apt install python2.7-minimal
Patrice@raphael:~
$ import random

import-im6.q16: attempt to perform an operation not allowed by the security policy `PS' @ error/constitute.c/IsCoderAuthorized/421.
Patrice@raphael:~
$

_________________
Patrice


Last edited by PixLab on Fri Jul 22, 2022 9:25 am, edited 1 time in total.

Top
 Post subject: Re: MrQ BoxText
PostPosted: Fri Jul 22, 2022 9:23 am  (#32) 
Offline
GimpChat Member
User avatar

Joined: May 24, 2021
Posts: 793
Location: SEA - South East Asia
Tas_mania wrote:
Hi racer-x
PixLab
This looks like an OpenSSL incompatibility somewhere.


OK, how to solve it? this would be only with GIMP 2.10.32 and not with GIMP 2.10.28
I explain
I did removed GIMP 2.10.32 that I installed from the test repo, and reinstalled GIMP 2.10.28 instead (from "Popular" in the repo) and everything is working fine now with your appimage even the MareroQ plugins as well
(although I like that they did put back the visual references in the layers/channel/path dialogs in the GIMP 2.10.32)

In all case thanks a lot Tas_mania / Ofnuts and MareroQ :bigthup

_________________
Patrice


Top
 Post subject: Re: MrQ BoxText
PostPosted: Fri Jul 22, 2022 9:05 pm  (#33) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
Hi PixLab thanks for being a tester of the Gimp appimages :)

in the Python-fu console >>import random (it leaves no message)
I recon you found Gimp 2.10.32 here.

I may test it sometime.

Thanks for getting me trying MX, it's fast on old hardware like my test boxes. I could move over to it for graphics.


Top
 Post subject: Re: MrQ BoxText
PostPosted: Fri Jul 22, 2022 10:22 pm  (#34) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Not sure if anyone has noticed this or not yet?

Attachment:
MrQ_Box-Warning-2022-07-22_230800.jpg
MrQ_Box-Warning-2022-07-22_230800.jpg [ 243.04 KiB | Viewed 475 times ]


Took me a few minutes to figure out why the second time i opened the filter there was no preview check box. LOL :P

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: MrQ BoxText
PostPosted: Fri Jul 22, 2022 10:35 pm  (#35) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Excellent plug-in folks! :) Lots of fun with this one. In my opinion this should be included in each new stable Gimp release.

Attachment:
MrQ-Box-Text_RD.png
MrQ-Box-Text_RD.png [ 59.86 KiB | Viewed 472 times ]

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: MrQ BoxText
PostPosted: Fri Jul 22, 2022 10:48 pm  (#36) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
The initial (startup) window size is different for each plugin with a preview in the individually built-in fu-preview (so that the user does not have to install it additionally and that plugins without a preview work without any changes).
Is this also the case for version 6.0? (I increased the height of the window a little).
This can be easily adjusted to the size of your own screen by editing only 2 lines:
mainly:
dialog.set_default_size (1150, 680)

and as an auxiliary:
dialog.la_previ.set_size_request (512,512)

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: MrQ BoxText
PostPosted: Sat Jul 23, 2022 12:30 am  (#37) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
MareroQ wrote:
The initial (startup) window size is different for each plugin with a preview in the individually built-in fu-preview (so that the user does not have to install it additionally and that plugins without a preview work without any changes).
Is this also the case for version 6.0? (I increased the height of the window a little).
This can be easily adjusted to the size of your own screen by editing only 2 lines:
mainly:
dialog.set_default_size (1150, 680)

and as an auxiliary:
dialog.la_previ.set_size_request (512,512)


Cool! I'll try that and thanks. And i believe i have version 6 installed.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: MrQ BoxText
PostPosted: Wed Jul 27, 2022 12:40 pm  (#38) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
In Ver.6.1, the ability to use the path-waves-0.2.py plugin by Ofnuts has been added.


Attachments:
BT-61-wawe square.jpg
BT-61-wawe square.jpg [ 153.62 KiB | Viewed 421 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: MrQ BoxText
PostPosted: Sun Jul 31, 2022 9:17 am  (#39) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
MareroQ wrote:
In Ver.6.1, the ability to use the path-waves-0.2.py plugin by Ofnuts has been added.


Just grabbed it thank you MareroQ! :bigthup :clap This plug-in is excellent. A must have. :hi5

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: MrQ BoxText
PostPosted: Sun Jul 31, 2022 10:03 am  (#40) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Had to give it a quick try before bed and work. :) :bigthup

Sort of looks like a row of hair brushes. :rofl

Attachment:
Mr-Q-Box_RD.png
Mr-Q-Box_RD.png [ 306.89 KiB | Viewed 361 times ]

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
Post new topic Reply to topic  [ 53 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group