Looking at the log file, the error is actually

   sys:1: RuntimeWarning: not adding directory '' to sys.path since it's 
writable by an untrusted group.
   Untrusted users could put files in this directory which might then be 
imported by your Python code. As a general precaution from similar 
exploits, you should not execute Python code from this directory

Maybe you're trying to build as root? I don't think that will work.



On Saturday, November 22, 2014 8:55:07 PM UTC-8, John H Palmieri wrote:
>
> The files in /usr/lib/python2.7 are not relevant. What is in the 
> local/lib/python directory of the Sage installation? There should be a 
> docutils directory there.
>
>
> On Saturday, November 22, 2014 8:21:29 PM UTC-8, kksurendran wrote:
>>
>> Compilation of sage-6.4.tar.gz resulted in the error attached.
>>
>> On going to the subshell after executing
>>
>> $  cd '/usr/local/sage-6.4/local/var/tmp/sage/build/pynac-0.3.2' && 
>> '/usr/local/sage-6.4/sage' --sh
>>
>> One can configure and make in the pynac-0.3.2/src directory provided one 
>> runs the command
>>
>> subshell> autoreconf -i --force
>>
>> as advised by the source.
>>
>> However on returning to the main /usr/local/sage-6.4, 
>>
>> $ make
>>
>> removes all that from the pynac directory by the default behaviour of 
>> make in sage.and the same error is reproduced!
>>
>> The error originates from :
>>        
>>        
>> *checking for the distutils Python package... no       configure: error: 
>> cannot import Python module "distutils".  * 
>>
>> However,
>> $ ls -la /usr/lib/python2.7/distutils
>> surendran@angeli-acer:/usr/local/sage-6.4$ ls -la 
>> /usr/lib/python2.7/distutils
>> total 812
>> drwxr-xr-x  3 root root  4096 Apr 24  2014 .
>> drwxr-xr-x 26 root root 24576 Apr 24  2014 ..
>> -rw-r--r--  1 root root  7822 Mar 22  2014 archive_util.py
>> -rw-r--r--  1 root root  7440 Apr 24  2014 archive_util.pyc
>> -rw-r--r--  1 root root 14941 Mar 22  2014 bcppcompiler.py
>> -rw-r--r--  1 root root  7864 Apr 24  2014 bcppcompiler.pyc
>> -rw-r--r--  1 root root 46633 Mar 22  2014 ccompiler.py
>> -rw-r--r--  1 root root 36714 Apr 24  2014 ccompiler.pyc
>> -rw-r--r--  1 root root 19270 Mar 22  2014 cmd.py
>> -rw-r--r--  1 root root 16730 Apr 24  2014 cmd.pyc
>> drwxr-xr-x  2 root root  4096 Apr 24  2014 command
>> -rw-r--r--  1 root root  4131 Mar 22  2014 config.py
>> -rw-r--r--  1 root root  3556 Apr 24  2014 config.pyc
>> -rw-r--r--  1 root root  9019 Mar 22  2014 core.py
>> -rw-r--r--  1 root root  7595 Apr 24  2014 core.pyc
>> -rw-r--r--  1 root root 17732 Mar 22  2014 cygwinccompiler.py
>> -rw-r--r--  1 root root  9801 Apr 24  2014 cygwinccompiler.pyc
>> -rw-r--r--  1 root root   162 Mar 22  2014 debug.py
>> -rw-r--r--  1 root root   252 Apr 24  2014 debug.pyc
>> -rw-r--r--  1 root root  3509 Mar 22  2014 dep_util.py
>> -rw-r--r--  1 root root  3172 Apr 24  2014 dep_util.pyc
>> -rw-r--r--  1 root root  7870 Mar 22  2014 dir_util.py
>> -rw-r--r--  1 root root  6774 Apr 24  2014 dir_util.pyc
>> -rw-r--r--  1 root root 50049 Mar 22  2014 dist.py
>> -rw-r--r--  1 root root 39432 Apr 24  2014 dist.pyc
>> -rw-r--r--  1 root root 11931 Mar 22  2014 emxccompiler.py
>> -rw-r--r--  1 root root  7449 Apr 24  2014 emxccompiler.pyc
>> -rw-r--r--  1 root root  3494 Mar 22  2014 errors.py
>> -rw-r--r--  1 root root  6245 Apr 24  2014 errors.pyc
>> -rw-r--r--  1 root root 10904 Mar 22  2014 extension.py
>> -rw-r--r--  1 root root  7403 Apr 24  2014 extension.pyc
>> -rw-r--r--  1 root root 17948 Mar 22  2014 fancy_getopt.py
>> -rw-r--r--  1 root root 11916 Apr 24  2014 fancy_getopt.pyc
>> -rw-r--r--  1 root root 12689 Mar 22  2014 filelist.py
>> -rw-r--r--  1 root root 10722 Apr 24  2014 filelist.pyc
>> -rw-r--r--  1 root root  7795 Mar 22  2014 file_util.py
>> -rw-r--r--  1 root root  6616 Apr 24  2014 file_util.pyc
>> -rw-r--r--  1 root root   337 Mar 22  2014 __init__.py
>> -rw-r--r--  1 root root   383 Apr 24  2014 __init__.pyc
>> -rw-r--r--  1 root root  1686 Mar 22  2014 log.py
>> -rw-r--r--  1 root root  2762 Apr 24  2014 log.pyc
>> -rw-r--r--  1 root root 31018 Mar 22  2014 msvc9compiler.py
>> -rw-r--r--  1 root root 21461 Apr 24  2014 msvc9compiler.pyc
>> -rw-r--r--  1 root root 23637 Mar 22  2014 msvccompiler.py
>> -rw-r--r--  1 root root 17471 Apr 24  2014 msvccompiler.pyc
>> -rw-r--r--  1 root root   295 Mar 22  2014 README
>> -rw-r--r--  1 root root  8631 Mar 22  2014 spawn.py
>> -rw-r--r--  1 root root  6384 Apr 24  2014 spawn.pyc
>> -rw-r--r--  1 root root 18808 Mar 22  2014 sysconfig.py
>> -rw-r--r--  1 root root 14393 Apr 24  2014 sysconfig.pyc
>> -rw-r--r--  1 root root 12410 Mar 22  2014 text_file.py
>> -rw-r--r--  1 root root  9222 Apr 24  2014 text_file.pyc
>> -rw-r--r--  1 root root 12709 Mar 22  2014 unixccompiler.py
>> -rw-r--r--  1 root root  7817 Apr 24  2014 unixccompiler.pyc
>> -rw-r--r--  1 root root 18037 Mar 22  2014 util.py
>> -rw-r--r--  1 root root 14318 Apr 24  2014 util.pyc
>> -rw-r--r--  1 root root  5095 Mar 22  2014 versionpredicate.py
>> -rw-r--r--  1 root root  5528 Apr 24  2014 versionpredicate.pyc
>> -rw-r--r--  1 root root 11433 Mar 22  2014 version.py
>> -rw-r--r--  1 root root  7178 Apr 24  2014 version.pyc
>>
>> Why is this invisible to sage-6.4? 
>>
>>
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to