Octave gives the error unable to open X11 Display, when trying to plot graphs
When attempting to plot graphs in python 2.7 using matplotlib or Octave the program stalls and needs to be closed. Octave gives the following errors on startup:
No protocol specified octave: unable to open X11 DISPLAY octave: disabling GUI features No protocol specified
If I run plot(x,y) the program stalls and on pressing Ctrl-C the following appears.
gnuplot: unable to open display ':0' gnuplot: X11 aborted.
I have tried many online suggestions such as setting X11Forwarding to yes (which it already was), and running startx which leaves me with a blank screen with a cross cursor and changing DISPLAY to numerous things, among others.
UPDATE: When I run xinit I get the following:
(EE) Fatal server error: (EE) Server is already active for display 0 If this server is no longer running, remove /tmp/.X0-lock and start again. (EE) (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. (EE) XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0" after 7 requests (7 known processed) with 0 events remaining.
Not sure why I would need this or if it helps. Also in octave if I run 'setenv("DISPLAY")' then try to run a plot it still stalls but on canceling the terminal shows a blank screen with the forward, back and quit commands.
This is a new system and haven't had these problems with octave or python before.
OS: Ubuntu 16.10 Processor: AMD A10-8700P Radeon R6
xorg 16.10 amd-graphics plot
add a comment |
When attempting to plot graphs in python 2.7 using matplotlib or Octave the program stalls and needs to be closed. Octave gives the following errors on startup:
No protocol specified octave: unable to open X11 DISPLAY octave: disabling GUI features No protocol specified
If I run plot(x,y) the program stalls and on pressing Ctrl-C the following appears.
gnuplot: unable to open display ':0' gnuplot: X11 aborted.
I have tried many online suggestions such as setting X11Forwarding to yes (which it already was), and running startx which leaves me with a blank screen with a cross cursor and changing DISPLAY to numerous things, among others.
UPDATE: When I run xinit I get the following:
(EE) Fatal server error: (EE) Server is already active for display 0 If this server is no longer running, remove /tmp/.X0-lock and start again. (EE) (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. (EE) XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0" after 7 requests (7 known processed) with 0 events remaining.
Not sure why I would need this or if it helps. Also in octave if I run 'setenv("DISPLAY")' then try to run a plot it still stalls but on canceling the terminal shows a blank screen with the forward, back and quit commands.
This is a new system and haven't had these problems with octave or python before.
OS: Ubuntu 16.10 Processor: AMD A10-8700P Radeon R6
xorg 16.10 amd-graphics plot
So... you are running this remotely, via SSH? What is the local system? what X server is running on it? what SSH client are you using and is it configured for X11 forwarding (e.g.ssh -X
)?
– steeldriver
Jan 15 '17 at 20:14
I'm running this locally on my machine, I'm not trying to use any ssh client. The xserver is xorg I believe. All I did was install octave as I normally would and on running this error occurs.
– John Nathan
Jan 15 '17 at 20:53
OK in that case I'm confused why X11Forwarding would come into the picture at all? You are not trying to run it as root (e.g.sudo octave
) or from a CLI virtual terminal? is the display variable set in your session (echo $DISPLAY
)? andoctave
was installed from the repository?
– steeldriver
Jan 15 '17 at 22:14
add a comment |
When attempting to plot graphs in python 2.7 using matplotlib or Octave the program stalls and needs to be closed. Octave gives the following errors on startup:
No protocol specified octave: unable to open X11 DISPLAY octave: disabling GUI features No protocol specified
If I run plot(x,y) the program stalls and on pressing Ctrl-C the following appears.
gnuplot: unable to open display ':0' gnuplot: X11 aborted.
I have tried many online suggestions such as setting X11Forwarding to yes (which it already was), and running startx which leaves me with a blank screen with a cross cursor and changing DISPLAY to numerous things, among others.
UPDATE: When I run xinit I get the following:
(EE) Fatal server error: (EE) Server is already active for display 0 If this server is no longer running, remove /tmp/.X0-lock and start again. (EE) (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. (EE) XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0" after 7 requests (7 known processed) with 0 events remaining.
Not sure why I would need this or if it helps. Also in octave if I run 'setenv("DISPLAY")' then try to run a plot it still stalls but on canceling the terminal shows a blank screen with the forward, back and quit commands.
This is a new system and haven't had these problems with octave or python before.
OS: Ubuntu 16.10 Processor: AMD A10-8700P Radeon R6
xorg 16.10 amd-graphics plot
When attempting to plot graphs in python 2.7 using matplotlib or Octave the program stalls and needs to be closed. Octave gives the following errors on startup:
No protocol specified octave: unable to open X11 DISPLAY octave: disabling GUI features No protocol specified
If I run plot(x,y) the program stalls and on pressing Ctrl-C the following appears.
gnuplot: unable to open display ':0' gnuplot: X11 aborted.
I have tried many online suggestions such as setting X11Forwarding to yes (which it already was), and running startx which leaves me with a blank screen with a cross cursor and changing DISPLAY to numerous things, among others.
UPDATE: When I run xinit I get the following:
(EE) Fatal server error: (EE) Server is already active for display 0 If this server is no longer running, remove /tmp/.X0-lock and start again. (EE) (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. (EE) XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0" after 7 requests (7 known processed) with 0 events remaining.
Not sure why I would need this or if it helps. Also in octave if I run 'setenv("DISPLAY")' then try to run a plot it still stalls but on canceling the terminal shows a blank screen with the forward, back and quit commands.
This is a new system and haven't had these problems with octave or python before.
OS: Ubuntu 16.10 Processor: AMD A10-8700P Radeon R6
xorg 16.10 amd-graphics plot
xorg 16.10 amd-graphics plot
edited Dec 9 '18 at 8:38
karel
57.8k12128146
57.8k12128146
asked Jan 15 '17 at 19:15
John NathanJohn Nathan
11
11
So... you are running this remotely, via SSH? What is the local system? what X server is running on it? what SSH client are you using and is it configured for X11 forwarding (e.g.ssh -X
)?
– steeldriver
Jan 15 '17 at 20:14
I'm running this locally on my machine, I'm not trying to use any ssh client. The xserver is xorg I believe. All I did was install octave as I normally would and on running this error occurs.
– John Nathan
Jan 15 '17 at 20:53
OK in that case I'm confused why X11Forwarding would come into the picture at all? You are not trying to run it as root (e.g.sudo octave
) or from a CLI virtual terminal? is the display variable set in your session (echo $DISPLAY
)? andoctave
was installed from the repository?
– steeldriver
Jan 15 '17 at 22:14
add a comment |
So... you are running this remotely, via SSH? What is the local system? what X server is running on it? what SSH client are you using and is it configured for X11 forwarding (e.g.ssh -X
)?
– steeldriver
Jan 15 '17 at 20:14
I'm running this locally on my machine, I'm not trying to use any ssh client. The xserver is xorg I believe. All I did was install octave as I normally would and on running this error occurs.
– John Nathan
Jan 15 '17 at 20:53
OK in that case I'm confused why X11Forwarding would come into the picture at all? You are not trying to run it as root (e.g.sudo octave
) or from a CLI virtual terminal? is the display variable set in your session (echo $DISPLAY
)? andoctave
was installed from the repository?
– steeldriver
Jan 15 '17 at 22:14
So... you are running this remotely, via SSH? What is the local system? what X server is running on it? what SSH client are you using and is it configured for X11 forwarding (e.g.
ssh -X
)?– steeldriver
Jan 15 '17 at 20:14
So... you are running this remotely, via SSH? What is the local system? what X server is running on it? what SSH client are you using and is it configured for X11 forwarding (e.g.
ssh -X
)?– steeldriver
Jan 15 '17 at 20:14
I'm running this locally on my machine, I'm not trying to use any ssh client. The xserver is xorg I believe. All I did was install octave as I normally would and on running this error occurs.
– John Nathan
Jan 15 '17 at 20:53
I'm running this locally on my machine, I'm not trying to use any ssh client. The xserver is xorg I believe. All I did was install octave as I normally would and on running this error occurs.
– John Nathan
Jan 15 '17 at 20:53
OK in that case I'm confused why X11Forwarding would come into the picture at all? You are not trying to run it as root (e.g.
sudo octave
) or from a CLI virtual terminal? is the display variable set in your session (echo $DISPLAY
)? and octave
was installed from the repository?– steeldriver
Jan 15 '17 at 22:14
OK in that case I'm confused why X11Forwarding would come into the picture at all? You are not trying to run it as root (e.g.
sudo octave
) or from a CLI virtual terminal? is the display variable set in your session (echo $DISPLAY
)? and octave
was installed from the repository?– steeldriver
Jan 15 '17 at 22:14
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f872301%2foctave-gives-the-error-unable-to-open-x11-display-when-trying-to-plot-graphs%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f872301%2foctave-gives-the-error-unable-to-open-x11-display-when-trying-to-plot-graphs%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
So... you are running this remotely, via SSH? What is the local system? what X server is running on it? what SSH client are you using and is it configured for X11 forwarding (e.g.
ssh -X
)?– steeldriver
Jan 15 '17 at 20:14
I'm running this locally on my machine, I'm not trying to use any ssh client. The xserver is xorg I believe. All I did was install octave as I normally would and on running this error occurs.
– John Nathan
Jan 15 '17 at 20:53
OK in that case I'm confused why X11Forwarding would come into the picture at all? You are not trying to run it as root (e.g.
sudo octave
) or from a CLI virtual terminal? is the display variable set in your session (echo $DISPLAY
)? andoctave
was installed from the repository?– steeldriver
Jan 15 '17 at 22:14