Ask Your Question
1

Process Sage illegal instruction: 4 [closed]

asked 2018-11-01 01:50:54 -0600

anonymous user

Anonymous

If this is a known bug, I've not been able to find a solution. Please advice.

I get this error:

Process Sage illegal instruction: 4

when I run this code:

from matplotlib import rc
g=Graph({1:[2,3], 2:[1,3], 3:[1,2]});
latex(g.plot(figsize=[2,2],vertex_size=450,layout='spring',color_by_label=True));

It used to run. This is not new code. The versions I'm running are:

Mac OS X El Capitan 10.11.6 (15G22010)

XCode Version 8.0 (8A218a)

SageMath version 8.3, Release Date: 2018-08-03

GNU Emacs 27.0.50 (build 1, x86_64-apple-darwin15.6.0, NS appkit-1404.47 Version 10.11.6 (Build 15G22010))

ob-sagemath 0.4

sage-shell-mode 0.3

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by ufopp
close date 2018-11-05 14:39:18.758336

Comments

Have you updated your OS, your version of Xcode, anything like that? Maybe those could interfere with an existing Sage installation.

John Palmieri gravatar imageJohn Palmieri ( 2018-11-02 16:04:35 -0600 )edit

No, other than normal secutiry updates I've not upgraded XCcode or the OS.

ufopp gravatar imageufopp ( 2018-11-05 02:11:45 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2018-11-05 14:33:33 -0600

ufopp gravatar image

updated 2018-11-05 14:36:40 -0600

The problem was traced to a misspelling, "sagemth" instead of "sagemath" in two places in ob-sagemath.el file. The best way to solve this problem is to re-install ob-sagemath package in Emacs from melpa repository instead of melpa-stable repository. Don't know when the corrected version will propogate to melpa-stable. Both versions are marked 0.4, so normal package update can't tell which repository has the most recent version.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-11-01 01:50:54 -0600

Seen: 65 times

Last updated: Nov 05