#13631: Sage refuses to run despite safe directory
---------------------------+------------------------------------------------
Reporter: vbraun | Owner: mvngu
Type: defect | Status: new
Priority: major | Milestone: sage-5.4
Component: doctest | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
---------------------------+------------------------------------------------
Comment (by hthomas):
I get the following warning when I install the patchbot (sage -i
patchbot). This is on ubuntu 11.10.
{{{
>>> Checking online list of optional packages.
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
[.]
>>> Found patchbot-1.1.
>>> Downloading patchbot-1.1.spkg.
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
[......]
patchbot-1.1
}}}
However, the install appears to go okay.
When I try to run the patchbot, though, it complains (after the building
process goes fine, apparently):
{{{
========== end plugins.docbuild ==========
$SAGE_ROOT/sage -tp 3 -sagenb $SAGE_ROOT/devel/sage-0/doc/common
$SAGE_ROOT/devel/sage-0/doc/en $SAGE_ROOT/devel/sage-0/doc/fr
$SAGE_ROOT/devel/sage-0/sage
Global iterations: 1
File iterations: 1
Traceback (most recent call last):
File "/home/hugh/sage-5.4.rc2/local/bin/sage-ptest", line 80, in
<module>
.format(os.getcwd()))
RuntimeError: refusing to run doctests from the current directory
'/home/hugh/sage-5.4.rc2/devel/sage-0' since untrusted users could put
files in this directory, making it unsafe to run Sage code from
Traceback (most recent call last):
File "/home/hugh/sage-5.4.rc2/local/bin/patchbot/patchbot.py", line 416,
in test_a_ticket
do_or_die("$SAGE_ROOT/sage %s %s" % (test_cmd, ' '.join(test_dirs)))
File "/home/hugh/sage-5.4.rc2/local/bin/patchbot/util.py", line 62, in
do_or_die
raise Exception, "%s %s" % (res, cmd)
Exception: 256 $SAGE_ROOT/sage -tp 3 -sagenb
$SAGE_ROOT/devel/sage-0/doc/common $SAGE_ROOT/devel/sage-0/doc/en
$SAGE_ROOT/devel/sage-0/doc/fr $SAGE_ROOT/devel/sage-0/sage
2012-10-20 23:08:09 -0700
1439 seconds
Traceback (most recent call last):
File "/home/hugh/sage-5.4.rc2/local/bin/patchbot/patchbot.py", line 416,
in test_a_ticket
do_or_die("$SAGE_ROOT/sage %s %s" % (test_cmd, ' '.join(test_dirs)))
File "/home/hugh/sage-5.4.rc2/local/bin/patchbot/util.py", line 62, in
do_or_die
raise Exception, "%s %s" % (res, cmd)
Exception: 256 $SAGE_ROOT/sage -tp 3 -sagenb
$SAGE_ROOT/devel/sage-0/doc/common $SAGE_ROOT/devel/sage-0/doc/en
$SAGE_ROOT/devel/sage-0/doc/fr $SAGE_ROOT/devel/sage-0/sage
Reporting 0 TestsFailed
0 TestsFailed
ok
Done reporting 0
Failing tests in your install: TestsFailed. Continue anyways? [y/N]
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13631#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.