Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
weird library issue
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Chris Barker  
View profile  
 More options Jan 31 2012, 11:59 am
From: Chris Barker <chris.bar...@noaa.gov>
Date: Tue, 31 Jan 2012 08:59:08 -0800
Local: Tues, Jan 31 2012 11:59 am
Subject: weird library issue
Folks,

I'm running python.org build version 2.7.2, 32 bit Intel/PPC Python

wxPython wxPython-unicode-2.8.12.1 binary from the wxPython site.

(wxPython2.8-osx-unicode-2.8.12.1-universal-py2.7.dmg)

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

Chris.Bar...@noaa.gov


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Ollivier  
View profile  
 More options Jan 31 2012, 12:11 pm
From: Kevin Ollivier <kevin-li...@theolliviers.com>
Date: Tue, 31 Jan 2012 09:11:45 -0800
Local: Tues, Jan 31 2012 12:11 pm
Subject: Re: [wxPython-mac] weird library issue
Hi Chris,

After the hang, did you do a hardware check on the hard drive and RAM?

Regards,

Kevin

On Jan 31, 2012, at 8:59 AM, Chris Barker wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robin Dunn  
View profile  
 More options Jan 31 2012, 12:22 pm
From: Robin Dunn <ro...@alldunn.com>
Date: Tue, 31 Jan 2012 09:22:48 -0800
Local: Tues, Jan 31 2012 12:22 pm
Subject: Re: [wxPython-mac] weird library issue
On 1/31/12 8:59 AM, Chris Barker wrote:

I wonder if it was finding the wx installed by Apple instead of the one
installed by wxPython.

--
Robin Dunn
Software Craftsman
http://wxPython.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Barker  
View profile  
 More options Jan 31 2012, 12:30 pm
From: Chris Barker <chris.bar...@noaa.gov>
Date: Tue, 31 Jan 2012 09:30:25 -0800
Local: Tues, Jan 31 2012 12:30 pm
Subject: Re: [wxPython-mac] weird library issue
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

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

Chris.Bar...@noaa.gov


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Ollivier  
View profile  
 More options Jan 31 2012, 12:50 pm
From: Kevin Ollivier <kevin-li...@theolliviers.com>
Date: Tue, 31 Jan 2012 09:50:07 -0800
Local: Tues, Jan 31 2012 12:50 pm
Subject: Re: [wxPython-mac] weird library issue

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.

Regards,

Kevin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robin Dunn  
View profile  
 More options Jan 31 2012, 12:53 pm
From: Robin Dunn <ro...@alldunn.com>
Date: Tue, 31 Jan 2012 09:53:31 -0800
Local: Tues, Jan 31 2012 12:53 pm
Subject: Re: [wxPython-mac] weird library issue
On 1/31/12 9:50 AM, Kevin Ollivier wrote:

Oops, I was looking at just the last couple lines of the traceback.

--
Robin Dunn
Software Craftsman
http://wxPython.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Barker  
View profile  
 More options Jan 31 2012, 4:50 pm
From: Chris Barker <chris.bar...@noaa.gov>
Date: Tue, 31 Jan 2012 13:50:04 -0800
Local: Tues, Jan 31 2012 4:50 pm
Subject: Re: [wxPython-mac] weird library issue

>> 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

Chris.Bar...@noaa.gov


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Barker  
View profile  
 More options Feb 1 2012, 11:53 am
From: Chris Barker <chris.bar...@noaa.gov>
Date: Wed, 1 Feb 2012 08:53:07 -0800
Local: Wed, Feb 1 2012 11:53 am
Subject: Re: [wxPython-mac] weird library issue
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:

The wxPython.org ones:

$ otool -hv /usr/local/lib/wxPython-unicode/lib/libwx_macud-2.8.0.8.0.dylib

/usr/local/lib/wxPython-unicode/lib/libwx_macud-2.8.0.8.0.dylib
(architecture ppc):
Mach header
      magic cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags
   MH_MAGIC     PPC        ALL  0x00       DYLIB    20       4020
NOUNDEFS DYLDLINK TWOLEVEL WEAK_DEFINES BINDS_TO_WEAK

/usr/local/lib/wxPython-unicode/lib/libwx_macud-2.8.0.8.0.dylib
(architecture i386):
Mach header
      magic cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags
   MH_MAGIC    I386        ALL  0x00       DYLIB    21       4008
NOUNDEFS DYLDLINK TWOLEVEL SUBSECTIONS_V

and the Apple-supplied ones:

$ otool -hv /usr/lib/libwx_macud-2.8.0.5.0.dylib

/usr/lib/libwx_macud-2.8.0.5.0.dylib (architecture i386):

Mach header
      magic cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags
   MH_MAGIC    I386        ALL  0x00       DYLIB    29       3672
NOUNDEFS DYLDLINK TWOLEVEL WEAK_DEFINES BINDS_TO_WEAK
NO_REEXPORTED_DYLIBS
/usr/lib/libwx_macud-2.8.0.5.0.dylib (architecture ppc7400):

Mach header
      magic cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags
   MH_MAGIC     PPC    ppc7400  0x00       DYLIB    28       3488
NOUNDEFS DYLDLINK TWOLEVEL WEAK_DEFINES BINDS_TO_WEAK
NO_REEXPORTED_DYLIBS

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.

-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

Chris.Bar...@noaa.gov


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
刘庆祥  
View profile  
 More options Nov 13 2012, 5:20 am
From: 刘庆祥 <memory1...@gmail.com>
Date: Tue, 13 Nov 2012 02:20:01 -0800 (PST)
Local: Tues, Nov 13 2012 5:20 am
Subject: Re: weird library issue

defaults write com.apple.versioner.python Prefer-32-Bit -bool yes

在 2012年2月1日星期三UTC+8上午12时59分08秒,Chris Barker写道:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »