octave_kernel icon indicating copy to clipboard operation
octave_kernel copied to clipboard

EOF error while plotting on termux

Open DrNightingales opened this issue 5 years ago • 1 comments

I have Jupyter notebook installed on termux on my android device. My octave is installed from its-pointless repo for termux-packages, it has it's gui disabled. Gnuplot is installed as well. When I try using plot(); or figure(); or any other function related to plotting in jupyter-notebook with octave kernel I get this error:

End Of File (EOF). Exception style platform.
<pexpect.pty_spawn.spawn object at 0xb45f0e20>
command: /data/data/com.termux/files/usr/bin/octave-cli
args: [b'/data/data/com.termux/files/usr/bin/octave-cli', b'--interactive', b'--quiet', b'--no-init-file']
buffer (last 100 chars): ''
before (last 100 chars): 'nformation, please see http://openmp.llvm.org/\r\nfatal: caught signal Aborted -- stopping myself...\r\n'
after: <class 'pexpect.exceptions.EOF'>
match: None
match_index: None
exitstatus: None
flag_eof: True
pid: 19310
child_fd: 42
closed: False
timeout: 30
delimiter: <class 'pexpect.exceptions.EOF'>
logfile: None
logfile_read: None
logfile_send: None
maxread: 2000
ignorecase: False
searchwindowsize: None
delaybeforesend: None
delayafterclose: 0.1
delayafterterminate: 0.1
searcher: searcher_re:
    0: re.compile('PEXPECT_PROMPT>')
    1: re.compile('PEXPECT_PROMPT_')
    2: re.compile('\\A.+?__stdin_prompt>|debug> ')

P.S. I can plot in octave by launching vncserver, which will launch an instance of XFCE DE on x11. With vncserver on I can run octave from terminal emulator, where using plot function will open a gnuplot window. Screenshot_20201111-230614

DrNightingales avatar Nov 11 '20 20:11 DrNightingales

Interesting environment!

It looks like octave is failing. Searching for "caught signal Aborted -- stopping myself" might give some hints.

dsblank avatar Nov 11 '20 21:11 dsblank