Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list index out of range #73

Open
Virtual-Java opened this issue Jul 14, 2024 · 0 comments
Open

list index out of range #73

Virtual-Java opened this issue Jul 14, 2024 · 0 comments

Comments

@Virtual-Java
Copy link

Hey guys,
unfortunately after getting your plugin one time working now I get almost always the same "list index out of range" error.
The error is displayed in terminal when I start kicad in terminal and refuses "kimotor" to do anything after pressing "Generate" button.
The error is thrown for all of my test configuration files, whether they have "Mounting Holes" or "None".
Changing the diameter of "Terminals" does not refuse the plugin to throw exact the same error on each run with all of my configuration files.

2024-07-14_kimotor.kmt.txt
2024-07-14_kimotor-2.kmt.txt
2024-07-14_kimotor-3.kmt.txt
2024-07-14_kimotor-4.kmt.txt
2024-07-14_kimotor-5.kmt.txt
kimotor.kmt.txt
kimotor2.kmt.txt

~]$ kicad
Traceback (most recent call last):
  File "/home/jonathan/.local/share/kicad/8.99/3rdparty/plugins/com_github_cooked_kimotor/kimotor_action.py", line 1351, in on_btn_generate
    self.generate()
  File "/home/jonathan/.local/share/kicad/8.99/3rdparty/plugins/com_github_cooked_kimotor/kimotor_action.py", line 312, in generate
    self.do_terminals(
  File "/home/jonathan/.local/share/kicad/8.99/3rdparty/plugins/com_github_cooked_kimotor/kimotor_action.py", line 761, in do_terminals
    xy_c = coils[i][0][0]
           ~~~~~^^^
IndexError: list index out of range

I use numpy version 1.26.4-1 on Archlinux
python-numpy-1.26.4-1-x86_64.pkg.tar.zst package on archlinux

My system was last updated in 12/2023 since KiCAD makes problems with updated system and newer versions of python ==> never change a running system;-)

Application: KiCad x86_64 on x86_64
Version: 8.99.0-253-g4e8e14ae3a, release build
Libraries:
wxWidgets 3.2.4
FreeType 2.13.2
HarfBuzz 8.3.0
FontConfig 2.15.0
libcurl/8.7.1 OpenSSL/3.2.1 zlib/1.3.1 brotli/1.1.0 zstd/1.5.5 libidn2/2.3.7 libpsl/0.21.2 libssh2/1.11.0 nghttp2/1.61.0 nghttp3/1.2.0
Platform: Arch Linux, 64 bit, Little endian, wxGTK, X11, , tty
Build Info:
Date: Mar 5 2024 17:27:34
wxWidgets: 3.2.4 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.83.0
OCC: 7.7.2
Curl: 8.6.0
ngspice: 42
Compiler: GCC 13.2.1 with C++ ABI 1018
Build settings:
KICAD_USE_EGL=ON

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant