https://bugs.kde.org/show_bug.cgi?id=515880

            Bug ID: 515880
           Summary: The Batch Exporter plugin is broken in Krita 6
    Classification: Applications
           Product: krita
      Version First 6.0.0-beta1
       Reported In:
          Platform: Microsoft Windows
                OS: Microsoft Windows
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: * Unknown
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

I received the following error on trying to perform a Batch Export using the
Batch Export plugin in Krita 6.0.0-beta1:

```
Traceback (most recent call last):

  File "C:\Program Files\Krita
(x64)\share\krita\pykrita\batch_exporter\batch_exporter.py", line 61, in
exportAllLayers
    kickstart(it)
    ~~~~~~~~~^^^^

  File "C:\Program Files\Krita
(x64)\share\krita\pykrita\batch_exporter\Utils\__init__.py", line 13, in
kickstart
    deque(it, maxlen=0)
    ~~~~~^^^^^^^^^^^^^^

  File "C:\Program Files\Krita
(x64)\share\krita\pykrita\batch_exporter\Utils\__init__.py", line 9, in
<lambda>
    return lambda *a: f(*reversed(a))
                      ~^^^^^^^^^^^^^^

  File "C:\Program Files\Krita
(x64)\share\krita\pykrita\batch_exporter\Infrastructure.py", line 290, in save
    img = nodeToImage(self)

  File "C:\Program Files\Krita
(x64)\share\krita\pykrita\batch_exporter\Infrastructure.py", line 30, in
nodeToImage
    if not icc_profile and self.inherit:
                           ^^^^

NameError: name 'self' is not defined
```

The merge request that seems to have broken it is
https://invent.kde.org/graphics/krita/-/merge_requests/2446 where icc profile
support was added and seems to now be required to avoid the error.

Steps to reproduce:
* Try and do any kind of batch export without the "icc=" property.
* Receive the above traceback.

Bugfix:
I believe this is simply a typo in the codebase. On line 30, instead of trying
to access `self.inherit` the plugin should be attempting to access
`wnode.inherit`

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to