On Wed, Sep 9, 2020 at 9:27 AM Taj Jankovic <taj.janko...@gmail.com> wrote: > > Hi all, > > building Sage from the source was also unsuccessful. However, I resolved the > issue by uninstalling tex-live and all related packages. Then I was able to > normally extract the SageMath binary and all tests passed without errors.
Thanks for letting us know. I must say I don't recall texlive installing ecl, but perhaps that's what happened in your case. It would be interesting to know which ubuntu package does this. > > Thanks again for all the help! > > Best, > Taj > > On Tue, Sep 8, 2020 at 11:45 AM Dima Pasechnik <dimp...@gmail.com> wrote: >> >> it might be quicker to build Sage from source on your system than to try to >> fix this. >> >> On Tue, 8 Sep 2020, 10:23 Taj Jankovic, <taj.janko...@gmail.com> wrote: >>> >>> Also, if it helps, if I follow these steps >>> >>> cd /home/taj/SageMath >>> ./sage >>> >>> and run the command >>> sage: assume(x<1) >>> >>> I get a similar error >>> >>> ImportError Traceback (most recent call last) >>> <ipython-input-1-d190d46c0ecf> in <module>() >>> ----> 1 assume(x<Integer(1)) >>> >>> /home/taj/SageMath/local/lib/python3.7/site-packages/sage/symbolic/assumptions.py >>> in assume(*args) >>> 625 assume(*x) >>> 626 else: >>> --> 627 x.assume() >>> 628 >>> 629 >>> >>> /home/taj/SageMath/local/lib/python3.7/site-packages/sage/symbolic/expression.pyx >>> in sage.symbolic.expression.Expression.assume >>> (build/cythonized/sage/symbolic/expression.cpp:13564)() >>> 1875 raise TypeError("self (=%s) must be a relational >>> expression" % self) >>> 1876 if not self in _assumptions: >>> -> 1877 m = self._maxima_init_assume_() >>> 1878 s = maxima.assume(m) >>> 1879 pynac_assume_rel(self._gobj) >>> >>> /home/taj/SageMath/local/lib/python3.7/site-packages/sage/symbolic/expression.pyx >>> in sage.symbolic.expression.Expression._maxima_init_assume_ >>> (build/cythonized/sage/symbolic/expression.cpp:14329)() >>> 1951 m = 'notequal(%s, %s)'%(l, r) >>> 1952 else: >>> -> 1953 m = '(%s)%s(%s)' % (l, maxima._relation_symbols()[op], >>> r) >>> 1954 return m >>> 1955 >>> >>> /home/taj/SageMath/local/lib/python3.7/site-packages/sage/misc/lazy_import.pyx >>> in sage.misc.lazy_import.LazyImport.__getattr__ >>> (build/cythonized/sage/misc/lazy_import.c:3536)() >>> 319 True >>> 320 """ >>> --> 321 return getattr(self.get_object(), attr) >>> 322 >>> 323 # We need to wrap all the slot methods, as they are not >>> forwarded >>> >>> /home/taj/SageMath/local/lib/python3.7/site-packages/sage/misc/lazy_import.pyx >>> in sage.misc.lazy_import.LazyImport.get_object >>> (build/cythonized/sage/misc/lazy_import.c:2347)() >>> 186 if likely(self._object is not None): >>> 187 return self._object >>> --> 188 return self._get_object() >>> 189 >>> 190 cpdef _get_object(self): >>> >>> /home/taj/SageMath/local/lib/python3.7/site-packages/sage/misc/lazy_import.pyx >>> in sage.misc.lazy_import.LazyImport._get_object >>> (build/cythonized/sage/misc/lazy_import.c:2586)() >>> 218 elif self._at_startup and not startup_guard: >>> 219 print('Option ``at_startup=True`` for lazy import {0} >>> not needed anymore'.format(self._name)) >>> --> 220 self._object = getattr(__import__(self._module, {}, {}, >>> [self._name]), self._name) >>> 221 name = self._as_name >>> 222 if self._deprecation is not None: >>> >>> /home/taj/SageMath/local/lib/python3.7/site-packages/sage/interfaces/maxima_lib.py >>> in <module>() >>> 90 from sage.symbolic.ring import SR >>> 91 >>> ---> 92 from sage.libs.ecl import EclObject, ecl_eval >>> 93 >>> 94 from .maxima_abstract import (MaximaAbstract, >>> MaximaAbstractFunction, >>> >>> ImportError: >>> /home/taj/SageMath/local/lib/python3.7/site-packages/sage/libs/ecl.cpython-37m-x86_64-linux-gnu.so: >>> undefined symbol: cl_env_p >>> >>> >>> >>> Best, >>> Taj >>> >>> On Tue, Sep 8, 2020 at 10:44 AM Taj Jankovic <taj.janko...@gmail.com> wrote: >>>> >>>> Hi, >>>> >>>> thanks for the quick response! If I run >>>> >>>> ./sage >>>> >>>> then close sage and run >>>> >>>> ./sage -tp --long src/sage/manifolds >>>> >>>> the errors remain the same... >>>> >>>> Best, >>>> Taj >>>> >>>> >>>> >>>> >>>> >>>> On Tue, Sep 8, 2020 at 10:21 AM Dima Pasechnik <dimp...@gmail.com> wrote: >>>>> >>>>> On Tue, Sep 8, 2020 at 8:41 AM Taj Jankovic <taj.janko...@gmail.com> >>>>> wrote: >>>>> > >>>>> > Hi everyone, >>>>> > >>>>> > I am having trouble with the SageMath. >>>>> > >>>>> > 1/ I've downloaded the binary tar file >>>>> > sage-9.1-Ubuntu_18.04-x86_64.tar.bz2 from >>>>> > https://www.sagemath.org/download-linux.html >>>>> > >>>>> > 2/ Then >>>>> > tar jxvf sage-9.1-Ubuntu_18.04-x86_64.tar.bz2 >>>>> > cd SageMath >>>>> >>>>> at this point one should run >>>>> >>>>> ./sage >>>>> >>>>> without parameters. >>>>> Only then it should be ready (the 1st run is a kind of bootstrap) >>>>> >>>>> > ./sage -tp --long src/sage/manifolds >>>>> > >>>>> > However, instead of "All tests passed!", I get a multitude of errors. >>>>> > >>>>> > -a typical error is: >>>>> > >>>>> > sage -t --long src/sage/manifolds/utilities.py >>>>> > ********************************************************************** >>>>> > File "src/sage/manifolds/utilities.py", line 54, in >>>>> > sage.manifolds.utilities.SimplifySqrtReal >>>>> > Failed example: >>>>> > assume(x<1) >>>>> > Exception raised: >>>>> > Traceback (most recent call last): >>>>> > File >>>>> > "/home/taj/SageMath/local/lib/python3.7/site-packages/sage/doctest/forker.py", >>>>> > line 681, in _run >>>>> > self.compile_and_execute(example, compiler, test.globs) >>>>> > File >>>>> > "/home/taj/SageMath/local/lib/python3.7/site-packages/sage/doctest/forker.py", >>>>> > line 1123, in compile_and_execute >>>>> > exec(compiled, globs) >>>>> > File "<doctest sage.manifolds.utilities.SimplifySqrtReal[0]>", >>>>> > line 1, in <module> >>>>> > assume(x<Integer(1)) >>>>> > File >>>>> > "/home/taj/SageMath/local/lib/python3.7/site-packages/sage/symbolic/assumptions.py", >>>>> > line 627, in assume >>>>> > x.assume() >>>>> > File "sage/symbolic/expression.pyx", line 1877, in >>>>> > sage.symbolic.expression.Expression.assume >>>>> > (build/cythonized/sage/symbolic/expression.cpp:13564) >>>>> > m = self._maxima_init_assume_() >>>>> > File "sage/symbolic/expression.pyx", line 1953, in >>>>> > sage.symbolic.expression.Expression._maxima_init_assume_ >>>>> > (build/cythonized/sage/symbolic/expression.cpp:14329) >>>>> > m = '(%s)%s(%s)' % (l, maxima._relation_symbols()[op], r) >>>>> > File "sage/misc/lazy_import.pyx", line 321, in >>>>> > sage.misc.lazy_import.LazyImport.__getattr__ >>>>> > (build/cythonized/sage/misc/lazy_import.c:3536) >>>>> > return getattr(self.get_object(), attr) >>>>> > File "sage/misc/lazy_import.pyx", line 188, in >>>>> > sage.misc.lazy_import.LazyImport.get_object >>>>> > (build/cythonized/sage/misc/lazy_import.c:2347) >>>>> > return self._get_object() >>>>> > File "sage/misc/lazy_import.pyx", line 220, in >>>>> > sage.misc.lazy_import.LazyImport._get_object >>>>> > (build/cythonized/sage/misc/lazy_import.c:2586) >>>>> > self._object = getattr(__import__(self._module, {}, {}, >>>>> > [self._name]), self._name) >>>>> > File >>>>> > "/home/taj/SageMath/local/lib/python3.7/site-packages/sage/interfaces/maxima_lib.py", >>>>> > line 92, in <module> >>>>> > from sage.libs.ecl import EclObject, ecl_eval >>>>> > ImportError: >>>>> > /home/taj/SageMath/local/lib/python3.7/site-packages/sage/libs/ecl.cpython-37m-x86_64-linux-gnu.so: >>>>> > undefined symbol: cl_env_p >>>>> > ********************************************************************** >>>>> > >>>>> > I am using Ubuntu 18.04 LTS and have Python 2.7, 3.6, and 3.7 >>>>> > installed. Does anyone maybe have an idea of what could be causing >>>>> > these errors? Any help is very much appreciated. >>>>> > >>>>> > Best regards, >>>>> > Taj Jankovič >>>>> > >>>>> > -- >>>>> > You received this message because you are subscribed to the Google >>>>> > Groups "sage-support" group. >>>>> > To unsubscribe from this group and stop receiving emails from it, send >>>>> > an email to sage-support+unsubscr...@googlegroups.com. >>>>> > To view this discussion on the web visit >>>>> > https://groups.google.com/d/msgid/sage-support/308662a3-99ea-4aab-96e6-7a2878f8a2fdn%40googlegroups.com. >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google Groups >>>>> "sage-support" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send an >>>>> email to sage-support+unsubscr...@googlegroups.com. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/sage-support/CAAWYfq3PAg4%3DnVZyTMLphu65_rcjgOEh9Q-0N%3D69MR0yyrSf8w%40mail.gmail.com. >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "sage-support" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to sage-support+unsubscr...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/sage-support/CAAEL6_0CnkoDgyYoJd0v7jsh4-EFpz9pJnMj2MJeF1seixrSQA%40mail.gmail.com. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "sage-support" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to sage-support+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/sage-support/CAAWYfq2S4xqmRj3BPxrjctBpEZSvc6QOxKL7zZzdEf8r2QmHZA%40mail.gmail.com. > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-support+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-support/CAAEL6_0WGr%3DdY3vcuOoUXzbiW%3Dh%3DPWFO%3DvxnxYxTNL7%2BtNpxRA%40mail.gmail.com. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/CAAWYfq0qy4FiHrSBkk2DfXEW131sR7hbd-MHW6502qkfOwVArQ%40mail.gmail.com.