I just re-booted my machine, after a hang (not a common occurrence), and now when I try to import wx, I get:
>>> import wx
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2. 8-mac-unicode/wx/__init__.py", line 45, in <module> from wx._core import * File "/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2. 8-mac-unicode/wx/_core.py", line 4, in <module> import _core_ ImportError: dlopen(/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages /wx-2.8-mac-unicode/wx/_core_.so, 2): Library not loaded: /usr/local/lib/wxPython-unicode-2.8.12.1/lib/libwx_macud-2.8.0.dylib Referenced from: /usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8 -mac-unicode/wx/_core_.so Reason: Incompatible library version: _core_.so requires version 9.0.0 or later, but libwx_macud-2.8.0.dylib provides version 2.6.0
It was running fine before the reboot.
re-installing wxPython seems to fix it.
weird -- not taking the time to test s re-boot now -- but I did have a similar issue before, not sure if it was after a re-boot, but it did involve wx mysteriously stopping working.
Any ideas?
-Chris
--
Christopher Barker, Ph.D. Oceanographer
Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception
> I just re-booted my machine, after a hang (not a common occurrence), > and now when I try to import wx, I get:
>>>> import wx > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2. 8-mac-unicode/wx/__init__.py", > line 45, in <module> > from wx._core import * > File "/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2. 8-mac-unicode/wx/_core.py", > line 4, in <module> > import _core_ > ImportError: dlopen(/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages /wx-2.8-mac-unicode/wx/_core_.so, > 2): Library not loaded: > /usr/local/lib/wxPython-unicode-2.8.12.1/lib/libwx_macud-2.8.0.dylib > Referenced from: > /usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8 -mac-unicode/wx/_core_.so > Reason: Incompatible library version: _core_.so requires version > 9.0.0 or later, but libwx_macud-2.8.0.dylib provides version 2.6.0
> It was running fine before the reboot.
> re-installing wxPython seems to fix it.
> weird -- not taking the time to test s re-boot now -- but I did have a > similar issue before, not sure if it was after a re-boot, but it did > involve wx mysteriously stopping working.
> Any ideas?
> -Chris
> --
> Christopher Barker, Ph.D. > Oceanographer
> Emergency Response Division > NOAA/NOS/OR&R (206) 526-6959 voice > 7600 Sand Point Way NE (206) 526-6329 fax > Seattle, WA 98115 (206) 526-6317 main reception
> I just re-booted my machine, after a hang (not a common occurrence), > and now when I try to import wx, I get:
>>>> import wx > Traceback (most recent call last): > File "<stdin>", line 1, in<module> > File "/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2. 8-mac-unicode/wx/__init__.py", > line 45, in<module> > from wx._core import * > File "/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2. 8-mac-unicode/wx/_core.py", > line 4, in<module> > import _core_ > ImportError: dlopen(/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages /wx-2.8-mac-unicode/wx/_core_.so, > 2): Library not loaded: > /usr/local/lib/wxPython-unicode-2.8.12.1/lib/libwx_macud-2.8.0.dylib > Referenced from: > /usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8 -mac-unicode/wx/_core_.so > Reason: Incompatible library version: _core_.so requires version > 9.0.0 or later, but libwx_macud-2.8.0.dylib provides version 2.6.0
> It was running fine before the reboot.
> re-installing wxPython seems to fix it.
> weird -- not taking the time to test s re-boot now -- but I did have a > similar issue before, not sure if it was after a re-boot, but it did > involve wx mysteriously stopping working.
> Any ideas?
I wonder if it was finding the wx installed by Apple instead of the one installed by wxPython.
<kevin-li...@theolliviers.com> wrote: > After the hang, did you do a hardware check on the hard drive and RAM?
nope -- but I suppose that is good practice -- particularly the hard drive, I could well have messed that up with the hard-reboot.
Robin wrote: > I wonder if it was finding the wx installed by Apple instead of the one installed by wxPython.
well, the traceback indicates it's working with the copies in /usr/local/lib -- that wouldn't be Apple's.
>> import _core_ >> ImportError: dlopen(/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages /wx-2.8-mac-unicode/wx/_core_.so, >> 2): Library not loaded: >> /usr/local/lib/wxPython-unicode-2.8.12.1/lib/libwx_macud-2.8.0.dylib >> Referenced from: >> /usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8 -mac-unicode/wx/_core_.so >> Reason: Incompatible library version: _core_.so requires version >> 9.0.0 or later, but libwx_macud-2.8.0.dylib provides version 2.6.0
hmm -- maybe not -- it isn't telling me where libwx_macud-2.8.0.dylib is coming from. And there are indeed copies of Apple's in /usr/lib
Could this be something with Apple's "optimization"? -- doesn't it do some kind of pre-linking of dylibs (or at least building an index of where they are, etc) -- I never understood that, but maybe it has something to do with it.
I'll try a clean re-boot later and see what I get.
-Chris
--
Christopher Barker, Ph.D. Oceanographer
Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception
> On Tue, Jan 31, 2012 at 9:11 AM, Kevin Ollivier > <kevin-li...@theolliviers.com> wrote: >> After the hang, did you do a hardware check on the hard drive and RAM?
> nope -- but I suppose that is good practice -- particularly the hard > drive, I could well have messed that up with the hard-reboot.
> Robin wrote: >> I wonder if it was finding the wx installed by Apple instead of the one installed by wxPython.
> well, the traceback indicates it's working with the copies in > /usr/local/lib -- that wouldn't be Apple's.
>>> import _core_ >>> ImportError: dlopen(/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages /wx-2.8-mac-unicode/wx/_core_.so, >>> 2): Library not loaded: >>> /usr/local/lib/wxPython-unicode-2.8.12.1/lib/libwx_macud-2.8.0.dylib >>> Referenced from: >>> /usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8 -mac-unicode/wx/_core_.so >>> Reason: Incompatible library version: _core_.so requires version >>> 9.0.0 or later, but libwx_macud-2.8.0.dylib provides version 2.6.0
> hmm -- maybe not -- it isn't telling me where libwx_macud-2.8.0.dylib > is coming from. And there are indeed copies of Apple's in /usr/lib
It does have the full path to the dylib, see the "Library not loaded:" part of the error.
> Could this be something with Apple's "optimization"? -- doesn't it do > some kind of pre-linking of dylibs (or at least building an index of > where they are, etc) -- I never understood that, but maybe it has > something to do with it.
> I'll try a clean re-boot later and see what I get.
> -Chris
> --
> Christopher Barker, Ph.D. > Oceanographer
> Emergency Response Division > NOAA/NOS/OR&R (206) 526-6959 voice > 7600 Sand Point Way NE (206) 526-6329 fax > Seattle, WA 98115 (206) 526-6317 main reception
> On Jan 31, 2012, at 9:30 AM, Chris Barker wrote:
>> On Tue, Jan 31, 2012 at 9:11 AM, Kevin Ollivier >> <kevin-li...@theolliviers.com> wrote: >>> After the hang, did you do a hardware check on the hard drive and RAM?
>> nope -- but I suppose that is good practice -- particularly the hard >> drive, I could well have messed that up with the hard-reboot.
>> Robin wrote: >>> I wonder if it was finding the wx installed by Apple instead of the one installed by wxPython.
>> well, the traceback indicates it's working with the copies in >> /usr/local/lib -- that wouldn't be Apple's.
>>>> import _core_ >>>> ImportError: dlopen(/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages /wx-2.8-mac-unicode/wx/_core_.so, >>>> 2): Library not loaded: >>>> /usr/local/lib/wxPython-unicode-2.8.12.1/lib/libwx_macud-2.8.0.dylib >>>> Referenced from: >>>> /usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8 -mac-unicode/wx/_core_.so >>>> Reason: Incompatible library version: _core_.so requires version >>>> 9.0.0 or later, but libwx_macud-2.8.0.dylib provides version 2.6.0
>> hmm -- maybe not -- it isn't telling me where libwx_macud-2.8.0.dylib >> is coming from. And there are indeed copies of Apple's in /usr/lib
> It does have the full path to the dylib, see the "Library not loaded:" part of the error.
Oops, I was looking at just the last couple lines of the traceback.
>> On Jan 31, 2012, at 9:30 AM, Chris Barker wrote: >> It does have the full path to the dylib, see the "Library not loaded:" >> part of the error.
> Oops, I was looking at just the last couple lines of the traceback.
yeah I missed that too -- so it's not working with the system libs --even stranger.
Anyway, a proper shutdown and reboot worked fine -- chalk one up for the Heisenberg Uncertainty Principle.
-Chris
--
Christopher Barker, Ph.D. Oceanographer
Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception
Nothing new to add here -- but capturing thoughts for the record:
I'm not going to hard-reboot my system to test, but my working hypothesis is that something gets messed up with OS-X's "prebinding" of dylibs. If so then this might fix it:
update_dyld_shared_cache
however, it looks like I'd have to re-boot again after running that anyway.
Another option is (from the update_dyld_shared_cache man page):
""" If a safe-boot is done (booting with shift key held down) the cache is deleted. """
so if I can remember to "safe-boot" after a hang or crash, maybe that would help.
It's also possible that redo_prebinding will help, though it looks like the wxPyhton libs aren't prebound:
I htink it would say "PREBOUND" in there if they were -- though maybe it's the libs that use these libs that would be prebound -- this is all black magic to me!
Any other ideas welcome -- this has bitten me twice so far, and I know it's bitten others.
On Tue, Jan 31, 2012 at 1:50 PM, Chris Barker <chris.bar...@noaa.gov> wrote: >>> On Jan 31, 2012, at 9:30 AM, Chris Barker wrote: >>> It does have the full path to the dylib, see the "Library not loaded:" >>> part of the error.
>> Oops, I was looking at just the last couple lines of the traceback.
> yeah I missed that too -- so it's not working with the system libs > --even stranger.
> Anyway, a proper shutdown and reboot worked fine -- chalk one up for > the Heisenberg Uncertainty Principle.
> -Chris
> --
> Christopher Barker, Ph.D. > Oceanographer
> Emergency Response Division > NOAA/NOS/OR&R (206) 526-6959 voice > 7600 Sand Point Way NE (206) 526-6329 fax > Seattle, WA 98115 (206) 526-6317 main reception
Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception
> I just re-booted my machine, after a hang (not a common occurrence),
> and now when I try to import wx, I get:
> >>> import wx
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File > "/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2. 8-mac-unicode/wx/__init__.py",
> line 45, in <module>
> from wx._core import *
> File > "/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2. 8-mac-unicode/wx/_core.py",
> line 4, in <module>
> import _core_
> ImportError: > dlopen(/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages /wx-2.8-mac-unicode/wx/_core_.so,
> 2): Library not loaded:
> /usr/local/lib/wxPython-unicode-2.8.12.1/lib/libwx_macud-2.8.0.dylib
> Referenced from:
> /usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8 -mac-unicode/wx/_core_.so
> Reason: Incompatible library version: _core_.so requires version
> 9.0.0 or later, but libwx_macud-2.8.0.dylib provides version 2.6.0
> It was running fine before the reboot.
> re-installing wxPython seems to fix it.
> weird -- not taking the time to test s re-boot now -- but I did have a
> similar issue before, not sure if it was after a re-boot, but it did
> involve wx mysteriously stopping working.
> Any ideas?
> -Chris
> --
> Christopher Barker, Ph.D.
> Oceanographer
> Emergency Response Division
> NOAA/NOS/OR&R (206) 526-6959 voice
> 7600 Sand Point Way NE (206) 526-6329 fax
> Seattle, WA 98115 (206) 526-6317 main reception