GIMP Chat
http://gimpchat.com/

(contactsheet) error in Windows-Python-Gimp-2.8.20?
http://gimpchat.com/viewtopic.php?f=8&t=15343
Page 1 of 1

Author:  dinasset [ Sat Mar 04, 2017 1:09 pm ]
Post subject:  (contactsheet) error in Windows-Python-Gimp-2.8.20?

GIMP Version: 2.8.20
Operating System: Windows
GIMP Experience: Basic Level

List any ERROR messages you received:
the filter ends abnormally as soon as the user select a folder



Hi "gurus",
this is a thread appendix to the other one entitled indexprint.
Following the indications of moroquendo i downloaded/installed the extensions pack.
This solved indexprint problem: it runs on my PC!
Contactsheet on the contrary starts but ends abnormally as soon as the user select the input folder.
moroquendo did also a "clean" install on his windows 7 environment and got the same result (see his comment on the other thread).
It seems that the way the filter uses for accessing the folder is not appropriate for Windows (I have Windows 10, moroquendo Windows 7), while that same version works properly in Ubuntu.
Note that if the user does not perform the folder selection the filter starts (but does nothing obviously).
Only to learn a bit of python+windows+gimp:
- could a guru have a look into the code and see what's wrong?
Thanks a heap.

Attachment:
contactsheet-v2.16.py.zip [7.84 KiB]
Downloaded 152 times


It's really to learn, because -having indexprint running- there is no strict need to have contactsheet also running (indexprint has replaced contactsheet, with improvements)

Edit:
PF_DIRNAME does not work in Windows+Gimp-2.8.20+python ?

Author:  moroquendo [ Sat Mar 04, 2017 1:50 pm ]
Post subject:  Re: contactsheet (question for Windows-Python experts)

Additional. Contactsheet does also not run in Gimp 2.8.20 for Linux.

More information. The first contactsheet was developed by Robert with Python 2.4 32 bits. Later I did the job first with 2.4 and then 2.6 32 bits python.

Author:  rich2005 [ Sat Mar 04, 2017 2:35 pm ]
Post subject:  Re: contactsheet (question for Windows-Python experts)

moroquendo wrote:
Additional. Contactsheet does also not run in Gimp 2.8.20 for Linux....
...snip...


Well it works here, still talking Kubuntu 16.04 and Gimp 2.8.20

Attachment:
216.jpg
216.jpg [ 164.42 KiB | Viewed 3056 times ]


Only strange thing are the version numbers in the menu v. the plugin dialog 2.16 v 2.15 - an oversight.

Where it does not work is in Gimp dev version 2.9.5 where the error is
NameError: global name 'WHITE_FILL' is not defined
Beyond my limited powers to fix ;)

Author:  dinasset [ Sat Mar 04, 2017 2:53 pm ]
Post subject:  Re: contactsheet (question for Windows-Python experts)

Rich, a part that you are running Kubuntu, did you have a look into the code?
Is there something in the way the files inside the selected folder are accessed that perhaps requires some additional python feature?

Author:  moroquendo [ Sat Mar 04, 2017 3:00 pm ]
Post subject:  Re: contactsheet (question for Windows-Python experts)

Downloaded from node 120 (registry) contactsheet but it still refuses to work.

And... it is correct that you will see 2.15 and 2.16 that's an little bug you can easily correct.

But I'm now even more puzzled working on Kubuntu and not on Xubuntu :gaah

Author:  moroquendo [ Sat Mar 04, 2017 3:04 pm ]
Post subject:  Re: contactsheet (question for Windows-Python experts)

dinasset wrote:
Rich, a part that you are running Kubuntu, did you have a look into the code?
Is there something in the way the files inside the selected folder are accessed that perhaps requires some additional python feature?

In earlier days you have to install Python for Gimp now it is more or less integrated in Gimp.

@Rich2005
Which version Gimp, Python, PyGTK, GTK2 do you use also 32 or 64 bits.

Author:  rich2005 [ Sat Mar 04, 2017 3:33 pm ]
Post subject:  Re: contactsheet (question for Windows-Python experts)

moroquendo wrote:
@Rich2005
Which version Gimp, Python, PyGTK, GTK2 do you use also 32 or 64 bits.


Kubuntu 16.04 64 bits with kubuntu-ppa backports enabled.
Gimp 2.8.20 from ubuntu ppa
python is 2.7.12 -this is a Gimp dependency = 2.7
py-gtk is the package python-gtk 2.24 - this is a Gimp dependency >=2.8.0
gtk2 - libgtk2.0-0 is 2.24.30 - this is a Gimp dependency >=2.24.1

Packing in for the night but I do have a Xubuntu VM that I use for assembling a Gimp 2.9.5 appimage. I will dig the base VM out of my archive tomorrow and see what happens.

Author:  dinasset [ Sun Mar 05, 2017 1:20 am ]
Post subject:  Re: contactsheet (question for Windows-Python experts)

for those able to read error log file, this is the error log when contactsheet crashes

Attachment:
Report.zip [2.87 KiB]
Downloaded 115 times

Author:  dinasset [ Sun Mar 05, 2017 1:40 am ]
Post subject:  Re: contactsheet (question for Windows-Python experts)

Found the origin of the crash:
PF_DIRNAME does not work

Double-check: tried to run another python filter having that parameter (test_batch_cartoon.py), same crash

Attachment:
test-batch-cartoon.zip [1.83 KiB]
Downloaded 116 times


Is something missing in the environment Windows + Gimp 2.8.20 + Python 2.7?

Author:  moroquendo [ Sun Mar 05, 2017 5:24 am ]
Post subject:  Re: contactsheet (question for Windows-Python experts)

rich2005 wrote:
moroquendo wrote:
@Rich2005
Which version Gimp, Python, PyGTK, GTK2 do you use also 32 or 64 bits.


Kubuntu 16.04 64 bits with kubuntu-ppa backports enabled.
Gimp 2.8.20 from ubuntu ppa
python is 2.7.12 -this is a Gimp dependency = 2.7
py-gtk is the package python-gtk 2.24 - this is a Gimp dependency >=2.8.0
gtk2 - libgtk2.0-0 is 2.24.30 - this is a Gimp dependency >=2.24.1

Packing in for the night but I do have a Xubuntu VM that I use for assembling a Gimp 2.9.5 appimage. I will dig the base VM out of my archive tomorrow and see what happens.

I have the same so it must be something else.

Author:  moroquendo [ Sun Mar 05, 2017 5:28 am ]
Post subject:  Re: contactsheet (question for Windows-Python experts)

dinasset wrote:
Found the origin of the crash:
PF_DIRNAME does not work

Double-check: tried to run another python filter having that parameter (test_batch_cartoon.py), same crash

Attachment:
test-batch-cartoon.zip


Is something missing in the environment Windows + Gimp 2.8.20 + Python 2.7?

Found an answer: https://stackoverflow.com/questions/408 ... pf-dirname

I will try the workaround.

(edit)
It works in windows

Author:  dinasset [ Sun Mar 05, 2017 6:16 am ]
Post subject:  Re: (contactsheet) error in Windows-Python-Gimp-2.8.20?

Many thanks!
Double-checked: it works!

Author:  rich2005 [ Sun Mar 05, 2017 7:13 am ]
Post subject:  Re: contactsheet (question for Windows-Python experts)

moroquendo wrote:
Additional. Contactsheet does also not run in Gimp 2.8.20 for Linux....snip...


I did a video capture of Xubuntu (VM) + Gimp 2.8.20 installation + contactsheet-v2.16.py but it is horribly boring, so just the result. Exactly the same source for Gimp 2.8.20 as my regular Kubuntu 16.04.

The plugin does throw up some errors but works with a default Gimp installation.

Indexprint is a different matter. I get plenty errors and a strange 'permission denied' even though permissions are set for all users. Installed all the required files pyexiv2, libglade2, python-gtk (comes in with Gimp) and the plugin fails with plenty of Gimp error messages unable to open file. Generates an image but it is blank.

Exactly the same setup in Kubuntu works fine. Trawled through all the installed python stuff on both, the same packages installed. First conclusion is the Xfce DE is the problem.

Author:  moroquendo [ Sun Mar 05, 2017 7:32 am ]
Post subject:  Re: contactsheet (question for Windows-Python experts)

rich2005 wrote:
moroquendo wrote:
Additional. Contactsheet does also not run in Gimp 2.8.20 for Linux....snip...


I did a video capture of Xubuntu (VM) + Gimp 2.8.20 installation + contactsheet-v2.16.py but it is horribly boring, so just the result. Exactly the same source for Gimp 2.8.20 as my regular Kubuntu 16.04.

The plugin does throw up some errors but works with a default Gimp installation.

Indexprint is a different matter. I get plenty errors and a strange 'permission denied' even though permissions are set for all users. Installed all the required files pyexiv2, libglade2, python-gtk (comes in with Gimp) and the plugin fails with plenty of Gimp error messages unable to open file. Generates an image but it is blank.

Exactly the same setup in Kubuntu works fine. Trawled through all the installed python stuff on both, the same packages installed. First conclusion is the Xfce DE is the problem.

I modified contactsheet according the workaround: not working.
Starting Gimp -- verbose I saw too my surprise that contactsheet is not even parsed. Same for contactsheet-smallscreen.
Making contactsheet-smallscreen executable (I forgot to do that :hehe ) contactsheet-smallscreen pops up :yes
Next what I did was contactsheet making not executable and executable again. Now it pops up. Very weird. :hoh

I have Xubuntu running with xcfe and Indexprint runs for me perfect. I will make a fresh installation with Xubuntu 16.04 onto a VM and try again what exactly is needed.

Author:  moroquendo [ Sun Mar 05, 2017 10:25 am ]
Post subject:  Re: (contactsheet) error in Windows-Python-Gimp-2.8.20?

Have made a fresh Kubuntu (16.04.2) and Xubuntu (16.04) VM and no problems at all running Indexprint :yes I have not tried contactsheet yet.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/