[sage-support] sage 5.0 complaining about unsupported hash types
I just finished installing sage 5.0, but sadly I can't get it to work. It's complaining about unsupported hash types. I read on the internet there are more people having the problem. No solution found though. Any help is very much appreciated! I must mention that sage 4.8 has worked for me. (Until today, but nevermind it. I probably screwed it up by installing wrong python version or so, and I want 5.0 anyway). Here is the exact error message: -- | Sage Version 5.0, Release Date: 2012-05-14 | | Type notebook() for the GUI, and license() for information.| -- ERROR:root:code for hash md5 was not found. Traceback (most recent call last): File /home/chiel/sage-5.0/sage-5.0-linux-32bit-ubuntu_12.04_lts-i686-Linux/local/lib/python/hashlib.py, line 139, in module globals()[__func_name] = __get_hash(__func_name) File /home/chiel/sage-5.0/sage-5.0-linux-32bit-ubuntu_12.04_lts-i686-Linux/local/lib/python/hashlib.py, line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name) ValueError: unsupported hash type md5 ERROR:root:code for hash sha1 was not found. Traceback (most recent call last): File /home/chiel/sage-5.0/sage-5.0-linux-32bit-ubuntu_12.04_lts-i686-Linux/local/lib/python/hashlib.py, line 139, in module globals()[__func_name] = __get_hash(__func_name) File /home/chiel/sage-5.0/sage-5.0-linux-32bit-ubuntu_12.04_lts-i686-Linux/local/lib/python/hashlib.py, line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name) ValueError: unsupported hash type sha1 ERROR:root:code for hash sha224 was not found. Traceback (most recent call last): File /home/chiel/sage-5.0/sage-5.0-linux-32bit-ubuntu_12.04_lts-i686-Linux/local/lib/python/hashlib.py, line 139, in module globals()[__func_name] = __get_hash(__func_name) File /home/chiel/sage-5.0/sage-5.0-linux-32bit-ubuntu_12.04_lts-i686-Linux/local/lib/python/hashlib.py, line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name) ValueError: unsupported hash type sha224 ERROR:root:code for hash sha256 was not found. Traceback (most recent call last): File /home/chiel/sage-5.0/sage-5.0-linux-32bit-ubuntu_12.04_lts-i686-Linux/local/lib/python/hashlib.py, line 139, in module globals()[__func_name] = __get_hash(__func_name) File /home/chiel/sage-5.0/sage-5.0-linux-32bit-ubuntu_12.04_lts-i686-Linux/local/lib/python/hashlib.py, line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name) ValueError: unsupported hash type sha256 ERROR:root:code for hash sha384 was not found. Traceback (most recent call last): File /home/chiel/sage-5.0/sage-5.0-linux-32bit-ubuntu_12.04_lts-i686-Linux/local/lib/python/hashlib.py, line 139, in module globals()[__func_name] = __get_hash(__func_name) File /home/chiel/sage-5.0/sage-5.0-linux-32bit-ubuntu_12.04_lts-i686-Linux/local/lib/python/hashlib.py, line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name) ValueError: unsupported hash type sha384 ERROR:root:code for hash sha512 was not found. Traceback (most recent call last): File /home/chiel/sage-5.0/sage-5.0-linux-32bit-ubuntu_12.04_lts-i686-Linux/local/lib/python/hashlib.py, line 139, in module globals()[__func_name] = __get_hash(__func_name) File /home/chiel/sage-5.0/sage-5.0-linux-32bit-ubuntu_12.04_lts-i686-Linux/local/lib/python/hashlib.py, line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name) ValueError: unsupported hash type sha512 Traceback (most recent call last): File /home/chiel/sage-5.0/sage-5.0-linux-32bit-ubuntu_12.04_lts-i686-Linux/local/bin/sage-ipython, line 18, in module import IPython File /home/chiel/sage-5.0/sage-5.0-linux-32bit-ubuntu_12.04_lts-i686-Linux/local/lib/python2.7/site-packages/IPython/__init__.py, line 58, in module __import__(name,glob,loc,[]) File /home/chiel/sage-5.0/sage-5.0-linux-32bit-ubuntu_12.04_lts-i686-Linux/local/lib/python2.7/site-packages/IPython/ipstruct.py, line 17, in module from IPython.genutils import list2dict2 File /home/chiel/sage-5.0/sage-5.0-linux-32bit-ubuntu_12.04_lts-i686-Linux/local/lib/python2.7/site-packages/IPython/genutils.py, line 28, in module import subprocess File /home/chiel/sage-5.0/sage-5.0-linux-32bit-ubuntu_12.04_lts-i686-Linux/local/lib/python/subprocess.py, line 429, in module import select ImportError: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.15' not found (required by /home/chiel/sage-5.0/sage-5.0-linux-32bit-ubuntu_12.04_lts-i686-Linux/local/lib/python2.7/lib-dynload/select.so) -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to
[sage-support] Re: sage 5.0 complaining about unsupported hash types
Chiel92 ctenbri...@gmail.com writes: I just finished installing sage 5.0, but sadly I can't get it to work. It's complaining about unsupported hash types. I read on the internet there are more people having the problem. No solution found though. Any help is very much appreciated! I must mention that sage 4.8 has worked for me. (Until today, but nevermind it. I probably screwed it up by installing wrong python version or so, and I want 5.0 anyway). You are using sage-5.0-linux-32bit-ubuntu_12.04_lts-i686-Linux.tar.lzma, right? Do you have Ubuntu Linux 12.04 32-bit? -Keshav Join us in #sagemath on irc.freenode.net ! -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: sage 5.0 complaining about unsupported hash types
Completely right! On Mon, Jun 11, 2012 at 4:27 PM, Keshav Kini keshav.k...@gmail.com wrote: Chiel92 ctenbri...@gmail.com writes: I just finished installing sage 5.0, but sadly I can't get it to work. It's complaining about unsupported hash types. I read on the internet there are more people having the problem. No solution found though. Any help is very much appreciated! I must mention that sage 4.8 has worked for me. (Until today, but nevermind it. I probably screwed it up by installing wrong python version or so, and I want 5.0 anyway). You are using sage-5.0-linux-32bit-ubuntu_12.04_lts-i686-Linux.tar.lzma, right? Do you have Ubuntu Linux 12.04 32-bit? -Keshav Join us in #sagemath on irc.freenode.net ! -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] sagetex difficulty
I am following the instructions at http://www.sagemath.org/doc/installation/sagetex.html on a 64-bit ubuntu machine running sage-5.0, installed in SAGE_ROOT=$HOME/sage-5.0 . 1. I copied cp -R $SAGE_ROOT/local/share/texmf/tex $TEXMFHOME where $TEXMFHOME is $HOME/texmf (default, not changed). This created a directory $HOME/texmf/tex/generic/sagetex/ in which are carious files including sagetex.sty . 2. I created a file example.tex in $HOME (copying the file contents from http://www.sagemath.org/doc/tutorial/sagetex.html). 3. I ran latex on that file twice. A file example.sage was created. 4. I ran Sage on that file; to make sure I picked up the right Sage version from the many on this this machine I did directly $HOME/sage-5.0/sage example.sage Result-- output as follows: Traceback (most recent call last): File example.py, line 5, in module _st_ = sagetex.SageTeXProcessor('example') File /home/jec/sage-5.0/local/lib/python2.7/site-packages/sagetex.py, line 68, in __init__ raise VersionError, errstr sagetex.VersionError: versions of .sty and .py files do not match. example.sagetex.sage was generated by sagetex.sty version None, but is being processed by sagetex.py version 2012/01/16 v2.3.3-69dcb0eb93de. Please make sure that TeX is using the sagetex.sty from your current version of Sage; see http://www.sagemath.org/doc/installation/sagetex.html. [Note that the file mentioend in that message, example.sagetex.sage, does not exist.] What did I do wrong? By the way, if I cd into $HOME/texmf/tex/generic/sagetex/ and there run latex on the example.tex file there, it creates a file example.sagetex.sage on which sage runs fine, and after rerunning latex (twice) I get a dvi file which looks perfect. John -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] sagetex difficulty
Had similar issue some time ago on my document build server. Most likely another sagetex.sty installed with texlive/package management? It's easy to check which file is used in TeX by doing kpsewhich sagetex.sty Another possibility is that you have to run texhash to make TeX update files it knows, if $TEXMFHOME takes higher priority than system wide install (it should I believe) then updating file database might be enough. On Mon, Jun 11, 2012 at 6:37 PM, John Cremona john.crem...@gmail.com wrote: I am following the instructions at http://www.sagemath.org/doc/installation/sagetex.html on a 64-bit ubuntu machine running sage-5.0, installed in SAGE_ROOT=$HOME/sage-5.0 . 1. I copied cp -R $SAGE_ROOT/local/share/texmf/tex $TEXMFHOME where $TEXMFHOME is $HOME/texmf (default, not changed). This created a directory $HOME/texmf/tex/generic/sagetex/ in which are carious files including sagetex.sty . 2. I created a file example.tex in $HOME (copying the file contents from http://www.sagemath.org/doc/tutorial/sagetex.html). 3. I ran latex on that file twice. A file example.sage was created. 4. I ran Sage on that file; to make sure I picked up the right Sage version from the many on this this machine I did directly $HOME/sage-5.0/sage example.sage Result-- output as follows: Traceback (most recent call last): File example.py, line 5, in module _st_ = sagetex.SageTeXProcessor('example') File /home/jec/sage-5.0/local/lib/python2.7/site-packages/sagetex.py, line 68, in __init__ raise VersionError, errstr sagetex.VersionError: versions of .sty and .py files do not match. example.sagetex.sage was generated by sagetex.sty version None, but is being processed by sagetex.py version 2012/01/16 v2.3.3-69dcb0eb93de. Please make sure that TeX is using the sagetex.sty from your current version of Sage; see http://www.sagemath.org/doc/installation/sagetex.html. [Note that the file mentioend in that message, example.sagetex.sage, does not exist.] What did I do wrong? By the way, if I cd into $HOME/texmf/tex/generic/sagetex/ and there run latex on the example.tex file there, it creates a file example.sagetex.sage on which sage runs fine, and after rerunning latex (twice) I get a dvi file which looks perfect. John -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: sage 5.0 complaining about unsupported hash types
Chiel ten Brinke ctenbri...@gmail.com writes: Completely right! So, you have Ubuntu 12.04, but somehow don't have glibc 2.15. Odd. Are you absolutely sure you have Ubuntu 12.04 and not an earlier version of Ubuntu? Or maybe you are on Ubuntu 12.04, and *do* have glibc 2.15, but Sage just can't find it? Please paste the output of this command: $ apt-cache policy libc -Keshav Join us in #sagemath on irc.freenode.net ! -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: sage 5.0 complaining about unsupported hash types
Ah, apologies! I was confused, i've got multiple installs. Indeed, I don't use 12.04, but 10.04 instead. My apologies! So I lack glibc 2.15? How can I get it? On Mon, Jun 11, 2012 at 6:48 PM, Keshav Kini keshav.k...@gmail.com wrote: Chiel ten Brinke ctenbri...@gmail.com writes: Completely right! So, you have Ubuntu 12.04, but somehow don't have glibc 2.15. Odd. Are you absolutely sure you have Ubuntu 12.04 and not an earlier version of Ubuntu? Or maybe you are on Ubuntu 12.04, and *do* have glibc 2.15, but Sage just can't find it? Please paste the output of this command: $ apt-cache policy libc -Keshav Join us in #sagemath on irc.freenode.net ! -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: sage 5.0 complaining about unsupported hash types
Chiel ten Brinke ctenbri...@gmail.com writes: Ah, apologies! I was confused, i've got multiple installs. Indeed, I don't use 12.04, but 10.04 instead. My apologies! So I lack glibc 2.15? How can I get it? Well, I think you'll basically need to upgrade to Ubuntu 12.04 if you want to use the binary that is built for Ubuntu 12.04 :( glibc won't be the only version mismatch you'll see. Another option is always to build Sage from source - see instructions in the manual under Install from Source Code. -Keshav Join us in #sagemath on irc.freenode.net ! -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: sage 5.0 complaining about unsupported hash types
Thanks for your advice! Highly appreciated. I will install sage on 12.04. Regards On Mon, Jun 11, 2012 at 7:44 PM, Keshav Kini keshav.k...@gmail.com wrote: Chiel ten Brinke ctenbri...@gmail.com writes: Ah, apologies! I was confused, i've got multiple installs. Indeed, I don't use 12.04, but 10.04 instead. My apologies! So I lack glibc 2.15? How can I get it? Well, I think you'll basically need to upgrade to Ubuntu 12.04 if you want to use the binary that is built for Ubuntu 12.04 :( glibc won't be the only version mismatch you'll see. Another option is always to build Sage from source - see instructions in the manual under Install from Source Code. -Keshav Join us in #sagemath on irc.freenode.net ! -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] sagetex difficulty
Thanks for the suggestions, but... On Monday, June 11, 2012 5:47:48 PM UTC+1, Andrzej Giniewicz wrote: Had similar issue some time ago on my document build server. Most likely another sagetex.sty installed with texlive/package management? It's easy to check which file is used in TeX by doing kpsewhich sagetex.sty This shows the correct one, i.e. the one under $HOME/texmf Another possibility is that you have to run texhash to make TeX update files it knows, if $TEXMFHOME takes higher priority than system wide install (it should I believe) then updating file database might be enough. I did texhash but the same happens. I also tried again on a completely different computer, running a new ubuntu 12.04 install, with a freshly built 5.1.beta3, and the symptoms are identical. Bizarre. Can Dan Drake help? John On Mon, Jun 11, 2012 at 6:37 PM, John Cremona john.crem...@gmail.com wrote: I am following the instructions at http://www.sagemath.org/doc/installation/sagetex.html on a 64-bit ubuntu machine running sage-5.0, installed in SAGE_ROOT=$HOME/sage-5.0 . 1. I copied cp -R $SAGE_ROOT/local/share/texmf/tex $TEXMFHOME where $TEXMFHOME is $HOME/texmf (default, not changed). This created a directory $HOME/texmf/tex/generic/sagetex/ in which are carious files including sagetex.sty . 2. I created a file example.tex in $HOME (copying the file contents from http://www.sagemath.org/doc/tutorial/sagetex.html). 3. I ran latex on that file twice. A file example.sage was created. 4. I ran Sage on that file; to make sure I picked up the right Sage version from the many on this this machine I did directly $HOME/sage-5.0/sage example.sage Result-- output as follows: Traceback (most recent call last): File example.py, line 5, in module _st_ = sagetex.SageTeXProcessor('example') File /home/jec/sage-5.0/local/lib/python2.7/site-packages/sagetex.py, line 68, in __init__ raise VersionError, errstr sagetex.VersionError: versions of .sty and .py files do not match. example.sagetex.sage was generated by sagetex.sty version None, but is being processed by sagetex.py version 2012/01/16 v2.3.3-69dcb0eb93de. Please make sure that TeX is using the sagetex.sty from your current version of Sage; see http://www.sagemath.org/doc/installation/sagetex.html. [Note that the file mentioend in that message, example.sagetex.sage, does not exist.] What did I do wrong? By the way, if I cd into $HOME/texmf/tex/generic/sagetex/ and there run latex on the example.tex file there, it creates a file example.sagetex.sage on which sage runs fine, and after rerunning latex (twice) I get a dvi file which looks perfect. John -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Comparison of approximate real numbers
Hi all, I am puzzled. sage: 10.44-10.30==0.14 False How should I compare them to get True? Suddenly Sage feels very alien to me. :-) Kwankyu -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Comparison of approximate real numbers
On 6/11/12 6:45 PM, Kwankyu wrote: Hi all, I am puzzled. sage: 10.44-10.30==0.14 False How should I compare them to get True? Suddenly Sage feels very alien to me. :-) You never compare decimal numbers exactly on a computer. Because of finite precision, there almost always will be corner cases that will catch you. Instead, do something like: 10.44-10.30-0.14 1e-10 or something like that. Thanks, Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] sagetex difficulty
On Mon, 11 Jun 2012 at 05:37PM +0100, John Cremona wrote: 3. I ran latex on that file twice. A file example.sage was created. That's the weird thing to me: on the LaTeX end, if you're using sagetex.sty as included with 5.0, it should create example.sagetex.sage. If it made example.sage, then it must be an older version of sagetex.sty that somehow got used. Can you try doing $ latex example.tex | grep sagetex That should give you a full path to whatever LaTeX is using when typesetting your file. That *should* be the same as what kpsewhich sagetex.sty returns, but perhaps something strange is happening. What did I do wrong? By the way, if I cd into $HOME/texmf/tex/generic/sagetex/ and there run latex on the example.tex file there, it creates a file example.sagetex.sage on which sage runs fine, and after rerunning latex (twice) I get a dvi file which looks perfect. That tells me that LaTeX must be getting confused somewhere. We just need to figure out what wrong version of sagetex.sty it is finding. Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature
[sage-support] Sage 5.0 build failure in ECL
Hardware: HP Pavilion (desktop) with Intel(R) Pentium(R) CPU G620 @ 2.60GHz Software: Ubuntu 12.04 clean install (not an upgrade) Problem: Sage 5.0 build failure in ECL: Partial log file: ;*** Lisp core booted ECL (Embeddable Common Lisp) ;;; ;;; Welcome to bare.lsp. Let's bring this instance up! ;;; ;;; ;;; About to load lsp/load.lsp ;;; ;;; Loading src:lsp;export.lsp /bin/bash: line 4: 24013 Illegal instruction (core dumped) ECLDIR=`pwd`/ ./ecl_min compile make[3]: *** [bin/ecl] Error 132 make[3]: Leaving directory `/home/daryl/Sage/sage-5.0/spkg/build/ecl-11.1.2.cvs2020.p1/src/build' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/daryl/Sage/sage-5.0/spkg/build/ecl-11.1.2.cvs2020.p1/src' Error - Failed to build ECL ... exiting real0m31.128s user0m21.997s sys0m3.244s Error installing package ecl-11.1.2.cvs2020.p1 Question: What do I do now? -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Comparison of approximate real numbers
On Mon, Jun 11, 2012 at 6:45 PM, Kwankyu ekwan...@gmail.com wrote: Hi all, I am puzzled. sage: 10.44-10.30==0.14 False How should I compare them to get True? Suddenly Sage feels very alien to me. :-) Use Python's (hence Sage's) decimal module, which is designed to do arithmetic with decimal numbers with human (rather than alien) semantics: sage: from decimal import Decimal sage: Decimal('10.44') - Decimal('10.30') == Decimal('0.14') True -- William Kwankyu -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -- William Stein Professor of Mathematics University of Washington http://wstein.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org