Show python action plugin file in error message

Bug #1826493 reported by Leandro Heck
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Unknown

Bug Description

I am clicking on the layout icon from the main Kicad window from one of my projects and I am receiving this error. It appears one time only after opening Kicad.

The screenshot with the popup is attached here.

Application: kicad
Version: 5.1.2-f72e74a~84~ubuntu19.04.1, release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.64.0 OpenSSL/1.1.1b zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) libssh/0.8.6/openssl/zlib nghttp2/1.36.0 librtmp/2.3
Platform: Linux 5.0.0-13-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
    Boost: 1.67.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.64.0
    Compiler: GCC 8.3.0 with C++ ABI 1013

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=ON
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=ON
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Tags: pcbnew python
Revision history for this message
Leandro Heck (leoheck) wrote :
description: updated
Revision history for this message
Michael Kavanagh (michaelkavanagh) wrote :

Do you have any Action plugins installed? See http://docs.kicad-pcb.org/5.1.2/en/pcbnew/pcbnew.html#action_menu

tags: added: pcbnew python
Changed in kicad:
status: New → Incomplete
Revision history for this message
Leandro Heck (leoheck) wrote :

Hmm, it is possible. I will check this by Monday when I have that computer.

Revision history for this message
Leandro Heck (leoheck) wrote :

@Michael

I got the same error yesterday.

I checked and I have one action script which is the teardrops.

The text on this popup window looks so generic.

If this is related with a particular plugin, how can we improve the error message to have at least the plugin/script name/reference in the message?

Teardrops github repo:
https://github.com/NilujePerchut/kicad_scripts

Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

You should file the bug report for this at https://github.com/NilujePerchut/kicad_scripts. This is not an official KiCad script. If you are asking for a better Python action scripting error message, that is a different bug.

Revision history for this message
Leandro Heck (leoheck) wrote : Re: [Bug 1826493] Re: Exception on python action plugin code

I did, reported there.

But what kicad should do is at least tell the user which action plugin
generated that issue. Suppose I have 10 plugins installed. Which one is
the problem? How can kicad help users to solve this problem?

On Tue, May 7, 2019, 11:10 AM Wayne Stambaugh <email address hidden>
wrote:

> You should file the bug report for this at
> https://github.com/NilujePerchut/kicad_scripts. This is not an official
> KiCad script. If you are asking for a better Python action scripting
> error message, that is a different bug.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1826493
>
> Title:
> Exception on python action plugin code
>
> Status in KiCad:
> Incomplete
>
> Bug description:
> I am clicking on the layout icon from the main Kicad window from one
> of my projects and I am receiving this error. It appears one time only
> after opening Kicad.
>
> The screenshot with the popup is attached here.
>
>
> Application: kicad
> Version: 5.1.2-f72e74a~84~ubuntu19.04.1, release build
> Libraries:
> wxWidgets 3.0.4
> libcurl/7.64.0 OpenSSL/1.1.1b zlib/1.2.11 libidn2/2.0.5
> libpsl/0.20.2 (+libidn2/2.0.5) libssh/0.8.6/openssl/zlib nghttp2/1.36.0
> librtmp/2.3
> Platform: Linux 5.0.0-13-generic x86_64, 64 bit, Little endian, wxGTK
> Build Info:
> wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+
> 3.24
> Boost: 1.67.0
> OpenCASCADE Community Edition: 6.9.1
> Curl: 7.64.0
> Compiler: GCC 8.3.0 with C++ ABI 1013
>
> Build settings:
> USE_WX_GRAPHICS_CONTEXT=OFF
> USE_WX_OVERLAY=ON
> KICAD_SCRIPTING=ON
> KICAD_SCRIPTING_MODULES=ON
> KICAD_SCRIPTING_PYTHON3=ON
> KICAD_SCRIPTING_WXPYTHON=ON
> KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
> KICAD_SCRIPTING_ACTION_MENU=ON
> BUILD_GITHUB_PLUGIN=ON
> KICAD_USE_OCE=ON
> KICAD_USE_OCC=OFF
> KICAD_SPICE=ON
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/kicad/+bug/1826493/+subscriptions
>

summary: - Exception on python action plugin code
+ Show python action plugin file that causes exception on load
summary: - Show python action plugin file that causes exception on load
+ Show python action plugin file in error message
Changed in kicad:
status: Incomplete → Triaged
importance: Undecided → Low
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

KiCad bug tracker has moved to Gitlab. This report is now available here: https://gitlab.com/kicad/code/kicad/-/issues/1893

Changed in kicad:
status: Triaged → Expired
Changed in kicad:
importance: Low → Unknown
status: Expired → New
Changed in kicad:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.