Post Reply 

Calling script from cmd under Linux outputs strange behaviour

Sep 18, 2014, 17:48 (This post was last modified: Sep 18, 2014 18:10 by INV_SIG.)
Post: #1
Calling script from cmd under Linux outputs strange behaviour
This is supposed to be run under Linux, Ubuntu

I have made following script processingpart.py
[undefined=undefined]#!/usr/bin/python
# -*- coding: iso-8859-15 -*-
import os,glob,sys,time
import gimpfu
import shutil
from gimpfu import *

brightness = 10
contrast = 40
threshold_value1 = 225
threshold_value2 = 25

# processing function... called from exec function in php
def processme(infile):
print "Processing file %s " % infile

if infile.endswith('.png'):
image = pdb.file_png_load(infile,infile)
drawable = pdb.gimp_image_get_active_layer(image)
elif infile.endswith('.jpg'):
image = pdb.file_jpeg_load(infile,infile)
drawable = pdb.gimp_image_get_active_layer(image)

print "File %s loaded OK" % infile
# 1.colors -> levels, auto, ok
pdb.gimp_levels_stretch(drawable)
# 1.colors -> brightness-contrast
pdb.gimp_brightness_contrast(drawable,brightness,contrast)

# 2.creates two copies of a layer drawable
drawableOne = pdb.gimp_layer_copy(drawable, 0)
drawableTwo = pdb.gimp_layer_copy(drawable, 0)
pdb.gimp_image_insert_layer(image, drawableOne, None, -1)
pdb.gimp_image_insert_layer(image, drawableTwo, None, -2)
# 2a.hides layer drawable
pdb.gimp_item_set_visible(drawable,0)
# 3.sets desaturate to AVERAGE
pdb.gimp_desaturate_full(drawableTwo, 2)
# 4.creates three copies of a layer drawableTwo
drawableThree = pdb.gimp_layer_copy(drawableTwo, 0)
drawableFour = pdb.gimp_layer_copy(drawableTwo, 0)
drawableFive = pdb.gimp_layer_copy(drawableTwo, 0)
pdb.gimp_image_insert_layer(image, drawableThree, None, -3)
pdb.gimp_image_insert_layer(image, drawableFour, None, -4)
pdb.gimp_image_insert_layer(image, drawableFive, None, -5)
# 5. sets mode from normal to dodge
pdb.gimp_layer_set_mode(drawableFive, 16)
# 6. filter->blur->gaussian blur, sets pixels to 4.0 for horizontal and vertical
pdb.plug_in_gauss(image, drawableFive, 4.0, 4.0, 1)
# 7. colors-> invert
pdb.gimp_invert(drawableFive)
# 8. merges down
cc = pdb.gimp_image_merge_down(image, drawableFive, 0)
# 9. applies treshold from 127 to 240.
pdb.gimp_threshold(cc,threshold_value1, 255)
# 10. sets mode from normal to miltiply
pdb.gimp_layer_set_mode(cc, 3)
# 11. selects second layer, applies treshold from 127 to 30
pdb.gimp_threshold(drawableThree, threshold_value2, 255)
# 12. sets mode from normal to miltiply
pdb.gimp_layer_set_mode(drawableThree, 3)
# 13. sets mode from normal to divide
pdb.gimp_layer_set_mode(drawableTwo, 15)
# 14. merges down
tt = pdb.gimp_image_merge_down(image, drawableTwo, 0)
# 15.hides layer drawable
pdb.gimp_item_set_visible(drawable,1)
# 15a. sets mode from normal to value
pdb.gimp_layer_set_mode(tt, 14)
# 16 image flattening
ee = pdb.gimp_image_flatten(image)
outfile='prcsd'+os.path.basename(infile)
originalFile=os.path.join('original',os.path.basename(infile))

outfile=os.path.join(os.path.dirname(infile),outfile)
#originalFile=os.path.join(os.path.dirname(infile),infile)
print "Saving to %s" % outfile
# 17. saves as PNG file
pdb.file_png_save(image, ee, outfile, outfile, 1,9,1,1,1,1,1)
print "Saved to %s" % outfile
pdb.gimp_image_delete(image)
pdb.gimp_quit(1)[/undefined]

Now I have made another script, callme.py, to call it like

[undefined=undefined]import glob,sys
import os

def callme(imagee):
cmd0 = 'gimp -b -idf --batch-interpreter python-fu-eval -b "import sys,os;sys.path=[\'.\']+sys.path;import processingpart;'
cmd1 = 'processingpart.processme({0!r})'.format(imagee)
cmd2 = '"-b "pdb.gimp_quit(0)"'
cmdfinal = cmd0 + cmd1 + cmd2
os.system(cmdfinal)

if __name__ == "__main__":
a = sys.argv[1]
callme(a)[/undefined]

When I call it from cmd line by
[undefined=undefined]python /usr/libs/gimp/2.0/plug-ins/processingpart.py /var/www/html/files/1.jpg[/undefined]
I get following output in cmd
[undefined=undefined] Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
Killed
$ Killed
Killed
Killed
Killed
Killed
Killed
Killed
...x200 Killed
Killed
Killed
Traceback (most recent call last):
File "/usr/lib/python2.7/site.py", line 68, in <module>
import os
File "/usr/lib/python2.7/os.py", line 398, in <module>
import UserDict
File "/usr/lib/python2.7/UserDict.py", line 83, in <module>
import _abcoll
File "/usr/lib/python2.7/_abcoll.py", line 11, in <module>
from abc import ABCMeta, abstractmethod
File "/usr/lib/python2.7/abc.py", line 8, in <module>
from _weakrefset import WeakSet
ImportError: No module named _weakrefset

(gimp-console:13227): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Traceback (most recent call last):
File "/usr/lib/python2.7/site.py", line 68, in <module>
import os
File "/usr/lib/python2.7/os.py", line 398, in <module>
import UserDict
File "/usr/lib/python2.7/UserDict.py", line 83, in <module>
import _abcoll
File "/usr/lib/python2.7/_abcoll.py", line 11, in <module>
from abc import ABCMeta, abstractmethod
File "/usr/lib/python2.7/abc.py", line 8, in <module>
from _weakrefset import WeakSet
ImportError: No module named _weakrefset

(gimp-console:13227): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Traceback (most recent call last):
File "/usr/lib/python2.7/site.py", line 68, in <module>
import os
File "/usr/lib/python2.7/os.py", line 398, in <module>
import UserDict
File "/usr/lib/python2.7/UserDict.py", line 83, in <module>
import _abcoll
File "/usr/lib/python2.7/_abcoll.py", line 11, in <module>
from abc import ABCMeta, abstractmethod
File "/usr/lib/python2.7/abc.py", line 8, in <module>
from _weakrefset import WeakSet
ImportError: No module named _weakrefset

(gimp-console:13227): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
GIMP-Error: Unable to run plug-in "python-eval.py"
(/usr/lib/gimp/2.0/plug-ins/python-eval.py)

Too many open files

batch command experienced an execution error:
Failed to run plug-in "python-eval.py"
GIMP-Error: Unable to run plug-in "python-eval.py"
(/usr/lib/gimp/2.0/plug-ins/python-eval.py)

pipe() failed: Too many open files

batch command experienced an execution error:
Failed to run plug-in "python-eval.py"

Killed
Traceback (most recent call last):
File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 19, in <module>
from gimpfu import *
ImportError: No module named gimpfu
$ $ -sh: 444: Too: not found
$ $ -sh: 446: batch: not found
$ -sh: 447: Failed: not found
$ -sh: 448: GIMP-Error:: not found
$ Traceback (most recent call last):
File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 19, in <module>
from gimpfu import *
ImportError: No module named gimpfu
$ $ $ $ -sh: 453: batch: not found
$ -sh: 454: Failed: not found
[/undefined]
Find all posts by this user
Quote this message in a reply
Sep 18, 2014, 21:05 (This post was last modified: Sep 18, 2014 21:17 by INV_SIG.)
Post: #2
RE: Calling script from cmd under Linux outputs strange behaviour
Here is zip version of my code.


I am running this under Ubuntu.


Attached File(s)
.rar  folder.rar (Size: 1.15 MB / Downloads: 9)
Find all posts by this user
Quote this message in a reply
Sep 18, 2014, 22:04
Post: #3
RE: Calling script from cmd under Linux outputs strange behaviour
(Sep 18, 2014 21:55)ofnuts Wrote:  Is this really for Linux?

1) you are using .rar which is quite rare on Linux (usual cimpress formats are more like tgz, zip, and 7z)
2) your files have DOS line ending (CR+LF)
3) your callme.py generates the DOS syntax, not the Unix one

Also, you JPEG is actually a PNG.

OK? Can u please help me with this, cause I am not quite sure what to do?
Find all posts by this user
Quote this message in a reply
Sep 18, 2014, 23:08
Post: #4
RE: Calling script from cmd under Linux outputs strange behaviour
This is working just fine under Linux! However it throws error now regarding other script:

It is complaining about this line:
drawable = pdb.gimp_image_get_active_layer(image)

local variable "image" referenced before assignment
batch command experienced an execution error

Even though I have followed rule

def eeef(infile):
print "Processing file %s " % infile

if infile.endswith('.png'):
image = pdb.file_png_load(infile,infile)
elif infile.endswith('.jpg'):
image = pdb.file_jpeg_load(infile,infile)

print "File %s loaded OK" % infile
# 1.colors -> levels, auto, ok
[undefined=undefined][undefined=undefined] drawable = pdb.gimp_image_get_active_layer(image)[/undefined][/undefined]
pdb.gimp_levels_stretch(drawable)
Find all posts by this user
Quote this message in a reply
Sep 19, 2014, 09:29
Post: #5
RE: Calling script from cmd under Linux outputs strange behaviour
(Sep 18, 2014 23:32)ofnuts Wrote:  The way your code is written, if the file doesn't end by .jpg or .png it happily declares the file loaded and image wont' be set . It's missing an else somewhere Smile But this is debugging your code, not wondering how the Gimp API works. See here for techniques to debug your python (which is much easier on Linux).

Also, given that your JPG is actually a PNG, you code is trying to make the JPG handler load a PNG. I don't know what will happen then (likely image=None). You can let Gimp determine the file type and load the image (image = pdb.gimp_file_load(filename, raw_filename)).

Thanks, ofnuts!!!
OK, I have fixed it but now it's complaining about gimp_wire_error() and for some reason there is nothing on google about it?! This is complaining about:

[undefined=undefined]def eeef(infile):
print "Processing file %s " % infile

image = pdb.file_jpeg_load(infile,infile)
drawable = pdb.gimp_image_get_active_layer(image)

print "File %s loaded OK" % infile
# 1.colors -> levels, auto, ok
pdb.gimp_levels_stretch(drawable)
# 1.colors -> brightness-contrast
pdb.gimp_brightness_contrast(drawable,brightness,contrast)

# 2.creates two copies of a layer drawable
drawableOne = pdb.gimp_layer_copy(drawable, 0)
drawableTwo = pdb.gimp_layer_copy(drawable, 0)
pdb.gimp_image_insert_layer(image, drawableOne, None, -1)
pdb.gimp_image_insert_layer(image, drawableTwo, None, -2)
# 2a.hides layer drawable
pdb.gimp_item_set_visible(drawable,0)
# 3.sets desaturate to AVERAGE
pdb.gimp_desaturate_full(drawableTwo, 2)
# 4.creates three copies of a layer drawableTwo
drawableThree = pdb.gimp_layer_copy(drawableTwo, 0)
drawableFour = pdb.gimp_layer_copy(drawableTwo, 0)
drawableFive = pdb.gimp_layer_copy(drawableTwo, 0)
pdb.gimp_image_insert_layer(image, drawableThree, None, -3)
pdb.gimp_image_insert_layer(image, drawableFour, None, -4)
pdb.gimp_image_insert_layer(image, drawableFive, None, -5)
# 5. sets mode from normal to dodge
pdb.gimp_layer_set_mode(drawableFive, 16)
# 6. filter->blur->gaussian blur, sets pixels to 4.0 for horizontal and vertical
pdb.plug_in_gauss(image, drawableFive, 4.0, 4.0, 1)
# 7. colors-> invert
pdb.gimp_invert(drawableFive)
# 8. merges down
cc = pdb.gimp_image_merge_down(image, drawableFive, 0)
# 9. applies treshold from 127 to 240.
pdb.gimp_threshold(cc,threshold_value1, 255)
# 10. sets mode from normal to miltiply
pdb.gimp_layer_set_mode(cc, 3)
# 11. selects second layer, applies treshold from 127 to 30
pdb.gimp_threshold(drawableThree, threshold_value2, 255)
# 12. sets mode from normal to miltiply
pdb.gimp_layer_set_mode(drawableThree, 3)
# 13. sets mode from normal to divide
pdb.gimp_layer_set_mode(drawableTwo, 15)
# 14. merges down
tt = pdb.gimp_image_merge_down(image, drawableTwo, 0)
# 15.hides layer drawable
pdb.gimp_item_set_visible(drawable,1)
# 15a. sets mode from normal to value
pdb.gimp_layer_set_mode(tt, 14)
# 16 image flattening
ee = pdb.gimp_image_flatten(image)
outfile='prcsd'+os.path.basename(infile)
originalFile=os.path.join('original',os.path.basename(infile))

outfile=os.path.join(os.path.dirname(infile),outfile)
#originalFile=os.path.join(os.path.dirname(infile),infile)
print "Saving to %s" % outfile
# 17. saves as PNG file
pdb.file_png_save(image, ee, outfile, outfile, 1,9,1,1,1,1,1)
print "Saved to %s" % outfile
pdb.gimp_image_delete(image)
pdb.gimp_quit(1)[/undefined]

I am trying to follow these rules but to no avail? What am I supposed to do?
Find all posts by this user
Quote this message in a reply
Sep 19, 2014, 15:33
Post: #6
RE: Calling script from cmd under Linux outputs strange behaviour
OK, this is only part of output it produces...
Code:
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2617): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2617): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2617): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2598): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2598): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2598): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2579): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2579): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2579): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2560): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2560): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2560): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2541): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2541): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2541): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2522): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2522): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2522): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2503): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2503): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2503): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2484): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2484): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2484): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2465): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2465): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2465): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2446): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2446): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2446): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2427): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2427): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2427): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2408): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2408): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2408): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2389): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2389): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2389): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2370): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2370): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2370): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2351): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2351): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2351): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2332): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2332): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2332): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2313): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2313): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2313): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2294): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2294): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2294): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2275): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2275): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2275): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2256): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2256): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2256): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2237): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2237): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2237): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2218): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2218): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2218): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2199): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2199): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2199): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2180): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2180): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2180): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2161): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2161): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2161): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2142): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2142): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2142): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2123): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2123): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2123): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2104): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2104): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2104): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2085): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2085): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2085): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2066): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2066): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2066): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2047): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2047): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2047): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2028): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2028): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2028): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:2009): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:2009): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:2009): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:1990): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:1990): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:1990): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:1971): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:1971): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:1971): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 777, in _run
    return apply(func, params[1:])
  File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
    exec code in globals()
  File "<string>", line 1, in <module>
  File "/usr/lib/gimp/2.0/plug-ins/procesnaObrada.py", line 17, in procesuiraj
    image = pdb.file_jpeg_load(infile,infile)
RuntimeError: Could not open '-gimp' for reading: No such file or directory
batch command experienced an execution error

(gimp-console:1952): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(gimp-console:1952): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error

(gimp-console:1952): LibGimpBase-WARNING **: gimp-console: gimp_wire_read(): error
Processing file -gimp
GIMP-Error: Calling error for procedure 'file-jpeg-load':
Could not open '-gimp' for reading: No such file or directory

Some time it can run process and execute just fine( but all errors remain on output ) and sometime it can't at all. I am using these two py scripts by calling from bash

Code:
python /usr/lib/gimp/2.0/plug-ins/myScript.py /var/www/html/files/myFile.jpg

under Ubuntu. Current version of gimp is 2.6 I think.


Attached File(s)
.zip  process.zip (Size: 3.14 KB / Downloads: 13)
Find all posts by this user
Quote this message in a reply
Sep 19, 2014, 21:09 (This post was last modified: Sep 19, 2014 21:11 by INV_SIG.)
Post: #7
RE: Calling script from cmd under Linux outputs strange behaviour
Thank you for your time and explaination, ofnuts. I was thinking to implement register function and to call gimp in cmd with this py script? May that seem to be good approach to the solution?
Find all posts by this user
Quote this message in a reply
Sep 19, 2014, 22:29 (This post was last modified: Sep 19, 2014 22:29 by INV_SIG.)
Post: #8
RE: Calling script from cmd under Linux outputs strange behaviour
Yes, but how would I call that script under linux cmd?

I have just tried to run it, sometimes it's OK and sometimes it's not. How may I investigate what is causing that error? I will need to look deeply under the hood in gimp code...


I have replaced all carriage returns and line feed in the file.
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Calling 3rd party plugin for batch mode INV_SIG 3 206 Sep 24, 2014 09:09
Last Post: rich2005
  Help with calling gimp in linux INV_SIG 4 248 Sep 17, 2014 03:15
Last Post: INV_SIG
  Shell script help wanted please Weatherlawyer 2 286 Jul 30, 2014 19:31
Last Post: Weatherlawyer
Question Very strange problem, mouse wont input HELP firepaw77 7 410 Jul 5, 2014 22:06
Last Post: fluffybunny2
  Plugins/script help needed stigzler 1 252 Jul 5, 2014 15:20
Last Post: stigzler

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS