Installing Smart with Python2.6

Anders F Björklund afb at algonet.se
Mon May 3 05:46:12 PDT 2010


When installing smart, make sure to do:

python setup.py install

Rather than the more straight-forward:

make install


The reason is that when you use --prefix,
like the Makefile tries to, there are *no*
guarantees that the install location will
actually be in the PYTHONPATH and thus used...

For instance, it isn't on Mac OS X or Debian.
(no "/usr/lib/python2.6/site-packages" there)
So when you try to run smart, you just get a
"ImportError: No module named smart" traceback.


On Mac OS X, it will instead install into:

/Library/Frameworks/Python.framework/Versions/2.6/bin/smart
/Library/Python/2.6/site-packages/smart

And on Debian (and on Ubuntu) it will use:

/usr/local/bin/smart
/usr/local/lib/python-2.6/dist-packages/smart


<sigh>,
--anders

PS. Will be fixed later, along with removing the
     (currently hardcoded) /var/lib locations...




More information about the Smart mailing list