John Cremona wrote: > None of the worked : sage -b and sage -ba all fail in the same way. > > Is this sort of warning normal:
It's not actually a warning but usually rather an error, since this happens (or may happen) when trying to import from such a folder which Sage (or Volker ;-) ) refuses to add to sys.path. > make[2]: Entering directory '/home/john/sage/build/make' > if [ -z "$SAGE_INSTALL_FETCH_ONLY" ]; then \ > cd /home/john/sage/src && source bin/sage-env && \ > sage-logger -p 'time make sage' '/home/john/sage/logs/pkgs/sagelib-7.3.log'; \ > fi > 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 > [sagelib-7.3] make[3]: Entering directory '/home/john/sage/src' > > > I vaguely remember something like this before. I have umask set to > 077. It may have been set to something else (whatever is the default > in ubuntu) when I did the first build, since it's a relatively new > machine and I probably built Sage on it before copying my .bashrc file > across (priorities!) Yes, both problems in this thread about three weeks ago: http://permalink.gmane.org/gmane.comp.mathematics.sage.devel/87760 (chmod -R g-w src/ was your friend.) -leif > > John > > On 6 August 2016 at 16:19, leif <not.rea...@online.de> wrote: >> John Cremona wrote: >>> On a machine where I had built 7.2 from source and have no branches >>> except master, I did "git pull origin master" to get 7.3 and then >>> "make". Problems: >> >> We already had this; either your working directory isn't clean, or the >> *.pyc files haven't been rebuilt. >> >> Try git checkout master, or git checkout -f master, then run 'make' >> again (or './sage -b && make'; you may try this first as well). >> >> >> -leif >> >>> >>> qflllTraceback (most recent call last): >>> [sagelib-7.3] File "<string>", line 1, in <module> >>> [sagelib-7.3] File >>> "/home/john/sage/local/lib/python2.7/site-packages/sage_setup/autogen/pari/__init__.py", >>> line 5, in rebuild >>> [sagelib-7.3] G() >>> [sagelib-7.3] File >>> "/home/john/sage/local/lib/python2.7/site-packages/sage_setup/autogen/pari/generator.py", >>> line 249, in __call__ >>> [sagelib-7.3] self.handle_pari_function(**v) >>> [sagelib-7.3] File >>> "/home/john/sage/local/lib/python2.7/site-packages/sage_setup/autogen/pari/generator.py", >>> line 190, in handle_pari_function >>> [sagelib-7.3] get_rest_doc(function)) >>> [sagelib-7.3] File >>> "/home/john/sage/local/lib/python2.7/site-packages/sage_setup/autogen/pari/doc.py", >>> line 365, in get_rest_doc >>> [sagelib-7.3] return raw_to_rest(raw) >>> [sagelib-7.3] File >>> "/home/john/sage/local/lib/python2.7/site-packages/sage_setup/autogen/pari/doc.py", >>> line 224, in raw_to_rest >>> [sagelib-7.3] raise SyntaxError("@ found: " + doc[ilow:ihigh]) >>> [sagelib-7.3] SyntaxError: @ found: i,j} <= \|0.51\|`, and the >>> [sagelib-7.3] Lov@[aacute]sz's constant is :mat >>> [sagelib-7.3] Makefile:19: recipe for target >>> 'sage/libs/pari/auto_gen.pxi' failed >>> [sagelib-7.3] make[3]: *** [sage/libs/pari/auto_gen.pxi] Error 1 >>> [sagelib-7.3] make[3]: Leaving directory '/home/john/sage/src' >>> [sagelib-7.3] >>> [sagelib-7.3] real 0m7.986s >>> [sagelib-7.3] user 0m6.476s >>> [sagelib-7.3] sys 0m0.552s >>> Makefile:976: recipe for target 'sagelib' failed >>> make[2]: *** [sagelib] Error 2 >>> make[2]: Leaving directory '/home/john/sage/build/make' >>> Makefile:849: recipe for target 'all' failed >>> make[1]: *** [all] Error 2 >>> make[1]: Leaving directory '/home/john/sage/build/make' >>> >>> real 0m8.311s >>> user 0m6.748s >>> sys 0m0.604s >>> *************************************************************** >>> Error building Sage. >>> >>> The following package(s) may have failed to build (not necessarily >>> during this run of 'make all'): >>> >>> (no packages mentioned here). >>> >>> This is on ubuntu 16.04, gcc 5.4.0. The build of 7.2 was fine. >>> >>> John -- 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 https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.