Dear List, I am trying to run sage in a browser using notebook(). I installed sage-2.8.13 from source, then upgraded to 2.8.14 when I had trouble.
Any help will be appreciated. Logs and stack traces below. Best, Andrew Here is the traceback I get when I'm trying to run notebook(): sage: notebook() Port 8000 is already in use. Trying next port... In order to use an SECURE encrypted notebook, you must first run notebook.setup(). Now running notebook.setup() Using dsage certificates. -------------------------------------------------- Generating public/private key pair for authentication... Your key will be stored in /Users/amusselman/.sage/dsage/dsage_key Just hit enter when prompted for a passphrase -------------------------------------------------- /Users/amusselman/.sage/dsage/dsage_key already exists. Overwrite (y/n)? y Enter passphrase (empty for no passphrase): Enter same passphrase again: Client configuration finished. Worker configuration finished. Choose a domain name for your SAGE notebook server, for example, localhost (personal use) or <host-mapped-hostname> (to allow outside connections). Domain name [localhost]: sage -------------------------------------------------- Generating SSL certificate for server... Using certtool to generate key certtool --generate-privkey --outfile /Users/amusselman/.sage/dsage/ cacert.pem dyld: Library not loaded: /usr/local/lib/libintl.3.dylib Referenced from: /Users/amusselman/Desktop/sage-2.8.13-i386-Darwin/ local/bin/certtool Reason: image not found dyld: Library not loaded: /usr/local/lib/libintl.3.dylib Referenced from: /Users/amusselman/Desktop/sage-2.8.13-i386-Darwin/ local/bin/certtool Reason: image not found -------------------------------------------------- User amusselman's pubkey changed, setting to new one. Server configuration finished. Configuration finished.. --------------------------------------------------------------------------- <type 'exceptions.IOError'> Traceback (most recent call last) /Users/amusselman/Desktop/sage-2.8.13-i386-Darwin/<ipython console> in <module>() /Users/amusselman/Desktop/sage-2.8.13-i386-Darwin/local/lib/python2.5/ site-packages/sage/server/notebook/notebook_object.py in __call__(self, *args, **kwds) 135 """ 136 def __call__(self, *args, **kwds): --> 137 return self.notebook(*args, **kwds) 138 139 notebook = run_notebook.notebook_twisted /Users/amusselman/Desktop/sage-2.8.13-i386-Darwin/local/lib/python2.5/ site-packages/sage/server/notebook/run_notebook.py in notebook_twisted(self, directory, port, address, port_tries, secure, reset, accounts, server_pool, ulimit, timeout, open_viewer, sagetex_path, start_path) 211 if open_viewer: 212 "Open viewer automatically isn't fully implemented. You have to manually open your web browser to the above URL." --> 213 run(port) 214 215 return True /Users/amusselman/Desktop/sage-2.8.13-i386-Darwin/local/lib/python2.5/ site-packages/sage/server/notebook/run_notebook.py in run(port) 119 print "In order to use an SECURE encrypted notebook, you must first run notebook.setup()." 120 print "Now running notebook.setup()" --> 121 notebook_setup() 122 if not os.path.exists(private_pem) or not os.path.exists(public_pem): 123 print "Failed to setup notebook. Please try notebook.setup() again manually." /Users/amusselman/Desktop/sage-2.8.13-i386-Darwin/local/lib/python2.5/ site-packages/sage/server/notebook/run_notebook.py in notebook_setup(self) 39 sage.dsage.all.dsage.setup() 40 shutil.copyfile(dsage + '/cacert.pem', private_pem) ---> 41 shutil.copyfile(dsage + '/pubcert.pem', public_pem) 42 print "Successfully configured notebook." 43 /Users/amusselman/Desktop/sage-2.8.13-i386-Darwin/local/lib/python2.5/ shutil.py in copyfile(src, dst) 44 fdst = None 45 try: ---> 46 fsrc = open(src, 'rb') 47 fdst = open(dst, 'wb') 48 copyfileobj(fsrc, fdst) <type 'exceptions.IOError'>: [Errno 2] No such file or directory: '/ Users/amusselman/.sage/dsage/pubcert.pem' sage: I tried upgrading sage to see if that fixed the problem. Here is the tail end of a sage -upgrade, starting from a source build of sage-2.8.13-i386-Darwin on an Intel MacBook running Mac OS 10.4. /usr/bin/ld: warning can't open dynamic library: /home/math1/was/ 10.4x86/sage-2.8.13.rc2/local/lib/libgmp.3.dylib referenced from: / Users/amusselman/Desktop/sage-2.8.13-i386-Darwin/local/lib/ libntl.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) /usr/bin/ld: Undefined symbols: ___gmpn_add_n referenced from libntl expected to be defined in /home/ math1/was/10.4x86/sage-2.8.13.rc2/local/lib/libgmp.3.dylib ___gmpn_addmul_1 referenced from libntl expected to be defined in / home/math1/was/10.4x86/sage-2.8.13.rc2/local/lib/libgmp.3.dylib ___gmpn_divrem_1 referenced from libntl expected to be defined in / home/math1/was/10.4x86/sage-2.8.13.rc2/local/lib/libgmp.3.dylib ___gmpn_gcd referenced from libntl expected to be defined in /home/ math1/was/10.4x86/sage-2.8.13.rc2/local/lib/libgmp.3.dylib ___gmpn_gcdext referenced from libntl expected to be defined in /home/ math1/was/10.4x86/sage-2.8.13.rc2/local/lib/libgmp.3.dylib ___gmpn_lshift referenced from libntl expected to be defined in /home/ math1/was/10.4x86/sage-2.8.13.rc2/local/lib/libgmp.3.dylib ___gmpn_mod_1 referenced from libntl expected to be defined in /home/ math1/was/10.4x86/sage-2.8.13.rc2/local/lib/libgmp.3.dylib ___gmpn_mul referenced from libntl expected to be defined in /home/ math1/was/10.4x86/sage-2.8.13.rc2/local/lib/libgmp.3.dylib ___gmpn_mul_1 referenced from libntl expected to be defined in /home/ math1/was/10.4x86/sage-2.8.13.rc2/local/lib/libgmp.3.dylib ___gmpn_rshift referenced from libntl expected to be defined in /home/ math1/was/10.4x86/sage-2.8.13.rc2/local/lib/libgmp.3.dylib ___gmpn_sqrtrem referenced from libntl expected to be defined in /home/ math1/was/10.4x86/sage-2.8.13.rc2/local/lib/libgmp.3.dylib ___gmpn_sub_n referenced from libntl expected to be defined in /home/ math1/was/10.4x86/sage-2.8.13.rc2/local/lib/libgmp.3.dylib ___gmpn_tdiv_qr referenced from libntl expected to be defined in /home/ math1/was/10.4x86/sage-2.8.13.rc2/local/lib/libgmp.3.dylib collect2: ld returned 1 exit status make[2]: *** [vectest1] Error 1 make[1]: *** [all] Error 2 Error building cremona real 0m7.031s user 0m4.589s sys 0m0.766s sage: An error occurred while installing cremona-20071124.p2 --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---