[SciPy-User] Trouble when installing OpenOpt on opensuse11.2

Nils Wagner nwagner@iam.uni-stuttgart...
Fri Dec 11 12:15:42 CST 2009


Hi all,

After upgrading from opensuse11.1 to 11.2 I have trouble 
to install OpenOpt
via

python setup.py install --prefix=$HOME/local
/home/nwagner/local/lib64/python2.6/site-packages/Pyrex/Compiler/Errors.py:17: 
DeprecationWarning: BaseException.message has been 
deprecated as of Python 2.6
   self.message = message
running install
Checking .pth file support in 
/home/nwagner/local/lib/python2.6/site-packages
/usr/bin/python -E -c pass
TEST FAILED: 
/home/nwagner/local/lib/python2.6/site-packages does NOT 
support .pth files
error: bad install directory or PYTHONPATH

You are attempting to install a package to a directory 
that is not
on PYTHONPATH and which Python does not read ".pth" files 
from.  The
installation directory you specified (via --install-dir, 
--prefix, or
the distutils default setting) was:

     /home/nwagner/local/lib/python2.6/site-packages

and your PYTHONPATH environment variable currently 
contains:

     '/home/nwagner/:/home/nwagner/local/lib64/python2.6/site-packages/:/home/nwagner/svn/PyDSTool/:/home/nwagner/svn/PyDSTool/PyDSTool:/home/nwagner/svn/PyDSTool/PyDSTool/tests:/home/nwagner/git/pyadolc'

Here are some of your options for correcting the problem:

* You can choose a different installation directory, i.e., 
one that is
   on PYTHONPATH or supports .pth files

* You can add the installation directory to the PYTHONPATH 
environment
   variable.  (It must then also be on PYTHONPATH whenever 
you run
   Python and want to use the package(s) you are 
installing.)

* You can set up the installation directory to support 
".pth" files by
   using one of the approaches described here:

   http://peak.telecommunity.com/EasyInstall.html#custom-installation-locations

Please make the appropriate changes for your system and 
try again.



Can I fix the problem by adding

/home/nwagner/local/lib/site-packages/

to the PYTHONPATH ?

Any pointer would be appreciated.

Nils


More information about the SciPy-User mailing list