[vtkusers] Problems Installing VTK on Ubuntu 9.10 with Python/TK

Amber Simpson amber.l.simpson at vanderbilt.edu
Mon Dec 21 18:44:43 EST 2009


Hi David,

It looks like Python 2.5 was built against tk 8.5. As far as I can see
it, I either have to revert to Ibex or make (possibly significant)
changes to the on-site vtkMy build.

Thanks for your help,

Amber

-----

Here's my output for your enjoyment:

	linux-vdso.so.1 =>  (0x00007fff5e2d8000)
	libBLT.2.4.so.8.5 => /usr/lib/libBLT.2.4.so.8.5 (0x00007f4138c40000)
	libtk8.5.so.0 => /usr/lib/libtk8.5.so.0 (0x00007f4138901000)
	libtcl8.5.so.0 => /usr/lib/libtcl8.5.so.0 (0x00007f41385ec000)
	libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f41382b6000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x00007f413809a000)
	libc.so.6 => /lib/libc.so.6 (0x00007f4137d2a000)
	libm.so.6 => /lib/libm.so.6 (0x00007f4137aa6000)
	libnsl.so.1 => /lib/libnsl.so.1 (0x00007f413788c000)
	libdl.so.2 => /lib/libdl.so.2 (0x00007f4137687000)
	libXss.so.1 => /usr/lib/libXss.so.1 (0x00007f4137483000)
	libXext.so.6 => /usr/lib/libXext.so.6 (0x00007f4137271000)
	libXft.so.2 => /usr/lib/libXft.so.2 (0x00007f413705b000)
	libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007f4136dd6000)
	libz.so.1 => /lib/libz.so.1 (0x00007f4136bbf000)
	libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00007f413698c000)
	libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007f4136782000)
	libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f4136566000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f4139192000)
	libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f4136362000)
	libexpat.so.1 => /lib/libexpat.so.1 (0x00007f4136139000)
	libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f4135f33000)


On Mon, Dec 21, 2009 at 5:30 PM, David Gobbi <david.gobbi at gmail.com> wrote:
> Hi Amber,
>
> It looks like your python 2.5 was build against tk 8.5.  To confirm this, do
>
> ldd /usr/lib/python2.5/lib-dynload/_tkinter.so
>
> If it shows the tk 8.5 libs, that would be surprising, because python
> 2.5 used tk 8.4 before karmic.  If python uses tk 8.5 in karmic, then
> the package maintainers have not been doing a good job of maintaining
> backwards compatibility.
>
>   David
>
>
> On Mon, Dec 21, 2009 at 3:49 PM, Amber Simpson
> <amber.l.simpson at vanderbilt.edu> wrote:
>> Hi All,
>>
>> I'm trying to install VTK on Ubuntu 9.10 (Karmic Koala) with Python
>> 2.5 and TCL/TK 8.4. I'm getting this error when I execute
>> TestTkRenderWidget.py from the examples:
>>
>> Traceback (most recent call last):
>>  File "TestTkRenderWidget.py", line 13, in <module>
>>    class TestTkRenderWidget(Testing.vtkTest):
>>  File "TestTkRenderWidget.py", line 20, in TestTkRenderWidget
>>    root = Tkinter.Tk()
>>  File "/usr/lib/python2.5/lib-tk/Tkinter.py", line 1652, in __init__
>>    self._loadtk()
>>  File "/usr/lib/python2.5/lib-tk/Tkinter.py", line 1672, in _loadtk
>>    % (_tkinter.TK_VERSION, tk_version)
>> RuntimeError: tk.h version (8.5) doesn't match libtk.a version (8.4)
>>
>> Any suggestions?
>>
>> Further details on my install follow.
>>
>> Thanks,
>>
>> Amber
>>
>> --
>> Amber Simpson
>> Postdoctoral Fellow
>> Biomedical Modeling Laboratory
>> Department of Biomedical Engineering
>> Vanderbilt University
>



-- 
Amber Simpson
Research Associate
Biomedical Modeling Laboratory
Department of Biomedical Engineering
Vanderbilt University



More information about the vtkusers mailing list