[Nix-dev] python fails to find rdflib

Yury G. Kudryashov urkud.urkud at gmail.com
Fri Feb 24 19:16:24 CET 2012


Florian Friesdorf wrote:

> 
> Hi Yury,
> 
> On Thu, 23 Feb 2012 22:18:07 +0400, "Yury G.  Kudryashov"
> <urkud.urkud at gmail.com> wrote:
>> Hi!
>> 
>> The following fails for me:
>> echo import rdflib | \
>> PYTHONPATH=${pythonPackages.rdflib}/lib/python2.7/site-packages python -
>> 
>> What should I use instead? $PYTHONPATH contains rdflib-3.0.0-py2.7.egg.
> 
> Debugging your problem
> ----------------------
> The full actually used sys.path and content of rdflib's site-packages
> would be helpful for debugging:
> 
> 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',
 '/nix/store/hwfqnsnr327fmy2dgrbriq6i6ls6sjj9-
python-2.7.1/lib/python27.zip',
 '/nix/store/hwfqnsnr327fmy2dgrbriq6i6ls6sjj9-python-2.7.1/lib/python2.7',
 '/nix/store/hwfqnsnr327fmy2dgrbriq6i6ls6sjj9-
python-2.7.1/lib/python2.7/plat-linux2',
 '/nix/store/hwfqnsnr327fmy2dgrbriq6i6ls6sjj9-
python-2.7.1/lib/python2.7/lib-tk',
 '/nix/store/hwfqnsnr327fmy2dgrbriq6i6ls6sjj9-
python-2.7.1/lib/python2.7/lib-old',
 '/nix/store/hwfqnsnr327fmy2dgrbriq6i6ls6sjj9-
python-2.7.1/lib/python2.7/lib-dynload',
 '/nix/store/hwfqnsnr327fmy2dgrbriq6i6ls6sjj9-
python-2.7.1/lib/python2.7/site-packages']
> ls -l ${pythonPackages.rdflib}/lib/python2.7/site-packages
rdflib-3.0.0-py2.7.egg
-- 
Yury G. Kudryashov,
mailto: urkud at mccme.ru



More information about the nix-dev mailing list