Post Reply 

[SOLVED]gimpenums not loaded

Aug 18, 2018, 14:43 (This post was last modified: Aug 19, 2018 11:36 by indigo3k.)
Post: #1
[SOLVED]gimpenums not loaded
Sorry, if this is a very stupid question...

I was trying scripting for the first time. Already with the first 2 code lines in the Python-Fu console i have a problem.

Obviously gimpenums are not loaded/known:
Code:
GIMP 2.10.4 Python Console
Python 2.7.15 (default, May  4 2018, 07:50:01)  [GCC 7.3.0 32 bit]
>>> from gimpfu import *
>>> pdb.gimp_image_rotate(gimp.image_list()[0], GIMP_ROTATE_90)
Traceback (most recent call last):
  File "<input>", line 1, in <module>
NameError: name 'GIMP_ROTATE_90' is not defined
>>>

Putting a "0" instead of GIMP_ROTATE_90 is doing the job fine.

I'm using Gimp 2.10.4 on Windows7. I already cleaned up %path% to be sure no other Python might get in the way with no (positive) result.

Doing a grep over all files in the "Gimp 2" directory (rekursive) shows
GIMP_ROTATE_90 only exists in libgimpbase-2.0-0.dll and not in any of the *.py, *.pyc or *.pcd files.

Watching activities in ProcessMonitor i verified that the correct pythonw.exe was chosen. However, the log shows strange activities wrt. to gimpenums.py. (please look for "BUFFER OVERFLOW")

Code:
16:16:26,7044538    pythonw.exe    6352    CreateFile    D:\Win\Programme\GIMP 2\32\lib\gimp\2.0\python    SUCCESS    Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
16:16:26,7044707    pythonw.exe    6352    QueryDirectory    D:\Win\Programme\GIMP 2\32\lib\gimp\2.0\python\gimpenums.py    SUCCESS    Filter: gimpenums.py, 1: gimpenums.py
16:16:26,7044889    pythonw.exe    6352    CloseFile    D:\Win\Programme\GIMP 2\32\lib\gimp\2.0\python    SUCCESS    
16:16:26,7045122    pythonw.exe    6352    QueryInformationVolume    D:\Win\Programme\GIMP 2\32\lib\gimp\2.0\python\gimpenums.py    BUFFER OVERFLOW    VolumeCreationTime: 04.07.2012 07:52:08, VolumeSerialNumber: F827-2785, SupportsObjects: True, VolumeLabel: Volǡ
16:16:26,7045230    pythonw.exe    6352    QueryAllInformationFile    D:\Win\Programme\GIMP 2\32\lib\gimp\2.0\python\gimpenums.py    BUFFER OVERFLOW    CreationTime: 19.02.2013 23:09:45, LastAccessTime: 09.08.2018 08:45:51, LastWriteTime: 05.07.2018 11:09:30, ChangeTime: 09.08.2018 08:45:51, FileAttributes: A, AllocationSize: 4.096, EndOfFile: 1.977, NumberOfLinks: 1, DeletePending: False, Directory: False, IndexNumber: 0x400000004a3f7, EaSize: 0, Access: Generic Read, Position: 0, Mode: Synchronous IO Non-Alert, AlignmentRequirement: Long
16:16:26,7045356    pythonw.exe    6352    QueryInformationVolume    D:\Win\Programme\GIMP 2\32\lib\gimp\2.0\python\gimpenums.py    BUFFER OVERFLOW    VolumeCreationTime: 04.07.2012 07:52:08, VolumeSerialNumber: F827-2785, SupportsObjects: True, VolumeLabel: Volǡ
16:16:26,7045433    pythonw.exe    6352    QueryAllInformationFile    D:\Win\Programme\GIMP 2\32\lib\gimp\2.0\python\gimpenums.py    BUFFER OVERFLOW    CreationTime: 19.02.2013 23:09:45, LastAccessTime: 09.08.2018 08:45:51, LastWriteTime: 05.07.2018 11:09:30, ChangeTime: 09.08.2018 08:45:51, FileAttributes: A, AllocationSize: 4.096, EndOfFile: 1.977, NumberOfLinks: 1, DeletePending: False, Directory: False, IndexNumber: 0x400000004a3f7, EaSize: 0, Access: Generic Read, Position: 0, Mode: Synchronous IO Non-Alert, AlignmentRequirement: Long
16:16:26,7045814    pythonw.exe    6352    CreateFile    D:\Win\Programme\GIMP 2\32\lib\gimp\2.0\python\gimpenums.pyc    SUCCESS    Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, Write, AllocationSize: n/a, OpenResult: Opened
16:16:26,7046193    pythonw.exe    6352    ReadFile    D:\Win\Programme\GIMP 2\32\lib\gimp\2.0\python\gimpenums.pyc    SUCCESS    Offset: 0, Length: 2.141, Priority: Normal
16:16:26,7046454    pythonw.exe    6352    QueryInformationVolume    D:\Win\Programme\GIMP 2\32\lib\gimp\2.0\python\gimpenums.pyc    BUFFER OVERFLOW    VolumeCreationTime: 04.07.2012 07:52:08, VolumeSerialNumber: F827-2785, SupportsObjects: True, VolumeLabel: Volǡ
16:16:26,7046540    pythonw.exe    6352    QueryAllInformationFile    D:\Win\Programme\GIMP 2\32\lib\gimp\2.0\python\gimpenums.pyc    BUFFER OVERFLOW    CreationTime: 19.02.2013 23:09:45, LastAccessTime: 09.08.2018 08:46:32, LastWriteTime: 09.08.2018 08:46:32, ChangeTime: 09.08.2018 08:46:32, FileAttributes: A, AllocationSize: 4.096, EndOfFile: 2.141, NumberOfLinks: 1, DeletePending: False, Directory: False, IndexNumber: 0x10000000003729, EaSize: 0, Access: Generic Read, Position: 2.141, Mode: Synchronous IO Non-Alert, AlignmentRequirement: Long
16:16:26,7046657    pythonw.exe    6352    ReadFile    D:\Win\Programme\GIMP 2\32\lib\gimp\2.0\python\gimpenums.pyc    END OF FILE    Offset: 2.141, Length: 4.096
16:16:26,7047088    pythonw.exe    6352    CloseFile    D:\Win\Programme\GIMP 2\32\lib\gimp\2.0\python\gimpenums.pyc    SUCCESS    
16:16:26,7047629    pythonw.exe    6352    QueryOpen    D:\Win\Programme\GIMP 2\_gimpenums    NAME NOT FOUND    
16:16:26,7048051    pythonw.exe    6352    CreateFile    D:\Win\Programme\GIMP 2\_gimpenums.pyd    NAME NOT FOUND    Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, Write, AllocationSize: n/a
16:16:26,7048490    pythonw.exe    6352    CreateFile    D:\Win\Programme\GIMP 2\_gimpenums.py    NAME NOT FOUND    Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, Write, AllocationSize: n/a
16:16:26,7048906    pythonw.exe    6352    CreateFile    D:\Win\Programme\GIMP 2\_gimpenums.pyw    NAME NOT FOUND    Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, Write, AllocationSize: n/a
16:16:26,7049318    pythonw.exe    6352    CreateFile    D:\Win\Programme\GIMP 2\_gimpenums.pyc    NAME NOT FOUND    Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, Write, AllocationSize: n/a
16:16:26,7049742    pythonw.exe    6352    QueryOpen    D:\Win\Programme\GIMP 2\32\lib\gimp\2.0\python\_gimpenums    NAME NOT FOUND    
16:16:26,7050145    pythonw.exe    6352    CreateFile    D:\Win\Programme\GIMP 2\32\lib\gimp\2.0\python\_gimpenums.pyd    SUCCESS    Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, Write, AllocationSize: n/a, OpenResult: Opened
16:16:26,7050717    pythonw.exe    6352    CreateFile    D:\Win\Programme\GIMP 2\32\lib\gimp\2.0\python    SUCCESS    Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
16:16:26,7050874    pythonw.exe    6352    QueryDirectory    D:\Win\Programme\GIMP 2\32\lib\gimp\2.0\python\_gimpenums.pyd    SUCCESS    Filter: _gimpenums.pyd, 1: _gimpenums.pyd
16:16:26,7051043    pythonw.exe    6352    CloseFile    D:\Win\Programme\GIMP 2\32\lib\gimp\2.0\python    SUCCESS    
16:16:26,7051686    pythonw.exe    6352    QueryOpen    D:\Win\Programme\GIMP 2\32\lib\gimp\2.0\python\_gimpenums.pyd    SUCCESS    CreationTime: 19.02.2013 23:09:45, LastAccessTime: 09.08.2018 08:45:51, LastWriteTime: 05.07.2018 17:24:52, ChangeTime: 09.08.2018 08:45:51, AllocationSize: 36.864, EndOfFile: 35.512, FileAttributes: A
16:16:26,7052049    pythonw.exe    6352    CreateFile    D:\Win\Programme\GIMP 2\32\lib\gimp\2.0\python\_gimpenums.pyd    SUCCESS    Desired Access: Read Data/List Directory, Execute/Traverse, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Delete, AllocationSize: n/a, OpenResult: Opened
16:16:26,7052483    pythonw.exe    6352    CreateFileMapping    D:\Win\Programme\GIMP 2\32\lib\gimp\2.0\python\_gimpenums.pyd    FILE LOCKED WITH ONLY READERS    SyncType: SyncTypeCreateSection, PageProtection:
16:16:26,7052802    pythonw.exe    6352    CreateFileMapping    D:\Win\Programme\GIMP 2\32\lib\gimp\2.0\python\_gimpenums.pyd    SUCCESS    SyncType: SyncTypeOther
16:16:26,7053239    pythonw.exe    6352    Load Image    D:\Win\Programme\GIMP 2\32\lib\gimp\2.0\python\_gimpenums.pyd    SUCCESS    Image Base: 0x6f3c0000, Image Size: 0xd000
16:16:26,7053399    pythonw.exe    6352    CloseFile    D:\Win\Programme\GIMP 2\32\lib\gimp\2.0\python\_gimpenums.pyd    SUCCESS    
16:16:26,7055641    pythonw.exe    6352    CreateFile    D:\mingw32\share\locale\locale.alias    PATH NOT FOUND    Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, Write, AllocationSize: n/a
16:16:26,7056032    pythonw.exe    6352    CreateFile    D:\Win\Programme\GIMP 2\32\share\locale\de_DE\LC_MESSAGES\gegl-0.4.mo    PATH NOT FOUND    Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, Write, AllocationSize: n/a
16:16:26,7056336    pythonw.exe    6352    CreateFile    D:\Win\Programme\GIMP 2\32\share\locale\de\LC_MESSAGES\gegl-0.4.mo    PATH NOT FOUND    Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, Write, AllocationSize: n/a
16:16:26,7069568    pythonw.exe    6352    CloseFile    D:\Win\Programme\GIMP 2\32\lib\gimp\2.0\python\_gimpenums.pyd    SUCCESS    
16:16:26,7071174    pythonw.exe    6352    CloseFile    D:\Win\Programme\GIMP 2\32\lib\gimp\2.0\python\gimpenums.py    SUCCESS    
16:16:26,7072948    pythonw.exe    6352    QueryOpen    D:\Win\Programme\GIMP 2\32\share\locale\de_DE.ISO8859-1\LC_MESSAGES\gimp20-python.mo    PATH NOT FOUND    
16:16:26,7073628    pythonw.exe    6352    QueryOpen    D:\Win\Programme\GIMP 2\32\share\locale\de_DE\LC_MESSAGES\gimp20-python.mo    PATH NOT FOUND    
16:16:26,7074160    pythonw.exe    6352    QueryOpen    D:\Win\Programme\GIMP 2\32\share\locale\de.ISO8859-1\LC_MESSAGES\gimp20-python.mo    PATH NOT FOUND    
16:16:26,7074661    pythonw.exe    6352    QueryOpen    D:\Win\Programme\GIMP 2\32\share\locale\de\LC_MESSAGES\gimp20-python.mo    PATH NOT FOUND    
16:16:26,7075597    pythonw.exe    6352    CloseFile    D:\Win\Programme\GIMP 2\32\lib\gimp\2.0\python\gimpfu.py    SUCCESS

(I hope the code block is not wrapping the text, as it does in the preview)

Please, could somebody tell me, what I am doing wrong here?

Thanks a lot,
indigo3k
Find all posts by this user
Quote this message in a reply
Aug 19, 2018, 11:35
Post: #2
RE: gimpenums not loaded
...big fuzz about nothing...

I was simply taking code lines the from an out-dated example.

it should not be GIMP_ROTATE_90 but simply ROTATE_90.
Thanks to everybody who was already taking a look into the topic.

Thanks,
indigo3k
Find all posts by this user
Quote this message in a reply
Aug 20, 2018, 20:09
Post: #3
RE: [SOLVED]gimpenums not loaded
This forum has been DEAD for a long time and the spammers keep trying to take over.

Save yourself from them and go to https://www.gimp-forum.net instead
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [SOLVED]Weighted Blend in GEGL library mIXpRo 1 541 Oct 6, 2014 07:47
Last Post: mIXpRo
Shocked Touching up black images (solved) vapblack 1 506 Aug 14, 2014 15:53
Last Post: vapblack
  How to drag an open pic to a layer in another pic? Not in single window mode. Solved! ianp5a 2 578 Aug 3, 2014 13:00
Last Post: ianp5a
  [Solved] Gimp vs moire Walen 6 1,529 May 28, 2014 09:57
Last Post: Walen
  [Solved] Clear Gimp2.8 Highlander 2 527 May 14, 2014 08:04
Last Post: rich2005

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS