Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attaching spyx files from the notebook doesn't work #236

Closed
malb opened this issue Jan 31, 2007 · 2 comments
Closed

attaching spyx files from the notebook doesn't work #236

malb opened this issue Jan 31, 2007 · 2 comments

Comments

@malb
Copy link
Member

malb commented Jan 31, 2007

attaching a spyx file from the notebook doesn't work and throws an exception:

Exception happened during processing of request from ('127.0.0.1', 47956)
Traceback (most recent call last):
  File "SAGE/local/lib/python/SocketServer.py", line 222, in handle_request
    self.process_request(request, client_address)
  File "SAGE/local/lib/python/SocketServer.py", line 241, in process_request
    self.finish_request(request, client_address)
  File "SAGE/local/lib/python/SocketServer.py", line 254, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "SAGE/local/lib/python/SocketServer.py", line 521, in __init__
    self.handle()
  File "SAGE/local/lib/python/BaseHTTPServer.py", line 316, in handle
    self.handle_one_request()
  File "SAGE/local/lib/python/BaseHTTPServer.py", line 310, in handle_one_request
    method()
  File "SAGE/local/lib/python2.5/site-packages/sage/server/notebook/server.py", line 928, in do_POST
    eval("self.%s()"%method)
  File "<string>", line 1, in <module>
  File "SAGE/local/lib/python2.5/site-packages/sage/server/notebook/server.py", line 346, in cell_update
    worksheet.check_comp()
  File "SAGE/local/lib/python2.5/site-packages/sage/server/notebook/worksheet.py", line 614, in check_comp
    self.start_next_comp()
  File "SAGE/local/lib/python2.5/site-packages/sage/server/notebook/worksheet.py", line 530, in start_next_comp
    input += self.preparse_input(I, C)
  File "SAGE/local/lib/python2.5/site-packages/sage/server/notebook/worksheet.py", line 1115, in preparse_input
    input = self.do_sage_extensions_preparsing(input)
  File "SAGE/local/lib/python2.5/site-packages/sage/server/notebook/worksheet.py", line 983, in do_sage_extensions_preparsing
    z += self._load_file(filename, files_seen_so_far, this_file) + '\n'
  File "SAGE/local/lib/python2.5/site-packages/sage/server/notebook/worksheet.py", line 957, in _load_file
    t = self.do_sage_extensions_preparsing(t,
UnboundLocalError: local variable 't' referenced before assignment

Component: notebook

Issue created by migration from https://trac.sagemath.org/ticket/236

@williamstein
Copy link
Contributor

comment:1

Since it's no longer an exception it's now a feature request.

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Aug 21, 2007

comment:2

I can reproduce the problem, but the error message has changed:

load "hello.spyx"
Error loading /tmp/Work2/sage-2.8.1/sage-2.8.1/hello.spyx -- file not
found

The spyx file can actually be found in $SAGE_ROOT/data/extcode/sage/hello.spyx

This bug also seems to be duplicate of #230.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin added this to the sage-2.9 milestone Aug 21, 2007
@sagetrac-mabshoff sagetrac-mabshoff mannequin modified the milestones: sage-2.9, sage-2.8.4 Sep 7, 2007
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants