[Nix-dev] Lack of exhaustive RPATH for vim and gimp with relation to python

Attila Oláh attilaolah at gmail.com
Sat Feb 12 13:12:01 CET 2011


Hello,

I'm trying to install Gimp and Vim (gimp-2.6.11 & vim_configurable-7.3)
and there seems to be a problem with the Python bindings.

When I run `vim foo.py`, I get:

Error detected while processing
/home/aatiis/.vim/ftplugin/python/pyflakes.vim:
line  109:
Traceback (most recent call last):
  File "<string>", line 13, in <module>
ImportError: libpython2.6.so.1.0: cannot open shared object file: No
such file or directory

`gimp` on the other hand, throws me this:

(gimp:29438): LibGimpBase-WARNING **: gimp: gimp_wire_read(): error
Traceback (most recent call last):
  File
"/nix/store/61ii1bf9jvxwh91li9kidg6d1c724x3q-gimp-2.6.11/lib/gimp/2.0/plug-ins/palette-to-gradient.py",
line 17, in <module>
    from gimpfu import *
  File
"/nix/store/61ii1bf9jvxwh91li9kidg6d1c724x3q-gimp-2.6.11/lib/gimp/2.0/python/gimpfu.py",
line 75, in <module>
    import gimp
ImportError:
/nix/store/61ii1bf9jvxwh91li9kidg6d1c724x3q-gimp-2.6.11/lib/gimp/2.0/python/gimp.so:
undefined symbol: PyUnicodeUCS2_SetDefaultEncoding

I seem to have those libraries though:

aatiis at aiur ~ $ find /nix -iname libpython*
/nix/store/l27gk6ji00708a49zfjswvnn50xfgyqr-python3-3.1.3/lib/libpython3.1.so
/nix/store/l27gk6ji00708a49zfjswvnn50xfgyqr-python3-3.1.3/lib/python3.1/config/libpython3.1.a
/nix/store/l27gk6ji00708a49zfjswvnn50xfgyqr-python3-3.1.3/lib/libpython3.1.so.1.0
/nix/store/f2qwna513y4iq0dl6znkmkl7lb3ahp78-python-2.6.5/lib/python2.6/config/libpython2.6.a
/nix/store/f2qwna513y4iq0dl6znkmkl7lb3ahp78-python-2.6.5/lib/libpython2.6.so.1.0
/nix/store/f2qwna513y4iq0dl6znkmkl7lb3ahp78-python-2.6.5/lib/libpython2.6.so

I'm new to nix. I still run it on Gentoo, so I imagine that my system
libraries may interfere.

Attila

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20110212/2fab01bc/attachment.bin 


More information about the nix-dev mailing list