[vtkusers] OSX on intel universal build import error for _glcanvas.so
Glen Lehmann
glehmann at imaging.robarts.ca
Fri May 19 12:14:11 EDT 2006
Hello Dan,
I suspect one of the libraries that _glcanvas.so is linked against
can't be found at runtime. If this is the case and you repeat your
example below using "gdb /usr/local/bin/python2.4" instead, gdb
should show you which library is missing.
You can also try running:
>> otool -L Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/wx-2.6-mac-unicode/wx/_glcanvas.so
which will give you a list of all the libraries that _glcanvas.so is
looking for.
Glen
On 17-May-06, at 12:35 PM, Dan White wrote:
> Dear wxPython and VTK developers
>
> while running our BioImageXD python application from the command line
> on my MacBookPro OSX 10.4 with universal build installs of
> python2.4 and wxPython2.6-mac-unicode
> I get an interesting error that looks like a problem with xwPython,
>
> I can replicate the error with the following:
>
> daniel-whites-computer:~ bioimagexd$ /usr/local/bin/python2.4
> Python 2.4.3 (#1, Apr 7 2006, 10:54:33)
> [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import wx
> >>> from wxPython.glcanvas import *
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "//Library/Frameworks/Python.framework/Versions/2.4/lib/
> python2.4/site-packages/wx-2.6-mac-unicode/wxPython/glcanvas.py",
> line 15, in ?
> import wx.glcanvas
> File "//Library/Frameworks/Python.framework/Versions/2.4/lib/
> python2.4/site-packages/wx-2.6-mac-unicode/wx/glcanvas.py", line 8,
> in ?
> import _glcanvas
> ImportError: Failure linking new module: /Library/Frameworks/
> Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-
> mac-unicode/wx/_glcanvas.so: Symbol not found:
> __ZN11wxGLContext11SwapBuffersEv
> Referenced from: /Library/Frameworks/Python.framework/Versions/
> 2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_glcanvas.so
> Expected in: dynamic lookup
>
> >>>
>
> Is this a problem in xwPython?
>
> I haven't noticed the same problem on a PowerMac PPC G5 with PPC
> python 2.4 and wxPython2.5.5-mac-unicode
>
> cheers
>
> Dan
>
>
> Dr. Daniel James White BSc. (Hons.) PhD
> Bioimaging Coordinator
> Nanoscience Centre and Department of Biological and Environmental
> Sciences
> Division of Molecular Recognition
> Ambiotica C242
> PO Box 35
> University of Jyväskylä
> Jyväskylä
> FIN 40014
> Finland
>
> +358 14 260 4183 (work)
> +358 468102840 (mobile)
> http://www.bioimagexd.org
> http://www.chalkie.org.uk
> dan at chalkie.org.uk
> white at cc.jyu.fi
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/
> Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list