It is currently Thu Jul 04, 2024 5:22 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: (contactsheet) error in Windows-Python-Gimp-2.8.20?
PostPosted: Sat Mar 04, 2017 1:09 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
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 ?

_________________
"Where am I ?"


Last edited by dinasset on Sun Mar 05, 2017 1:44 am, edited 2 times in total.

Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: contactsheet (question for Windows-Python experts)
PostPosted: Sat Mar 04, 2017 1:50 pm  (#2) 
Offline
GimpChat Member

Joined: Apr 14, 2011
Posts: 67
Location: The Netherlands
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.

_________________
Happy Gimping !!


Top
 Post subject: Re: contactsheet (question for Windows-Python experts)
PostPosted: Sat Mar 04, 2017 2:35 pm  (#3) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2438
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 3039 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 ;)

_________________
Image


Top
 Post subject: Re: contactsheet (question for Windows-Python experts)
PostPosted: Sat Mar 04, 2017 2:53 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
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?

_________________
"Where am I ?"


Top
 Post subject: Re: contactsheet (question for Windows-Python experts)
PostPosted: Sat Mar 04, 2017 3:00 pm  (#5) 
Offline
GimpChat Member

Joined: Apr 14, 2011
Posts: 67
Location: The Netherlands
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

_________________
Happy Gimping !!


Top
 Post subject: Re: contactsheet (question for Windows-Python experts)
PostPosted: Sat Mar 04, 2017 3:04 pm  (#6) 
Offline
GimpChat Member

Joined: Apr 14, 2011
Posts: 67
Location: The Netherlands
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.

_________________
Happy Gimping !!


Top
 Post subject: Re: contactsheet (question for Windows-Python experts)
PostPosted: Sat Mar 04, 2017 3:33 pm  (#7) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2438
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.

_________________
Image


Top
 Post subject: Re: contactsheet (question for Windows-Python experts)
PostPosted: Sun Mar 05, 2017 1:20 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
for those able to read error log file, this is the error log when contactsheet crashes

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

_________________
"Where am I ?"


Top
 Post subject: Re: contactsheet (question for Windows-Python experts)
PostPosted: Sun Mar 05, 2017 1:40 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
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 115 times


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

_________________
"Where am I ?"


Top
 Post subject: Re: contactsheet (question for Windows-Python experts)
PostPosted: Sun Mar 05, 2017 5:24 am  (#10) 
Offline
GimpChat Member

Joined: Apr 14, 2011
Posts: 67
Location: The Netherlands
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.

_________________
Happy Gimping !!


Top
 Post subject: Re: contactsheet (question for Windows-Python experts)
PostPosted: Sun Mar 05, 2017 5:28 am  (#11) 
Offline
GimpChat Member

Joined: Apr 14, 2011
Posts: 67
Location: The Netherlands
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

_________________
Happy Gimping !!


Top
 Post subject: Re: (contactsheet) error in Windows-Python-Gimp-2.8.20?
PostPosted: Sun Mar 05, 2017 6:16 am  (#12) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Many thanks!
Double-checked: it works!

_________________
"Where am I ?"


Top
 Post subject: Re: contactsheet (question for Windows-Python experts)
PostPosted: Sun Mar 05, 2017 7:13 am  (#13) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2438
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.

_________________
Image


Top
 Post subject: Re: contactsheet (question for Windows-Python experts)
PostPosted: Sun Mar 05, 2017 7:32 am  (#14) 
Offline
GimpChat Member

Joined: Apr 14, 2011
Posts: 67
Location: The Netherlands
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.

_________________
Happy Gimping !!


Top
 Post subject: Re: (contactsheet) error in Windows-Python-Gimp-2.8.20?
PostPosted: Sun Mar 05, 2017 10:25 am  (#15) 
Offline
GimpChat Member

Joined: Apr 14, 2011
Posts: 67
Location: The Netherlands
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.

_________________
Happy Gimping !!


Top
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Load As Layers Wire Initialization Error With Python

6

No new posts Curve Bend tool called from python giving error not very consistent.

0

No new posts Attachment(s) Python occasional "Unexpected error: [Errno 9] Bad file descriptor"

3

No new posts Convert GIMP plugin from Python 2 to Python 3

4

No new posts Difference between "Python-Fu" and "Python" plugin

6



* Login  



Powered by phpBB3 © phpBB Group