/usr/local/sage/sage-5.11/local/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc
in system_piped(self, cmd)
2215 # a non-None value would trigger :func:`sys.displayhook` calls.
2216 # Instead, we store the exit_code in user_ns.
-> 2217 self.user_ns['_exit_code'] =
system(self.var_expand(cmd, depth=1))
2218
2219 def system_raw(self, cmd):
/usr/local/sage/sage-5.11/local/lib/python2.7/site-packages/pexpect.pyc
in __init__(self, command, args, timeout, maxread, searchwindowsize,
logfile, env)
325 self.command = command
326
--> 327 command_with_path = which(self.command)
328 if command_with_path == None:
329 raise ExceptionPexpect ('The command was not found
or was not executable: %s.' % self.command)
/usr/local/sage/sage-5.11/local/lib/python2.7/site-packages/pexpect.pyc
in which(filename)
1135 # Special case where filename already contains a path.
1136 if os.path.dirname(filename) != '':
-> 1137 if os.access (filename, os.X_OK) and not os.path.isdir(f):
1138 return filename
1139
UnboundLocalError: local variable 'f' referenced before assignment
It looks like "f" should be renamed to "filename". Not sure if this
pexpect is somehow modified, or why it doesn't work.
Ondrej
William Stein
unread,
Sep 8, 2013, 1:54:34 PM9/8/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sage-...@googlegroups.com
We use a very old version of pexpect, because in the newer versions
they made some major design changes that completely kill
performance... at least from my perspective. For sage we want "1
millisecond" latency, not 10-100ms.
at the top of which and it works to fix the issue -- I'll manually
make this change to all the compute vm's right now, so it'll be fixed
for you, and put it in my instructions for sage upgrades.