Post Reply 

python fu gimp_file_load cant open file

Jan 21, 2011, 19:53
Post: #1
python fu gimp_file_load cant open file
Hi i have this batch script that open all images in a folder (with glob) an modificantes them (gimp_file_load), in ubuntu it worked well but now in windows 7 its having problems with file names with unicode characters like áéíñ... i tried with file_name.encode() or unicode(file_name) or u"%s"file_name... it just gives me anothe error... here is the Traceback :

Code:
Traceback (most recent call last):
  File "C:\Program Files\GIMP-2.0\lib\gimp\2.0\python\gimpfu.py", line 692, in response
    dialog.res = run_script(params)
  File "C:\Program Files\GIMP-2.0\lib\gimp\2.0\python\gimpfu.py", line 353, in run_script
    return apply(function, params)
  File "C:\Users\messuti.edd\.gimp-2.6\plug-ins\dir_copy_no_bg.py", line 69, in batch_copy_no_bg
    image = pdb.gimp_file_load(file_name, file_name)
RuntimeError: No se ha podido abrir «C:\Users\messuti.edd\Desktop\imagenes principales - copia\Horno El�ctrico, Oster Digital 31 L.jpg» para lectura: Invalid argument

Have Windows 7 - GIMP 2.6.11 - Python 2.6.6[/quote]

thanks a lot, Eduardo
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Any plugin for open multiple image in paint.net shinprog 1 362 Oct 31, 2017 11:38
Last Post: paynekj
  Loading PythonFu Plugin: ImportError for .../python/gimp.so (GIMP 2.8.22/OSX/Py2.7.9) joroek 1 362 Jul 11, 2017 07:26
Last Post: ythgilb
  Setting text markup from python script Burbly 1 485 Sep 16, 2014 12:29
Last Post: Burbly
  Python-Fu Script Not Registering image_artist 1 414 Sep 14, 2014 13:24
Last Post: image_artist
  Bashing my head - Batch Python Script nmiltner 1 490 Sep 5, 2014 00:58
Last Post: nmiltner

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS