[Nix-dev] python fails to find rdflib

Florian Friesdorf flo at chaoflow.net
Sat Feb 25 00:21:14 CET 2012


On Fri, 24 Feb 2012 22:16:24 +0400, "Yury G.  Kudryashov" <urkud.urkud at gmail.com> wrote:
> >> echo import rdflib | \
> >> PYTHONPATH=${pythonPackages.rdflib}/lib/python2.7/site-packages python -

> > ls -l ${pythonPackages.rdflib}/lib/python2.7/site-packages
> rdflib-3.0.0-py2.7.egg

PYTHONPATH=${pythonPackages.rdflib}/lib/python2.7/site-packages/rdflib-3.0.0-py2.7.egg

should do it. There is no pth file and if it were there it would not be
used. Both things are fixed with the patch series, but it currently
breaks some existing packages.

> > echo import sys,pprint;pprint.pprint(sys.path) | \
> > PYTHONPATH=${pythonPackages.rdflib}/lib/python2.7/site-packages python -
> ['',
>  '/path/to/pythonPackages.rdflib/lib/python2.7/site-packages',

'/path/to/pythonPackages.rdflib/lib/python2.7/site-packages/rdflib-3.0.0-py2.7.egg',

needs to end up here.

-- 
Florian Friesdorf <flo at chaoflow.net>
  GPG FPR: 7A13 5EEE 1421 9FC2 108D  BAAF 38F8 99A3 0C45 F083
Jabber/XMPP: flo at chaoflow.net
IRC: chaoflow on freenode,ircnet,blafasel,OFTC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20120225/269f1c5b/attachment.bin 


More information about the nix-dev mailing list