2.9.1.1 wxCocoa - Symbol not found

Hi,

Finally got around to installing 2.9.1.1 on my Mac. I am running on
OSX 10.5 Intel and get the following crash when I try to import wx.

Python 2.7.1 (r271:86882M, Nov 30 2010, 09:39:13)
[GCC 4.0.1 (Apple Inc. build 5494)] 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/wxPython-2.9.1.1/lib/python2.7/site-packages/
wx-2.9.1-osx_cocoa/wx/__init__.py", line 45, in <module>
    from wx._core import *
  File "/usr/local/lib/wxPython-2.9.1.1/lib/python2.7/site-packages/
wx-2.9.1-osx_cocoa/wx/_core.py", line 4, in <module>
    import _core_
ImportError: dlopen(/usr/local/lib/wxPython-2.9.1.1/lib/python2.7/site-
packages/wx-2.9.1-osx_cocoa/wx/_core_.so, 2): Symbol not found:
__ZNSi10_M_extractIdEERSiRT_
  Referenced from: /usr/local/lib/wxPython-2.9.1.1/lib/
libwx_osx_cocoau-2.9.1.0.0.dylib
  Expected in: /usr/lib/libstdc++.6.dylib

Does the build require a newer version of the c++ runtimes than are
part of OSX 10.5 (XCode 3.1.1)?

nm /usr/lib/libstdc++.6.dylib | grep extractId

Cody

The missing symbol is actually (thanks to “c++filt”)

std::basic_istream<char, std::char_traits >& std::basic_istream<char, std:

:char_traits >::_M_extract(double&)

is the stdc++ library correctly linked with wxPython modules?

···

2010/12/3 Cody Precord codyprecord@gmail.com

Hi,

Finally got around to installing 2.9.1.1 on my Mac. I am running on

OSX 10.5 Intel and get the following crash when I try to import wx.

Python 2.7.1 (r271:86882M, Nov 30 2010, 09:39:13)

[GCC 4.0.1 (Apple Inc. build 5494)] 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/wxPython-2.9.1.1/lib/python2.7/site-packages/

wx-2.9.1-osx_cocoa/wx/init.py", line 45, in

from wx._core import *

File "/usr/local/lib/wxPython-2.9.1.1/lib/python2.7/site-packages/

wx-2.9.1-osx_cocoa/wx/_core.py", line 4, in

import _core_

ImportError: dlopen(/usr/local/lib/wxPython-2.9.1.1/lib/python2.7/site-

packages/wx-2.9.1-osx_cocoa/wx/core.so, 2): Symbol not found:

_ZNSi10_M_extractIdEERSiRT

Referenced from: /usr/local/lib/wxPython-2.9.1.1/lib/

libwx_osx_cocoau-2.9.1.0.0.dylib

Expected in: /usr/lib/libstdc++.6.dylib

Does the build require a newer version of the c++ runtimes than are

part of OSX 10.5 (XCode 3.1.1)?

nm /usr/lib/libstdc++.6.dylib | grep extractId


Amaury Forgeot d’Arc

Hi,

Hi,

Finally got around to installing 2.9.1.1 on my Mac. I am running on
OSX 10.5 Intel and get the following crash when I try to import wx.

Python 2.7.1 (r271:86882M, Nov 30 2010, 09:39:13)
[GCC 4.0.1 (Apple Inc. build 5494)] 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/wxPython-2.9.1.1/lib/python2.7/site-packages/
wx-2.9.1-osx_cocoa/wx/__init__.py", line 45, in <module>
from wx._core import *
File "/usr/local/lib/wxPython-2.9.1.1/lib/python2.7/site-packages/
wx-2.9.1-osx_cocoa/wx/_core.py", line 4, in <module>
import _core_
ImportError: dlopen(/usr/local/lib/wxPython-2.9.1.1/lib/python2.7/site-
packages/wx-2.9.1-osx_cocoa/wx/_core_.so, 2): Symbol not found:
__ZNSi10_M_extractIdEERSiRT_
Referenced from: /usr/local/lib/wxPython-2.9.1.1/lib/
libwx_osx_cocoau-2.9.1.0.0.dylib
Expected in: /usr/lib/libstdc++.6.dylib

Does the build require a newer version of the c++ runtimes than are
part of OSX 10.5 (XCode 3.1.1)?

nm /usr/lib/libstdc++.6.dylib | grep extractId

The missing symbol is actually (thanks to "c++filt")
std::basic_istream<char, std::char_traits<char> >& std::basic_istream<char,
std:
:char_traits<char> >::_M_extract<double>(double&)
is the stdc++ library correctly linked with wxPython modules?

Just installed from the installer on the website, didn't build it on
my computer. Haven't seen any other reports of it not working after
install so wanted to make sure I didn't have to upgrade to 10.6 or
something as the error would make me think that the binaries are
linked to a different version of the c++ library than is on my
computer.

Cody

···

On Fri, Dec 3, 2010 at 1:57 AM, Amaury Forgeot d'Arc <amauryfa@gmail.com> wrote:

2010/12/3 Cody Precord <codyprecord@gmail.com>

Yes, that would be my guess as well. The cocoa binaries are built on a 10.6 system. I was originally planning on doing it on a 10.5 system to more easily avoid things like this, but that didn't work out. I wanted to keep my current Mac build machine at 10.4 for the carbon builds, so I thought I would set up a "hackintosh" inside a virtual machine to use for the cocoa builds. Unfortunately the only way I could get that to work was to install 10.6, 10.5 just couldn't complete the installation.

I'll see if I can figure out if there is a way around this link error, but not having a 10.5 machine myself it will be rather hard to test... In the meantime you can build your own wxPython and then it should work without troubles on your machine. You can use the build-wxpython.py script to do the whole build for you.

The ideal solution would be to have a real 10.5 build machine, so if anybody has a spare Mac Mini capable of running OSX 10.5 that they could send me as a donation to the project (or at a very reduced cost) then that would be wonderful. I can add it into my build/release system and we'll be able to be sure of maintaining the 10.5 compatibility.

···

On 12/3/10 5:08 AM, Cody Precord wrote:

Hi,

On Fri, Dec 3, 2010 at 1:57 AM, Amaury Forgeot d'Arc<amauryfa@gmail.com> wrote:

2010/12/3 Cody Precord<codyprecord@gmail.com>

Hi,

Finally got around to installing 2.9.1.1 on my Mac. I am running on
OSX 10.5 Intel and get the following crash when I try to import wx.

Python 2.7.1 (r271:86882M, Nov 30 2010, 09:39:13)
[GCC 4.0.1 (Apple Inc. build 5494)] 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/wxPython-2.9.1.1/lib/python2.7/site-packages/
wx-2.9.1-osx_cocoa/wx/__init__.py", line 45, in<module>
    from wx._core import *
  File "/usr/local/lib/wxPython-2.9.1.1/lib/python2.7/site-packages/
wx-2.9.1-osx_cocoa/wx/_core.py", line 4, in<module>
    import _core_
ImportError: dlopen(/usr/local/lib/wxPython-2.9.1.1/lib/python2.7/site-
packages/wx-2.9.1-osx_cocoa/wx/_core_.so, 2): Symbol not found:
__ZNSi10_M_extractIdEERSiRT_
  Referenced from: /usr/local/lib/wxPython-2.9.1.1/lib/
libwx_osx_cocoau-2.9.1.0.0.dylib
  Expected in: /usr/lib/libstdc++.6.dylib

  Does the build require a newer version of the c++ runtimes than are
part of OSX 10.5 (XCode 3.1.1)?

nm /usr/lib/libstdc++.6.dylib | grep extractId

The missing symbol is actually (thanks to "c++filt")
std::basic_istream<char, std::char_traits<char> >& std::basic_istream<char,
std:
:char_traits<char> >::_M_extract<double>(double&)
is the stdc++ library correctly linked with wxPython modules?

Just installed from the installer on the website, didn't build it on
my computer. Haven't seen any other reports of it not working after
install so wanted to make sure I didn't have to upgrade to 10.6 or
something as the error would make me think that the binaries are
linked to a different version of the c++ library than is on my
computer.

--
Robin Dunn
Software Craftsman