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:
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:
And on Debian (and on Ubuntu) it will use:
PS. Will be fixed later, along with removing the
(currently hardcoded) /var/lib locations...
More information about the Smart