Re: wxPython 4.0.2 on mac import fail
Robin Dunn <[email protected]> Thu, 21 Jun 2018 11:31:52 -0700 (PDT)
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
On Thursday, June 21, 2018 at 11:29:25 AM UTC-7, Robin Dunn wrote: > > 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 "<stdin>", line 1, in <module> >> File "/usr/local/lib/python3.6/site-packages/wx/__init__.py", line 17, >> in <module> >> from wx.core import * >> File "/usr/local/lib/python3.6/site-packages/wx/core.py", line 12, in >> <module> >> 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 >> Referenced from: /usr/local/lib/python3.6/site-packages/wx/_ >> core.cpython-36m-darwin.so >> Reason: image not found >> >> 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. > > For the record, this is only an issue on OSX. -- Robin > -- You received this message because you are subscribed to the Google Groups "wxPython-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.