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 :

Traceback (most recent call last):
  File "C:\Program Files\GIMP-2.0\lib\gimp\2.0\python\", line 692, in response
    dialog.res = run_script(params)
  File "C:\Program Files\GIMP-2.0\lib\gimp\2.0\python\", line 353, in run_script
    return apply(function, params)
  File "C:\Users\messuti.edd\.gimp-2.6\plug-ins\", 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
  edit psd file programmaticaly without open editor fabricia77 1 91 Dec 5, 2018 11:16
Last Post: paynekj
  edit psd file programmaticaly without open editor fabricia77 1 66 Dec 5, 2018 10:50
Last Post: paynekj
  Run Deskew plugin from Python-Fu console ramonvaldezz 12 3,168 Nov 18, 2018 21:48
Last Post: paynekj
  Script-fu ordered file list vnicent 1 418 Mar 19, 2018 17:33
Last Post: paynekj
  Any plugin for open multiple image in shinprog 1 922 Oct 31, 2017 11:38
Last Post: paynekj

Forum Jump:

GIMP ForumPortalArchiveContactTermsRSS