From: Noel O'B. <bao...@gm...> - 2007-11-28 18:50:27
|
On 28/11/2007, Jean-Didier Mar=E9chal <jea...@ua...> wrote: > 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) As I understand, Ubuntu does not need a root user. Just prepend "sudo" to the command you wish to run as root, and when prompted for the password use "root". > Anyway, after generating the correct PYTHONPATH I managed to have cclib > working! Glad to hear. Let us know if you have any problems; also, we are interested to know what you are using cclib for... > 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=E9chal <jea...@ua...> wrot= e: > > > 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 proble= ms > > > 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=3Dcore.py&se= archmode=3Dsearchfiles&case=3Dinsensitive&version=3Dgutsy&arch=3Di386 > > > > 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 add= ress: > > http://cclib.sourceforge.net/wiki/index.php/Install > > > > Noel > > > > > What do I miss? > > > > > > Cheers > > > JD > > > > > > > > > -- > > > Dr. Jean-Didier Mar=E9chal > > > Assistant Professor > > > Computational Bioorganic and Bioinorganic Chemistry @Transmet > > > Unitat de Qu=EDmica F=EDsica > > > Departament de Qu=EDmica > > > Universitat Aut=F2noma de Barcelona > > > 08193 Bellaterra, Spain > > > Tel: +34.(0)1935814936 > > > Fax: +34.(0)1935812920 > > > e-mail:jea...@ua... > > > > > > > > > > > |