openscopeproject / InteractiveHtmlBom

Interactive HTML BOM generation plugin for KiCad, EasyEDA, Eagle, Fusion360 and Allegro PCB designer
MIT License
3.76k stars 479 forks source link

Exception with kicad v5.99 #244

Closed chopin1998 closed 2 years ago

chopin1998 commented 3 years ago

image

qu1ck commented 3 years ago

People don't read the FAQ, I guess I'll have to keep one issue about this open until v6 is released.

Use latest version of plugin from master branch if you are using nightly.

chopin1998 commented 3 years ago

sorry.... and thank thee very much!

after git pull from master bransh, it works fine!

arturo182 commented 3 years ago

@qu1ck I have notifications enabled for new issues in this repo and I admire your patience 🙏

blopblopblup commented 3 years ago

Sorry to bring it up again, I do have an exception with 5.99 and the latest pull from master. traceback

edit : I was not using the latest kicad nightly, works now

tistructor commented 3 years ago

I installed kicad's latest nightly and master plugin but I get this error window:

Cattura
qu1ck commented 3 years ago

I have no idea how that error can happen. It complains that wx has no grid attribute which is actually a submodule and it is imported in that same file. If it couldn't find the submodule it should have complained on import, not later when it's used.

Can you try opening scripting console and pasting this line by line:

import wx.grid
g = wx.grid.Grid()
dir(g)
tistructor commented 3 years ago

The problem also occurs in linux mint latest updated version:

Schermata del 2021-10-17 11-34-00

tistructor commented 3 years ago

['AcceleratorTable', 'AcceptsFocus', 'AcceptsFocusFromKeyboard', 'AcceptsFocusRecursively', 'AddChild', 'AddFilter', 'AddPendingEvent', 'AdjustForLayoutDirection', 'AdjustScrollbars', 'AlwaysShowScrollbars', 'AppendCols', 'AppendRows', 'AreHorzGridLinesClipped', 'AreVertGridLinesClipped', 'AssignTable', 'AssociateHandle', 'AutoLayout', 'AutoSize', 'AutoSizeColLabelSize', 'AutoSizeColumn', 'AutoSizeColumns', 'AutoSizeRow', 'AutoSizeRowLabelSize', 'AutoSizeRows', 'BackgroundColour', 'BackgroundStyle', 'BatchCount', 'BeginBatch', 'BeginRepositioningChildren', 'BestSize', 'BestVirtualSize', 'Bind', 'BlockToDeviceRect', 'Border', 'CacheBestSize', 'CalcCellsExposed', 'CalcColLabelsExposed', 'CalcGridWindowScrolledPosition', 'CalcGridWindowUnscrolledPosition', 'CalcRowLabelsExposed', 'CalcScrolledPosition', 'CalcUnscrolledPosition', 'CanAcceptFocus', 'CanAcceptFocusFromKeyboard', 'CanDragCell', 'CanDragColMove', 'CanDragColSize', 'CanDragGridColEdges', 'CanDragGridRowEdges', 'CanDragGridSize', 'CanDragRowSize', 'CanEnableCellControl', 'CanHaveAttributes', 'CanHideColumns', 'CanScroll', 'CanSetTransparent', 'CaptureMouse', 'Caret', 'CellHighlightColour', 'CellHighlightPenWidth', 'CellHighlightROPenWidth', 'CellSpan', 'CellSpan_Inside', 'CellSpan_Main', 'CellSpan_None', 'CellToGridWindow', 'CellToRect', 'Center', 'CenterOnParent', 'Centre', 'CentreOnParent', 'CharHeight', 'CharWidth', 'Children', 'ChildrenRepositioningGuard', 'ClassInfo', 'ClassName', 'ClearBackground', 'ClearGrid', 'ClearSelection', 'ClientAreaOrigin', 'ClientRect', 'ClientSize', 'ClientToScreen', 'ClientToWindowSize', 'ClipHorzGridLines', 'ClipVertGridLines', 'Close', 'ColLabelSize', 'ColLabelTextOrientation', 'ColMinimalAcceptableWidth', 'ColSizes', 'Connect', 'Constraints', 'ContainingSizer', 'ConvertDialogPointToPixels', 'ConvertDialogSizeToPixels', 'ConvertDialogToPixels', 'ConvertPixelsToDialog', 'CornerLabelTextOrientation', 'CornerLabelValue', 'Create', 'CreateGrid', 'Cursor', 'DLG_UNIT', 'DefaultAttributes', 'DefaultCellBackgroundColour', 'DefaultCellFitMode', 'DefaultCellFont', 'DefaultCellOverflow', 'DefaultCellTextColour', 'DefaultColLabelSize', 'DefaultColSize', 'DefaultEditor', 'DefaultGridLinePen', 'DefaultRenderer', 'DefaultRowLabelSize', 'DefaultRowSize', 'DeleteCols', 'DeletePendingEvents', 'DeleteRows', 'DeselectCell', 'DeselectCol', 'DeselectRow', 'Destroy', 'DestroyChildren', 'DestroyLater', 'DevicePosToGridWindow', 'Disable', 'DisableCellEditControl', 'DisableColResize', 'DisableDragColMove', 'DisableDragColSize', 'DisableDragGridSize', 'DisableDragRowSize', 'DisableFocusFromKeyboard', 'DisableHidingColumns', 'DisableKeyboardScrolling', 'DisableRowResize', 'Disconnect', 'DissociateHandle', 'DoEnable', 'DoFreeze', 'DoGetBestClientSize', 'DoGetBestSize', 'DoGetBorderSize', 'DoGetClientSize', 'DoGetPosition', 'DoGetSize', 'DoMoveWindow', 'DoPrepareDC', 'DoSetClientSize', 'DoSetSize', 'DoSetSizeHints', 'DoSetWindowVariant', 'DoThaw', 'DoUpdateWindowUI', 'DragAcceptFiles', 'DrawCellHighlight', 'DrawColLabel', 'DrawColLabels', 'DrawCornerLabel', 'DrawRowLabel', 'DrawRowLabels', 'DrawTextRectangle', 'DropTarget', 'EffectiveMinSize', 'Enable', 'EnableCellEditControl', 'EnableDragCell', 'EnableDragColMove', 'EnableDragColSize', 'EnableDragGridSize', 'EnableDragRowSize', 'EnableEditing', 'EnableGridLines', 'EnableHidingColumns', 'EnableScrolling', 'EnableTouchEvents', 'EnableVisibleFocus', 'Enabled', 'EndBatch', 'EndRepositioningChildren', 'EventHandler', 'EvtHandlerEnabled', 'ExtraStyle', 'FindFocus', 'FindWindow', 'FindWindowById', 'FindWindowByLabel', 'FindWindowByName', 'FirstFullyVisibleColumn', 'FirstFullyVisibleRow', 'Fit', 'FitInside', 'Font', 'ForceRefresh', 'ForegroundColour', 'Freeze', 'FreezeTo', 'FromDIP', 'FrozenColGridWindow', 'FrozenCornerGridWindow', 'FrozenRowGridWindow', 'GetAcceleratorTable', 'GetAccessible', 'GetAutoLayout', 'GetBackgroundColour', 'GetBackgroundStyle', 'GetBatchCount', 'GetBestHeight', 'GetBestSize', 'GetBestVirtualSize', 'GetBestWidth', 'GetBorder', 'GetCapture', 'GetCaret', 'GetCellAlignment', 'GetCellBackgroundColour', 'GetCellEditor', 'GetCellFitMode', 'GetCellFont', 'GetCellHighlightColour', 'GetCellHighlightPenWidth', 'GetCellHighlightROPenWidth', 'GetCellOverflow', 'GetCellRenderer', 'GetCellSize', 'GetCellTextColour', 'GetCellValue', 'GetCharHeight', 'GetCharWidth', 'GetChildren', 'GetClassDefaultAttributes', 'GetClassInfo', 'GetClassName', 'GetClientAreaOrigin', 'GetClientRect', 'GetClientSize', 'GetColAt', 'GetColGridLinePen', 'GetColLabelAlignment', 'GetColLabelSize', 'GetColLabelTextOrientation', 'GetColLabelValue', 'GetColLeft', 'GetColMinimalAcceptableWidth', 'GetColMinimalWidth', 'GetColPos', 'GetColRight', 'GetColSize', 'GetColSizes', 'GetConstraints', 'GetContainingSizer', 'GetContentScaleFactor', 'GetCornerLabelAlignment', 'GetCornerLabelTextOrientation', 'GetCornerLabelValue', 'GetCursor', 'GetDPI', 'GetDPIScaleFactor', 'GetDefaultAttributes', 'GetDefaultBorder', 'GetDefaultBorderForControl', 'GetDefaultCellAlignment', 'GetDefaultCellBackgroundColour', 'GetDefaultCellFitMode', 'GetDefaultCellFont', 'GetDefaultCellOverflow', 'GetDefaultCellTextColour', 'GetDefaultColLabelSize', 'GetDefaultColSize', 'GetDefaultEditor', 'GetDefaultEditorForCell', 'GetDefaultEditorForType', 'GetDefaultGridLinePen', 'GetDefaultRenderer', 'GetDefaultRendererForCell', 'GetDefaultRendererForType', 'GetDefaultRowLabelSize', 'GetDefaultRowSize', 'GetDropTarget', 'GetEffectiveMinSize', 'GetEventHandler', 'GetEvtHandlerEnabled', 'GetExtraStyle', 'GetFirstFullyVisibleColumn', 'GetFirstFullyVisibleRow', 'GetFont', 'GetForegroundColour', 'GetFrozenColGridWindow', 'GetFrozenCornerGridWindow', 'GetFrozenRowGridWindow', 'GetFullTextExtent', 'GetGrandParent', 'GetGridColHeader', 'GetGridColLabelWindow', 'GetGridCornerLabelWindow', 'GetGridCursorCol', 'GetGridCursorCoords', 'GetGridCursorRow', 'GetGridLineColour', 'GetGridRowLabelWindow', 'GetGridWindow', 'GetGridWindowOffset', 'GetGtkWidget', 'GetHandle', 'GetHelpText', 'GetHelpTextAtPoint', 'GetId', 'GetLabel', 'GetLabelBackgroundColour', 'GetLabelFont', 'GetLabelTextColour', 'GetLayoutDirection', 'GetMainWindowOfCompositeControl', 'GetMaxClientSize', 'GetMaxHeight', 'GetMaxSize', 'GetMaxWidth', 'GetMinClientSize', 'GetMinHeight', 'GetMinSize', 'GetMinWidth', 'GetName', 'GetNextHandler', 'GetNextSibling', 'GetNumberCols', 'GetNumberFrozenCols', 'GetNumberFrozenRows', 'GetNumberRows', 'GetOrCreateCellAttr', 'GetOrCreateCellAttrPtr', 'GetParent', 'GetPopupMenuSelectionFromUser', 'GetPosition', 'GetPositionTuple', 'GetPrevSibling', 'GetPreviousHandler', 'GetRect', 'GetRefData', 'GetRowGridLinePen', 'GetRowLabelAlignment', 'GetRowLabelSize', 'GetRowLabelValue', 'GetRowMinimalAcceptableHeight', 'GetRowMinimalHeight', 'GetRowSize', 'GetRowSizes', 'GetScaleX', 'GetScaleY', 'GetScreenPosition', 'GetScreenRect', 'GetScrollLineX', 'GetScrollLineY', 'GetScrollLines', 'GetScrollPageSize', 'GetScrollPixelsPerUnit', 'GetScrollPos', 'GetScrollRange', 'GetScrollThumb', 'GetSelectedBlocks', 'GetSelectedCells', 'GetSelectedColBlocks', 'GetSelectedCols', 'GetSelectedRowBlocks', 'GetSelectedRows', 'GetSelectionBackground', 'GetSelectionBlockBottomRight', 'GetSelectionBlockTopLeft', 'GetSelectionForeground', 'GetSelectionMode', 'GetSize', 'GetSizeAvailableForScrollTarget', 'GetSizeTuple', 'GetSizer', 'GetSortingColumn', 'GetTable', 'GetTargetRect', 'GetTargetWindow', 'GetTextExtent', 'GetThemeEnabled', 'GetToolTip', 'GetToolTipText', 'GetTopLevelParent', 'GetUpdateClientRect', 'GetUpdateRegion', 'GetValidator', 'GetViewStart', 'GetVirtualSize', 'GetVirtualSizeTuple', 'GetWindowBorderSize', 'GetWindowStyle', 'GetWindowStyleFlag', 'GetWindowVariant', 'GoToCell', 'GrandParent', 'GridColHeader', 'GridColLabelWindow', 'GridCornerLabelWindow', 'GridCursorCol', 'GridCursorCoords', 'GridCursorRow', 'GridLineColour', 'GridLinesEnabled', 'GridRowLabelWindow', 'GridSelectCells', 'GridSelectColumns', 'GridSelectNone', 'GridSelectRows', 'GridSelectRowsOrColumns', 'GridSelectionModes', 'GridWindow', 'Handle', 'HandleAsNavigationKey', 'HandleWindowEvent', 'HasCapture', 'HasExtraStyle', 'HasFlag', 'HasFocus', 'HasMultiplePages', 'HasScrollbar', 'HasTransparentBackground', 'HelpText', 'Hide', 'HideCellEditControl', 'HideCol', 'HideColLabels', 'HideRow', 'HideRowLabels', 'HideWithEffect', 'HitTest', 'Id', 'InformFirstDirection', 'InheritAttributes', 'InheritsBackgroundColour', 'InheritsForegroundColour', 'InitDialog', 'InsertCols', 'InsertRows', 'InvalidateBestSize', 'IsAutoScrolling', 'IsBeingDeleted', 'IsCellEditControlEnabled', 'IsCellEditControlShown', 'IsColShown', 'IsCurrentCellReadOnly', 'IsDescendant', 'IsDoubleBuffered', 'IsEditable', 'IsEnabled', 'IsExposed', 'IsFocusable', 'IsFrozen', 'IsInSelection', 'IsReadOnly', 'IsRetained', 'IsRowShown', 'IsSameAs', 'IsScrollbarAlwaysShown', 'IsSelection', 'IsShown', 'IsShownOnScreen', 'IsSortOrderAscending', 'IsSortingBy', 'IsThisEnabled', 'IsTopLevel', 'IsTransparentBackgroundSupported', 'IsUnlinked', 'IsUsingNativeHeader', 'IsVisible', 'Label', 'LabelBackgroundColour', 'LabelFont', 'LabelTextColour', 'Layout', 'LayoutDirection', 'LineDown', 'LineUp', 'Lower', 'MacIsWindowScrollbar', 'MakeCellVisible', 'MaxClientSize', 'MaxHeight', 'MaxSize', 'MaxWidth', 'MinClientSize', 'MinHeight', 'MinSize', 'MinWidth', 'Move', 'MoveAfterInTabOrder', 'MoveBeforeInTabOrder', 'MoveCursorDown', 'MoveCursorDownBlock', 'MoveCursorLeft', 'MoveCursorLeftBlock', 'MoveCursorRight', 'MoveCursorRightBlock', 'MoveCursorUp', 'MoveCursorUpBlock', 'MovePageDown', 'MovePageUp', 'MoveXY', 'Name', 'Navigate', 'NavigateIn', 'NewControlId', 'NextHandler', 'NumberCols', 'NumberFrozenCols', 'NumberFrozenRows', 'NumberRows', 'OnDraw', 'OnInternalIdle', 'PageDown', 'PageUp', 'Parent', 'PopEventHandler', 'PopupMenu', 'Position', 'PostCreate', 'PostSizeEvent', 'PostSizeEventToParent', 'PrepareDC', 'PreviousHandler', 'ProcessEvent', 'ProcessEventLocally', 'ProcessPendingEvents', 'ProcessTableMessage', 'ProcessWindowEvent', 'ProcessWindowEventLocally', 'PushEventHandler', 'QueueEvent', 'Raise', 'Rect', 'Ref', 'RefData', 'Refresh', 'RefreshAttr', 'RefreshRect', 'RegisterDataType', 'RegisterHotKey', 'ReleaseMouse', 'RemoveChild', 'RemoveEventHandler', 'RemoveFilter', 'Render', 'Reparent', 'ResetColPos', 'RowLabelSize', 'RowMinimalAcceptableHeight', 'RowSizes', 'SafelyProcessEvent', 'SaveEditControlValue', 'ScaleX', 'ScaleY', 'ScreenPosition', 'ScreenRect', 'ScreenToClient', 'Scroll', 'ScrollLineX', 'ScrollLineY', 'ScrollLines', 'ScrollPages', 'ScrollWindow', 'SelectAll', 'SelectBlock', 'SelectCells', 'SelectCol', 'SelectColumns', 'SelectRow', 'SelectRows', 'SelectRowsOrColumns', 'SelectedBlocks', 'SelectedCells', 'SelectedColBlocks', 'SelectedCols', 'SelectedRowBlocks', 'SelectedRows', 'SelectionBackground', 'SelectionBlockBottomRight', 'SelectionBlockTopLeft', 'SelectionForeground', 'SelectionMode', 'SendAutoScrollEvents', 'SendDestroyEvent', 'SendIdleEvents', 'SendSizeEvent', 'SendSizeEventToParent', 'SetAcceleratorTable', 'SetAccessible', 'SetAttr', 'SetAutoLayout', 'SetBackgroundColour', 'SetBackgroundStyle', 'SetCanFocus', 'SetCaret', 'SetCellAlignment', 'SetCellBackgroundColour', 'SetCellEditor', 'SetCellFitMode', 'SetCellFont', 'SetCellHighlightColour', 'SetCellHighlightPenWidth', 'SetCellHighlightROPenWidth', 'SetCellOverflow', 'SetCellRenderer', 'SetCellSize', 'SetCellTextColour', 'SetCellValue', 'SetClientRect', 'SetClientSize', 'SetColAttr', 'SetColFormatBool', 'SetColFormatCustom', 'SetColFormatDate', 'SetColFormatFloat', 'SetColFormatNumber', 'SetColLabelAlignment', 'SetColLabelSize', 'SetColLabelTextOrientation', 'SetColLabelValue', 'SetColMinimalAcceptableWidth', 'SetColMinimalWidth', 'SetColPos', 'SetColSize', 'SetColSizes', 'SetColumnsOrder', 'SetConstraints', 'SetContainingSizer', 'SetCornerLabelAlignment', 'SetCornerLabelTextOrientation', 'SetCornerLabelValue', 'SetCursor', 'SetDefaultCellAlignment', 'SetDefaultCellBackgroundColour', 'SetDefaultCellFitMode', 'SetDefaultCellFont', 'SetDefaultCellOverflow', 'SetDefaultCellTextColour', 'SetDefaultColSize', 'SetDefaultEditor', 'SetDefaultRenderer', 'SetDefaultRowSize', 'SetDimensions', 'SetDoubleBuffered', 'SetDropTarget', 'SetEventHandler', 'SetEvtHandlerEnabled', 'SetExtraStyle', 'SetFocus', 'SetFocusFromKbd', 'SetFont', 'SetForegroundColour', 'SetGridCursor', 'SetGridFrozenBorderColour', 'SetGridFrozenBorderPenWidth', 'SetGridLineColour', 'SetHelpText', 'SetId', 'SetInitialSize', 'SetLabel', 'SetLabelBackgroundColour', 'SetLabelFont', 'SetLabelTextColour', 'SetLayoutDirection', 'SetMargins', 'SetMaxClientSize', 'SetMaxSize', 'SetMinClientSize', 'SetMinSize', 'SetName', 'SetNextHandler', 'SetOwnBackgroundColour', 'SetOwnFont', 'SetOwnForegroundColour', 'SetPalette', 'SetPosition', 'SetPreviousHandler', 'SetReadOnly', 'SetRect', 'SetRefData', 'SetRowAttr', 'SetRowLabelAlignment', 'SetRowLabelSize', 'SetRowLabelValue', 'SetRowMinimalAcceptableHeight', 'SetRowMinimalHeight', 'SetRowSize', 'SetRowSizes', 'SetScale', 'SetScrollLineX', 'SetScrollLineY', 'SetScrollPageSize', 'SetScrollPos', 'SetScrollRate', 'SetScrollbar', 'SetScrollbars', 'SetSelectionBackground', 'SetSelectionForeground', 'SetSelectionMode', 'SetSize', 'SetSizeHints', 'SetSizeHintsSz', 'SetSizeWH', 'SetSizer', 'SetSizerAndFit', 'SetSortingColumn', 'SetTabBehaviour', 'SetTable', 'SetTargetRect', 'SetTargetWindow', 'SetThemeEnabled', 'SetToolTip', 'SetToolTipString', 'SetTransparent', 'SetUseNativeColLabels', 'SetValidator', 'SetVirtualSize', 'SetVirtualSizeWH', 'SetWindowStyle', 'SetWindowStyleFlag', 'SetWindowVariant', 'ShouldInheritColours', 'ShouldScrollToChildOnFocus', 'Show', 'ShowCellEditControl', 'ShowCol', 'ShowRow', 'ShowScrollbars', 'ShowWithEffect', 'Shown', 'Size', 'Sizer', 'SortingColumn', 'StopAutoScrolling', 'TabBehaviour', 'Tab_Leave', 'Tab_Stop', 'Tab_Wrap', 'Table', 'TargetRect', 'TargetWindow', 'Thaw', 'ThemeEnabled', 'ToDIP', 'ToggleWindowStyle', 'ToolTip', 'TopLevel', 'TopLevelParent', 'TransferDataFromWindow', 'TransferDataToWindow', 'TryAfter', 'TryBefore', 'UnRef', 'UnShare', 'Unbind', 'Unlink', 'UnregisterHotKey', 'UnreserveControlId', 'UnsetSortingColumn', 'UnsetToolTip', 'Update', 'UpdateClientRect', 'UpdateRegion', 'UpdateWindowUI', 'UseBackgroundColour', 'UseBgCol', 'UseForegroundColour', 'UseNativeColHeader', 'Validate', 'Validator', 'VirtualSize', 'WarpPointer', 'WindowStyle', 'WindowStyleFlag', 'WindowToClientSize', 'WindowVariant', 'XToCol', 'XToEdgeOfCol', 'XYToCell', 'YToEdgeOfRow', 'YToRow', '_SetTable', 'bool', 'class', 'delattr', 'dict', 'dir', 'doc', 'eq', 'format', 'ge', 'getattribute', 'gt', 'hash', 'init', 'init_subclass', 'le', 'lt', 'module', 'ne', 'new', 'nonzero', 'reduce', 'reduce_ex', 'repr', 'setattr', 'sizeof', 'str', 'subclasshook', 'weakref']

tistructor commented 3 years ago

Now the error window has changed and is similar to the one in linux

Cattura

:

qu1ck commented 3 years ago

The last error makes more sense. This needs kicad fix: https://gitlab.com/kicad/code/kicad/-/merge_requests/963

tistructor commented 3 years ago

Thanks, Will I have to wait for new builds to try the plugin?

qu1ck commented 3 years ago

Either that or patch the diff I linked and build yourself :) Another option (at least for windows) is to grab a kicad nightly that is a few days old, I think a build from 3-4 days ago should be fine.

firebladed commented 3 years ago

latest windows nightly(kicad-msvc.r24734.fb5fef9f5f-x86_64.exe) and master is getting me image

qu1ck commented 3 years ago

Well, v2.4 didn't last long, time to fix compatibility again...

qu1ck commented 3 years ago

Needs another kicad fix and plugin fix. Kicad MR here: https://gitlab.com/kicad/code/kicad/-/merge_requests/967

qu1ck commented 3 years ago

Should be fixed in 25c088b but you will need to get newer kicad nightly as well.

qu1ck commented 2 years ago

Now that v6 is released this issue is obsolete.