InteractiveHtmlBom icon indicating copy to clipboard operation
InteractiveHtmlBom copied to clipboard

Exception with 6.99 nightly

Open cebrax opened this issue 2 years ago • 21 comments

Hello,

Thank you for this great plugin :)

Do you have any plans for 6.99 nightly compatibility? I am getting below exception:

exception

cebrax avatar Jan 05 '22 07:01 cebrax

I have a patch for this particular issue already but wanted to wait few weeks because the API is expected to be in turmoil while some major refactors take place.

qu1ck avatar Jan 05 '22 22:01 qu1ck

Is there any way to use it at 6.99 now? After getting used to ibom, it's really a big hassle not to use it.

linser233 avatar Feb 02 '22 12:02 linser233

No. There are regressions in KiCad API that break ibom, i'm trying to fix them (https://gitlab.com/kicad/code/kicad/-/merge_requests/1103)

qu1ck avatar Feb 03 '22 02:02 qu1ck

Wow, seeing now all the things you are trying to do, I feel even more grateful for this plugin. Also, I think lots of other KiCad users are very grateful, too. Thank you for your wonderful efforts

cebrax avatar Feb 03 '22 03:02 cebrax

I'm getting another exception:

File "/opt/kicad/share/kicad/plugins/InteractiveHtmlBom/InteractiveHtmlBom/ecad/kicad.py", line 220, in parse_text angle = d.GetTextAngle() * 0.1 TypeError: unsupported operand type(s) for *: 'EDA_ANGLE' and 'float'

sborshch avatar Feb 04 '22 06:02 sborshch

My case, also Nightly 6.99:

image

hildogjr avatar Feb 17 '22 16:02 hildogjr

@qu1ck Any updates? I'm running into the same EDA_ANGLE issue as @hildogjr

C44Supra avatar Mar 18 '22 01:03 C44Supra

Just pushed 50c790cc6494d62d6127e38725312a0f9202ce94, it brings compatibility up to current nightly. If you are running into issues please update kicad first before reporting them, otherwise keep posting problems in this bug.

qu1ck avatar Mar 19 '22 03:03 qu1ck

Just pushed 50c790c, it brings compatibility up to current nightly. If you are running into issues please update kicad first before reporting them, otherwise keep posting problems in this bug.

Works for me now, thanks.

Updating the dcm zip in the releases would be great, as I was downloading it there first. In the wiki it is refered to as "the latest release", which made me think it's generated automatically.

In any case, thanks a lot for your work. I really takes the edge out of assembling PCBs.

SilvanRehm avatar Apr 06 '22 06:04 SilvanRehm

Nice, worked fine the fix.

hildogjr avatar Apr 06 '22 15:04 hildogjr

@SilvanRehm that wiki also has a note abot 6.99

...first make sure that you have latest kicad nightly and latest version of the plugin from git, not a published release.

PCM zips are immutable (they are tied to a hash in the kicad repository) and I don't publish new release for every nightly change.

qu1ck avatar Apr 06 '22 19:04 qu1ck

@SilvanRehm that wiki also has a note abot 6.99

...first make sure that you have latest kicad nightly and latest version of the plugin from git, not a published release.

PCM zips are immutable (they are tied to a hash in the kicad repository) and I don't publish new release for every nightly change.

I did read this. But later it says:

Download latest release or clone plugin repository in a directory of your choice.

-> the PCM zip is refered to as "latest", same wording as above in the note about 6.99. This made me think I am getting the right one. It's also offered as an alternative to cloning the repo.

SilvanRehm avatar Apr 07 '22 10:04 SilvanRehm

I've downloaded v2.4.1 and master on 6.99 and still getting Exceptios:

image

image

DOGKiCad avatar Apr 27 '22 14:04 DOGKiCad

I've downloaded v2.4.1 and master

Don't get both, remove 2.4.1, use only master.

qu1ck avatar Apr 27 '22 23:04 qu1ck

I've uninstalled v2.4.1 and installed master . Still getting the same exceptions

After extracting the ZIP files I get the below error

image image

DOGKiCad avatar Apr 28 '22 11:04 DOGKiCad

@DOGKiCad please read the installation wiki. You can not install this plugin on kicad nightly from PCM, remove it from PCM and follow manual installation instructions from wiki.

qu1ck avatar Apr 28 '22 20:04 qu1ck

@quick, iBOM refuses to start with current nightly (see version below). Last seen (worked on exports that day) worked v6.99 + iBOM combination was ~April 27 (that days nightly).

1345P

Application: KiCad (64-bit)

Version: (6.99.0-1920-g294b8e9051), release build

Libraries:
	wxWidgets 3.1.6
	FreeType 2.11.1
	HarfBuzz 4.2.0
	FontConfig 2.14.0
	libcurl/7.83.1-DEV Schannel zlib/1.2.12

Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW

Build Info:
	Date: May 19 2022 07:19:41
	wxWidgets: 3.1.6 (wchar_t,wx containers)
	Boost: 1.79.0
	OCC: 7.6.0
	Curl: 7.83.1-DEV
	ngspice: 36
	Compiler: Visual C++ 1929 without C++ ABI

Build settings:
	KICAD_USE_OCC=ON
	KICAD_SPICE=ON

WhiteChairFromIkea avatar May 20 '22 08:05 WhiteChairFromIkea

Attaching sample project: smpl.ZIP

(cannot edit my previous post for some reason, updating right here:) Running fine with older kicad nightly: kicad-nightly-r27507.dfdedfa605-x86_64-lite.exe (dated may 06) (checked right now).

WhiteChairFromIkea avatar May 20 '22 08:05 WhiteChairFromIkea

Thanks for the report, this is caused by update to wxwidgets 3.1.6 which has API breaking change that wxpython has not caught up to yet. I'll see if I can word around this.

qu1ck avatar May 20 '22 17:05 qu1ck

Should be fixed in fdf59d8

qu1ck avatar May 20 '22 18:05 qu1ck

Should be fixed in fdf59d8

Thank you! 🙂

WhiteChairFromIkea avatar May 20 '22 18:05 WhiteChairFromIkea

I'm getting a similar (but different) error on Kicad 7.

Traceback (most recent call last):
  File "/home/runner/work/***/***/hardware/InteractiveHtmlBom/InteractiveHtmlBom/generate_interactive_bom.py", line 63, in <module>
    ibom.main(parser, config, logger)
  File "/home/runner/work/***/***/hardware/InteractiveHtmlBom/InteractiveHtmlBom/core/ibom.py", line 283, in main
    pcbdata, components = parser.parse()
  File "/home/runner/work/***/***/hardware/InteractiveHtmlBom/InteractiveHtmlBom/ecad/kicad.py", line 567, in parse
    "silkscreen": self.parse_drawings_on_layers(
  File "/home/runner/work/***/***/hardware/InteractiveHtmlBom/InteractiveHtmlBom/ecad/kicad.py", line 226, in parse_drawings_on_layers
    drawing = self.parse_drawing(d[1])
  File "/home/runner/work/***/***/hardware/InteractiveHtmlBom/InteractiveHtmlBom/ecad/kicad.py", line 191, in parse_drawing
    return self.parse_shape(d)
  File "/home/runner/work/***/***/hardware/InteractiveHtmlBom/InteractiveHtmlBom/ecad/kicad.py", line 76, in parse_shape
    a1 = round(d.GetArcAngleStart() * 0.1, 2)
TypeError: type EDA_ANGLE doesn't define __round__ method

chuckwagoncomputing avatar Mar 11 '23 15:03 chuckwagoncomputing

Update your plugin, you are running old version.

qu1ck avatar Mar 11 '23 16:03 qu1ck

You're right; sorry for the disruption.

chuckwagoncomputing avatar Mar 11 '23 17:03 chuckwagoncomputing

This issue is no longer relevant but I suspect it won't be long until there is one for 7.99.

qu1ck avatar May 15 '23 16:05 qu1ck