Comment 10 for bug 1729259

Revision history for this message
xzcvczx (xzcvczx) wrote : Re: [Bug 1729259] Re: Cannot close windows on macOS Sierra 10.12.6

Ah yes that will be the problem then,

There is current efforts being made to work around this issue, but its not something that will be working soon
Unfortunately the workarounds prior to that are not pretty, and mostly consist of not having a system wxpython install

It will mainly require removing the usage of wxversion.py as that does not work nor is it designed to work with bundled libraries as yeah it breaks stuff (well documented as such) so wxversion.py is only useful on linux.

There is also efforts going on to bundle the entire python runtime as recommended by apple for applications that require python, so this should also help.

> On 21/11/2017, at 12:59 AM, Brendan Simon <email address hidden> wrote:
>
> I do NOT have `wxpython` or `wxmac` installed via brew. I do have
> official wxPython packages installed via the installer for Python 2.5,
> 2.6 and 2.7. I also have wxPhoenix (wxPython 4.0) wheel installed for
> Python 3.6 via pip.
>
> I can not close `pcbnew` or open the python scripting console.
>
> If if I rename `/usr/local/bin` and `/usr/local/lib`, then things start
> to work. i.e. I can close the `pcbnew` window and the python scripting
> console appears.
>
> sudo mv /usr/local/bin /usr/local/bin.ORIG
> sudo mv /usr/local/lib /usr/local/lib.ORIG
>
> Interestingly, v4.0.7 python console has some issues with some keys.
> e.g. I can't press the `o` or `x` keys as they are interpreted as
> accelerators and the menu flashes. This does not happen in recent
> snapshots.
>
> import sys
> print sys.path
> ['/private/var/folders/1h/df5214x933ndx_mpl0h71l_r0000gn/T/AppTranslocation/89F1319C-EF15-4533-943D-13121F48F49B/d/kicad.app/Contents/Frameworks/python/site-packages/wx-3.0-osx_cocoa', '/private/var/folders/1h/df5214x933ndx_mpl0h71l_r0000gn/T/AppTranslocation/89F1319C-EF15-4533-943D-13121F48F49B/d/kicad.app/Contents/Frameworks/python/site-packages/wx-3.0-osx_cocoa', '/private/var/folders/1h/df5214x933ndx_mpl0h71l_r0000gn/T/AppTranslocation/89F1319C-EF15-4533-943D-13121F48F49B/d/kicad.app/Contents/SharedSupport/scripting', '/private/var/folders/1h/df5214x933ndx_mpl0h71l_r0000gn/T/AppTranslocation/89F1319C-EF15-4533-943D-13121F48F49B/d/kicad.app/Contents/Frameworks/python/site-packages', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/Users/brendan/Library/Python/2.7/lib/python/site-packages', '/usr/local/lib/python2.7/site-packages', '/Library/Python/2.7/site-packages', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC', '/usr/local/lib/wxPython-3.0.2.0/lib/python2.7', '.', '/private/var/folders/1h/df5214x933ndx_mpl0h71l_r0000gn/T/AppTranslocation/89F1319C-EF15-4533-943D-13121F48F49B/d/kicad.app/Contents/SharedSupport/scripting', '/private/var/folders/1h/df5214x933ndx_mpl0h71l_r0000gn/T/AppTranslocation/89F1319C-EF15-4533-943D-13121F48F49B/d/kicad.app/Contents/SharedSupport/scripting/plugins']
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1729259
>
> Title:
> Cannot close windows on macOS Sierra 10.12.6
>
> Status in KiCad:
> New
>
> Bug description:
> Cannot close windows on macOS Sierra 10.12.6, when clicking on close
> button in window frame (red circle/cross in top/left of frame).
>
> The window does not react at all. Minimise (amber) and Full Screen
> (green) buttons work ok.
>
> It was originally noticed with `pcbnew` and `footprint editor` but
> also happens with the About dialog box. Interestingly `kicad.app`,
> `eeschema.app`, `gerbview.app` all work ok.
>
> The close button works fine in other applications, so it must be a
> Kicad issue.
>
> I can close most windows via the OK or CANCEL buttons, if they have
> them, but some windows such as `pcbnew` and `footprint editor` do not
> have these buttons.
>
> Oh, an there doesn't seem to be any menu entries to close the window
> either.
>
> ----
>
> Application: pcbnew
> Version: (2017-10-23 revision a562525)-master, release build
> Libraries:
> wxWidgets 3.0.2
> libcurl/7.54.0 SecureTransport zlib/1.2.8
> Platform: Mac OS X (Darwin 16.7.0 x86_64), 64 bit, Little endian, wxMac
> Build Info:
> wxWidgets: 3.0.2 (UTF-8,STL containers,compatible with 2.8)
> Boost: 1.61.0
> Curl: 7.43.0
> Compiler: Clang 7.3.0 with C++ ABI 1002
>
> Build settings:
> USE_WX_GRAPHICS_CONTEXT=ON
> USE_WX_OVERLAY=ON
> KICAD_SCRIPTING=ON
> KICAD_SCRIPTING_MODULES=ON
> KICAD_SCRIPTING_WXPYTHON=ON
> KICAD_SCRIPTING_ACTION_MENU=ON
> BUILD_GITHUB_PLUGIN=ON
> KICAD_USE_OCE=ON
> KICAD_SPICE=ON
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/kicad/+bug/1729259/+subscriptions