[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [cantor] [Bug 375467] Cantor hangs at "Initializing Session" when choosing Sage backend (Sage versio
From:       Nikita Sirgienko <bugzilla_noreply () kde ! org>
Date:       2018-05-14 17:16:47
Message-ID: bug-375467-17878-vbIYzMEPoG () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=375467

--- Comment #15 from Nikita Sirgienko <warquark@gmail.com> ---
(In reply to Antonio Rojas from comment #14)
> (In reply to Nikita Sirgienko from comment #13)
> > Theoretically, If there is way to run 'sage-ipython' directly, without sage
> > bash file, I guess, that I could fix this bug for all sage versions, but I
> > am not sure.
> 
> Running sage-ipython directly should work fine, the problem is finding where
> the binary is installed. You can get the location of the SAGE_LOCAL dir with
> 
> sage -c "from sage.env import SAGE_LOCAL; print SAGE_LOCAL"
> 
> and the sage-ipython should be located in $SAGE_LOCAL/bin
$ sage -c "from sage.env import SAGE_LOCAL; print SAGE_LOCAL" 
gives '/usr/' for me, and sage-ipython locate in '/usr/share/sagemath/bin', so
it's not so simple.

That worse, sage-ipython fails for me with this trackeback:
Traceback (most recent call last):
  File "./sage-ipython", line 7, in <module>
    from sage.repl.interpreter import SageTerminalApp
  File "/usr/lib/python2.7/dist-packages/sage/repl/interpreter.py", line 112,
in <module>
    from sage.env import SAGE_LOCAL
  File "/usr/lib/python2.7/dist-packages/sage/env.py", line 123, in <module>
    _add_variable_or_fallback('SAGE_ETC',        opj('$SAGE_LOCAL', 'etc'))
  File "/usr/lib/python2.7/dist-packages/sage/env.py", line 103, in
_add_variable_or_fallback
    value = sep.join(components)
TypeError: sequence item 0: expected string, NoneType found

And I don't understand, how I can fix it and run sage-ipython correctly. I
guess, that sage bash file set up environment for sage-ipython, and we need
also do it before directly run sage-ipython.

-- 
You are receiving this mail because:
You are watching all bug changes.=
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic