The behavior of python registering is different in x64 (due to pygimp.interp)
GIMP version: GIMP 2.10.4
Operating System: Windows x64 Only
Package: Installer from gimp.org Over-Written Installed on 2.10.2 Both x86/x64
Description of the bug
The behavior differs between x86 and x64, on Windows.
The script registing to create a new 'Script-Py' item in the menu items (using <Toolbox>) is not working well on x64.
Only Occurs x64 Win10. (x86 is correct, and the same script on 2.10.2 x64 was correct.)
"c:\program files\gimp 2\bin\gimp-2.10" --verbose --console-messages
Results Excerpt
*** Omission
INIT: gimp_initialize
INIT: gimp_real_initialize
Parsing 'c:\program files\gimp 2\lib\gimp\2.0\interpreters\default.interp'
Parsing 'c:\program files\gimp 2\lib\gimp\2.0\interpreters\pygimp.interp'
GIMP-警告: インタープリターファイル 'c:\program files\gimp 2\lib\gimp\2.0\interpreters\pygimp.interp' 内で参照しているインタープリター 'python' は無効です。
(*GIMP - Warning: The interpreter 'python' referencing in the interpreter file 'c: \ program files \ gimp 2 \ lib \ gimp \ 2.0 \ interpreters \ pygimp.interp' is invalid.)
GIMP-警告: インタープリターファイル c:\program files\gimp 2\lib\gimp\2.0\interpreters\pygimp.interp に不適切な形式のバイナリ列があります。
(*GIMP - Warning: There is an incorrectly formatted binary string in the interpreter file c: \ program files \ gimp 2 \ lib \ gimp \ 2.0 \ interpreters \ pygimp.interp.)
Parsing 'c:\program files\gimp 2\lib\gimp\2.0\environ\default.env'
*** Omission
Parsing 'D:\Users\UserAAppData\Roaming\GIMP\2.10\pluginrc'
Querying plug-in: 'c:\program files\gimp 2\lib\gimp\2.0\plug-ins\file-rawtherapee.exe'
Querying plug-in: 'c:\program files\gimp 2\lib\gimp\2.0\plug-ins\file-darktable.exe'
Querying plug-in: 'D:\Users\UserA\AppData\Roaming\GIMP\2.10\plug-ins\Shiro_NEF_Loading.py'
GIMP-エラー: Unable to run plug-in "Shiro_NEF_Loading.py"
(D:\Users\UserA\AppData\Roaming\GIMP\2.10\plug-ins\Shiro_NEF_Loading.py)
子プロセスを起動できませんでした (Exec format error)
(*Failed to start child process (Exec format error))
Initializing plug-in: 'c:\program files\gimp 2\lib\gimp\2.0\plug-ins\file-rawtherapee.exe'
Initializing plug-in: 'c:\program files\gimp 2\lib\gimp\2.0\plug-ins\file-darktable.exe'
Writing 'D:\Users\UserA\AppData\Roaming\GIMP\2.10\pluginrc'
Starting extension: 'extension-script-fu'
*** Omission
****
Notice: (* [Transtated by Google])
Python Script (Menu)
register(
"python-fu-shiro-nef-loading", # func name
"Load NEF File by Calling an external program", # description
"Load NEF File by Calling an external program", # help
"ShiroYuki_Mot", # author
"Copyright 2018- ShiroYuki_Mot", # copyright notice
"2018/05/01", # date created
"<Toolbox>/Script-Py/写真加工/NEF Loading...", # menu path
"", # image types on the script
# params
[ (PF_FILE, "original_file", ("Original NEF File (.NEF) : "), " "), (PF_STRING, "fn_prefix_string", ("FileName Prefix String : "), 'c0m000f0_'), (PF_DIRNAME, "temp_dir", ("Temporary Directory : "), " "), (PF_FILENAME, "use_sidecar_file", ("* Use Existed SideCar File (.nksc) : "), " (Nothing) "), (PF_OPTION,"command",("Program : "),0,listcommands())
],
[], # results
plugin_main # function
)
main()