## Sage cell server on sage 5.2: hunks on patching

Showing 1-9 of 9 messages
 Sage cell server on sage 5.2: hunks on patching fero 8/2/12 9:08 AM Deal all,I have just downloaded sage-5.2 compiled for ubuntu lts 12.04.I am on ArchLinux.I'd like to try sagecell server as kcrisman suggested me onhttp://ask.sagemath.org/question/1623/notebook-api-new-worksheet(thx)but some patches fail to apply.So I write to you as it is described in instructions attached within the error message.I have tried before to apply to sage-5.1 , and it failed too.It seems strange to me that the newest sagecell server source package documented in github repo,fails to install in the recently released sage. ... I thought that this wereone of the first things you tested before releasing the new sage :))Thank for your wonderful work, I hope I'll get some info from you to the right way...Follows the error message:sage -i http://sage.math.washington.edu/home/jason/sagecell-0.9.0.spkgCalling sage-spkg on 'http://sage.math.washington.edu/home/jason/sagecell-0.9.0.spkg'Attempting to download package sagecell-0.9.0http://sage.math.washington.edu/home/jason/sagecell-0.9.0.spkg --> sagecell-0.9.0.spkg[..................................................]sagecell-0.9.0====================================================Extracting package /opt/sage-5.2-linux-64bit-ubuntu_12.04_lts-x86_64-Linux/spkg/optional/sagecell-0.9.0.spkg-rw-r--r-- 1 fero fero 51495134 Aug  2 17:52 /opt/sage-5.2-linux-64bit-ubuntu_12.04_lts-x86_64-Linux/spkg/optional/sagecell-0.9.0.spkgFinished extraction****************************************************Host system:Linux archgugu 3.4.7-1-ARCH #1 SMP PREEMPT Sun Jul 29 22:02:56 CEST 2012 x86_64 GNU/Linux****************************************************C compiler: gccC compiler version:Using built-in specs.COLLECT_GCC=gccCOLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/lto-wrapperTarget: x86_64-unknown-linux-gnuConfigured with: /build/src/gcc-4.7-20120721/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --enable-libstdcxx-time --enable-gnu-unique-object --enable-linker-build-id --with-ppl --enable-cloog-backend=isl --disable-ppl-version-check --disable-cloog-version-check --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --with-linker-hash-style=gnu --disable-multilib --disable-libssp --disable-build-with-cxx --disable-build-poststage1-with-cxx --enable-checking=releaseThread model: posixgcc version 4.7.1 20120721 (prerelease) (GCC) ****************************************************Patching Sageadding 01-sage-embedded.patch to series fileapplying 01-sage-embedded.patchpatching file sage/misc/html.pyHunk #1 succeeded at 172 with fuzz 1 (offset -7 lines).Hunk #5 FAILED at 323Hunk #6 FAILED at 3382 out of 6 hunks FAILED -- saving rejects to file sage/misc/html.py.rejpatching file sage/misc/interpreter.pyHunk #1 FAILED at 861 out of 1 hunks FAILED -- saving rejects to file sage/misc/interpreter.py.rejpatching file sage/misc/latex.pyHunk #4 FAILED at 1959Hunk #6 FAILED at 22112 out of 6 hunks FAILED -- saving rejects to file sage/misc/latex.py.rejpatching file sage/misc/misc.pyHunk #2 succeeded at 2170 with fuzz 2 (offset 1 lines).patch failed, unable to continue (try -v)patch failed, rejects left in working direrrors during apply, please fix and refresh 01-sage-embedded.patchError pushing patch 01-sage-embedded.patch.real    0m1.814suser    0m0.987ssys    0m0.117s************************************************************************Error installing package sagecell-0.9.0************************************************************************Please email sage-devel (http://groups.google.com/group/sage-devel)explaining the problem and including the relevant part of the log file  /opt/sage-5.2-linux-64bit-ubuntu_12.04_lts-x86_64-Linux/spkg/logs/sagecell-0.9.0.logDescribe your computer, operating system, etc.If you want to try to fix the problem yourself, *don't* just cd to/opt/sage-5.2-linux-64bit-ubuntu_12.04_lts-x86_64-Linux/spkg/build/sagecell-0.9.0 and type 'make' or whatever is appropriate.Instead, the following commands setup all environment variablescorrectly and load a subshell for you to debug the error:  (cd '/opt/sage-5.2-linux-64bit-ubuntu_12.04_lts-x86_64-Linux/spkg/build/sagecell-0.9.0' && '/opt/sage-5.2-linux-64bit-ubuntu_12.04_lts-x86_64-Linux/sage' -sh)When you are done debugging, you can type "exit" to leave the subshell.************************************************************************ Re: Sage cell server on sage 5.2: hunks on patching jason 8/2/12 8:13 PM On 8/2/12 9:08 AM, fero wrote: > It seems strange to me that the newest sagecell server source package > documented in github repo, > fails to install in the recently released sage. .... I thought that this > were > one of the first things you tested before releasing the new sage :)) Right now, the sage cell server is very much in development and the requirements rapidly change.  It's definitely not tested as part of the sage infrastructure since code development and requirements are still moving pretty quickly. If you're interested, the current status (I think) is here: https://github.com/sagemath/sagecell/issues/344 Be aware that it will probably take some time and care to set it up at this point.  If you have that sort of time, feel free to update the documentation to be more up-to-date. Thanks, Jason Re: Sage cell server on sage 5.2: hunks on patching fero 8/2/12 9:54 PM Il giorno venerdì 3 agosto 2012 05:13:09 UTC+2, jason ha scritto:Thank you, in the meanwhile I tired to fix my files, and I have lost some time in trying to update the patch...If you think it is useful, could you point me in the right way to produce an updated patch please? (it would work against sage-5.2 release) Re: Sage cell server on sage 5.2: hunks on patching jason 8/2/12 9:57 PM On 8/2/12 9:54 PM, fero wrote: > Il giorno venerd� 3 agosto 2012 05:13:09 UTC+2, jason ha scritto: Basically: 1. apply the patch that is failing 2. Look at the .rej files it mentions and apply the necessary changes to the Sage library manually. 3. sage -hg qrefresh to update the patch 4. Put the updated patch (from $SAGE_ROOT/devel/sage/.hg/patches/) somewhere. Thanks, Jason Re: Sage cell server on sage 5.2: hunks on patching fero 8/2/12 11:58 PM Il giorno venerdì 3 agosto 2012 06:57:32 UTC+2, jason ha scritto: Basically: 1. apply the patch that is failing 2. Look at the .rej files it mentions and apply the necessary changes to the Sage library manually. 3. sage -hg qrefresh to update the patch 4. Put the updated patch (from$SAGE_ROOT/devel/sage/.hg/patches/) somewhere. Thanks, Jason I think that the patch attached could do. Some updates seems to be integrated in 5.2 release (mainly doc and tests...)I am going to start another thread to let sagecell working on ArchLinux Re: Sage cell server on sage 5.2: hunks on patching fero 8/3/12 12:51 AM the previous patch is still untested, I will test it as I perform another installation.Il giorno venerdì 3 agosto 2012 08:58:04 UTC+2, fero ha scritto: Re: Sage cell server on sage 5.2: hunks on patching fero 8/10/12 8:46 PM I reinstalled and I have done a qrefresh, hope the attached patches to work against sage-5.2 releaseI followed Jason workfllow as suggested belowThanksLucaIl giorno venerdì 3 agosto 2012 09:51:37 UTC+2, fero ha scritto: Re: Sage cell server on sage 5.2: hunks on patching jason 8/11/12 12:58 AM On 8/10/12 8:46 PM, fero wrote: > I reinstalled and I have done a qrefresh, hope the attached patches to > work against sage-5.2 release > > I followed Jason workfllow as suggested below Thanks! From your patches, it looks like you didn't have Sage trac ticket 13121 installed (in particular, it seems like you didn't have mathjax installed).  I think earlier in this thread, I pointed you to the current installation instructions at https://github.com/sagemath/sagecell/issues/344, which mention that you need trac ticket 13121 installed. I also had a go at updating the patches, and it seemed to require one small update: https://github.com/sagemath/sagecell/commit/0bb5c2a61da48efbedbdc0934d6122c2591f7121 I updated the sagecell spkg and just tested the instructions at https://github.com/sagemath/sagecell/issues/344 by upgrading aleph.sagemath.org to sage 5.2.  Installing on Sage 5.2 seems to work fine now. Thanks for your work on this! Jason Re: Sage cell server on sage 5.2: hunks on patching fero 8/11/12 9:29 AM It has been a pleasure to give out this small contribution.Thanks for your work and your comments, sagecell is a very good piece of softwareand having it working for sage-5.2 is an important step achieved.LucaIl giorno sabato 11 agosto 2012 09:58:05 UTC+2, jason ha scritto: