From: Jean-Didier <jea...@ua...> - 2007-11-28 18:27:44
|
Hi, I found the problem. As you mention in your e-mail, things should have been setup correctly. So, I began to scratch on permissions and python variables. I found that my user does not have the PYTHONPATH variable defined at all and that without this python was not even able to import the os module! (I guess this problem comes from the recent creation of a root user on my ubuntu box; I am sure that I did not have any problem with python before that) Anyway, after generating the correct PYTHONPATH I managed to have cclib working! Thanks for the e-mail, JD On Wed, 2007-11-28 at 19:50 +0200, Noel O'Boyle wrote: > On 28/11/2007, Jean-Didier Maréchal <jea...@ua...> wrote: > > Hello, > > > > I have been stuck with the installation of cclib on unbuntu 7.10 for few > > days now, and I wonder what I am doing wrong. Initially, I had problems > > with python and in particular with the numeric module. Being solved > > this, I am stuck once again. > > > > Basically, when I run the - python setup.py build - command, I > > systematically receive the following answer: > > > > 'import site' failed; use -v for traceback > > Traceback (most recent call last): > > File "setup.py", line 56, in ? > > setup_cclib() > > File "setup.py", line 29, in setup_cclib > > from distutils.core import setup > > ImportError: No module named distutils.core > > Very strange. If you installed Python using your package manager, then > there would be no problem finding "distutils.core" which a central > part of the Python installation on Ubuntu 7.10. As you can see from > the following search for "core.py", it's included in the "python2.4" > package: > http://packages.ubuntu.com/cgi-bin/search_contents.pl?word=core.py&searchmode=searchfiles&case=insensitive&version=gutsy&arch=i386 > > You should not have had any problems with numeric either. We have > switched to numpy, which is available in the Ubuntu distribution also. > > Hope this helps. Our installation instructions are at the following address: > http://cclib.sourceforge.net/wiki/index.php/Install > > Noel > > > What do I miss? > > > > Cheers > > JD > > > > > > -- > > Dr. Jean-Didier Maréchal > > Assistant Professor > > Computational Bioorganic and Bioinorganic Chemistry @Transmet > > Unitat de Química Física > > Departament de Química > > Universitat Autònoma de Barcelona > > 08193 Bellaterra, Spain > > Tel: +34.(0)1935814936 > > Fax: +34.(0)1935812920 > > e-mail:jea...@ua... > > > > > > |