Yes, I’ve discovered this as well. It looks like the new version of waf is adding some additional linker flags which is tying the binaries to the stock Pythons and so it has troubles like this when trying to use wxPython with other Pythons. I’m working on it and expect to have it fixed soon, and will then put out a 4.0.3 release.
···
On Thursday, June 21, 2018 at 10:10:38 AM UTC-7, Jan Leys wrote:
Hello,
After updating from a working 4.0.1 to 4.0.2, I get the following:
~> python3
Python 3.6.5 (default, Jun 17 2018, 18:35:36)
[GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.2)] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.
import wx
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib/python3.6/site-packages/wx/init.py”, line 17, in
from wx.core import *
File “/usr/local/lib/python3.6/site-packages/wx/core.py”, line 12, in
from ._core import *
ImportError: dlopen(/usr/local/lib/python3.6/site-packages/wx/_core.cpython-36m-darwin.so, 2): Library not loaded: /Library/Frameworks/Python.framework/Versions/3.6/Python
Any suggestions on cause, solution, or anything I can do to help find out?
MacOS 10.13.5
Homebrew python or Anaconda python
pip3 install -U wxpython
Yes, I’ve discovered this as well. It looks like the new version of waf is adding some additional linker flags which is tying the binaries to the stock Pythons and so it has troubles like this when trying to use wxPython with other Pythons. I’m working on it and expect to have it fixed soon, and will then put out a 4.0.3 release.