Bug 408400 - krita scripter does not work
Summary: krita scripter does not work
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Scripting (other bugs)
Version First Reported In: 4.2.1
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2019-06-07 03:49 UTC by yukimituki11
Modified: 2019-06-13 06:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yukimituki11 2019-06-07 03:49:05 UTC
SUMMARY

Choose  tool >scripts> scripter
dose not work with error

"""
The above is a description of an error in a Python program.  Here is
the original traceback:

Traceback (most recent call last):
  File "C:\Program Files\Krita (x64)\share\krita\pykrita\scripter\scripter.py", line 41, in initialize
    self.uicontroller.initialize(self)
  File "C:\Program Files\Krita (x64)\share\krita\pykrita\scripter\uicontroller.py", line 86, in initialize
    self.loadActions()
  File "C:\Program Files\Krita (x64)\share\krita\pykrita\scripter\uicontroller.py", line 139, in loadActions
    action['parent'].addAction(action['action'])
AttributeError: 'NoneType' object has no attribute 'addAction'
"""


SOFTWARE/OS VERSIONS
Windows:10Home 


ADDITIONAL INFORMATION
It was working up to 4.1.8 but it stopped working from 4.2 alpha
Comment 1 Halla Rempt 2019-06-07 07:28:23 UTC
I am sorry, but I cannot reproduce the problem: the scripter plugin starts fine for me.
Comment 2 Halla Rempt 2019-06-07 08:01:50 UTC
I've also tried to reproduce on Windows, and couldn't reproduce it there either.
Comment 3 yukimituki11 2019-06-07 10:16:17 UTC
Excuse me.
I did not try important conditions.
I get an error when I change the display language to something other than English.
For example, Deutsch Chinese Japanese. . .
Comment 4 Halla Rempt 2019-06-12 14:23:29 UTC
Ah, thanks -- yes, that does it. Confirming.
Comment 5 Halla Rempt 2019-06-12 14:33:49 UTC
Git commit 855e33784e248b75b8f1694d2716359c71a93ebf by Boudewijn Rempt.
Committed on 12/06/2019 at 14:32.
Pushed by rempt into branch 'master'.

Look up the parent by translated name

This fixes loading the scripter when not everything has been
translated yet.

M  +1    -1    plugins/python/scripter/uicontroller.py

https://invent.kde.org/kde/krita/commit/855e33784e248b75b8f1694d2716359c71a93ebf
Comment 6 Halla Rempt 2019-06-13 06:33:17 UTC
Git commit d13657d44e22fa5cb238b81ff6724669d0ee6f49 by Boudewijn Rempt.
Committed on 13/06/2019 at 06:02.
Pushed by rempt into branch 'krita/4.2'.

Look up the parent by translated name

This fixes loading the scripter when not everything has been
translated yet.

M  +1    -1    plugins/python/scripter/uicontroller.py

https://invent.kde.org/kde/krita/commit/d13657d44e22fa5cb238b81ff6724669d0ee6f49