HiGregSmith / LayerViewSet

A gui for manipulating view sets within KiCad.
9 stars 3 forks source link

wx object is NoneType #1

Closed KarlZeilhofer closed 6 years ago

KarlZeilhofer commented 6 years ago

Hi, I just tried your plugin on Linux Mint 18.1 with the nightly KiCad. I get this message, when I click on the menu entry:

2018-05-05_003

Do you have any ideas, what I can do about it?

Greets, Karl

To make the text searchable:

Traceback (most recent call last):

  File "/usr/share/kicad/scripting/plugins/layerviewset.py", line 390, in Run
    wx.GetTopLevelWindows()

AttributeError: 'NoneType' object has no attribute 'GetTopLevelWindows'
HiGregSmith commented 6 years ago

What version of KiCad are you using (and version of wxPython)?

I should be able to look at this in about 12 hours.

HiGregSmith commented 6 years ago

I just saw "nightly" so that answers that question. What about wxPython version?

HiGregSmith commented 6 years ago

I downloaded today's windows nightly and had to fix one of the constants from pcbnew. But I don't get the error you see regarding "wx" as NoneType. It seems like something is wrong with "import wx" but I'm not sure why there isn't an error on the "import wx" line.

HiGregSmith commented 6 years ago

Also uploaded a fix to the name/save function.

HiGregSmith commented 6 years ago

I have one windows user that had the same error as you reporting that the updated LayerViewSet works for them. Does this fix the issue in Linux?

HiGregSmith commented 6 years ago

I duplicated the error by initiating LayerViewSet from the External Tools menu. It failed with the same error message you report. I've uploaded a fix for this.

KarlZeilhofer commented 6 years ago

That problem seems to be fixed now, but I got a new one.