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§ion=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§ion=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 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.