Dear Graham,

Note that on Ubuntu 18.04 there is a sagemath and
sagemath-jupyter packages available in apt. They work
with the system Python and simplifies a lot installation.

Best
Vincent

On 8/12/18 7:57 AM, Graham Gerrard wrote:
Hi Jan

I initially installed from the binary tarball.  Successfully tried

sudo apt install tk tk-dev
sage -f python2

Ubuntu18.04 seems to be missing several development tools.  So I guess this
will all be resolved when a version of sage for 18.04 is formally released.

Many thanks for your help.

Graham

On 11 August 2018 at 15:22, Jan Groenewald <j...@aims.ac.za> wrote:

Hi

On Sat, 11 Aug 2018 at 15:38, Graham Gerrard <graham.gerr...@gmail.com>
wrote:

I am using sage from a command prompt ...


show(line2d([(0,0),(1,1),(2,4)])) produces

/home/graham/SageMath/local/lib/python2.7/lib-tk/Tkinter.py in <module>()
      37     # Attempt to configure Tcl/Tk without requiring PATH
      38     import FixTk
---> 39 import _tkinter # If this fails your Python may not be
configuredhttps://packages.ubuntu.com/search?keywords=tk&;
searchon=names&suite=bionic&section=all for Tk
      40 tkinter = _tkinter # b/w compat for export
      41 TclError = _tkinter.TclError

ImportError: libtk8.6.so: cannot open shared object file: No such file
or directory.



Did you install from source? (versus from apt / software centre?)

http://doc.sagemath.org/html/en/installation/source.html#tcl-tk

So it looks like even if you just sudo apt install tk8.6 (and mabye
tk8.6-blt2.5??)
your ubuntu python might pick it up but not the sage python.

So you should sudo apt install tk8.6-dev (and mabye tkblt-dev??)
and then rebuild the sage python as per the instructions at the link above.

tk packages in ubuntu 18.04:

https://packages.ubuntu.com/search?keywords=tk&searchon=
names&suite=bionic&section=all

Or perhaps there is someone else who can answer if one can tell Sage not
to try to use tk for
show(lines(... but to use another graphics toolkit.

Regards,
Jan
--
   .~.
   /V\     Jan Groenewald
  /( )\    www.aims.ac.za
  ^^-^^

--
You received this message because you are subscribed to a topic in the
Google Groups "sage-support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/
topic/sage-support/xbLE-tPJziI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.



--
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to