Calysto / octave_kernel

An Octave kernel for IPython
BSD 3-Clause "New" or "Revised" License
453 stars 66 forks source link

EOF error while plotting on termux #180

Open DrNightingales opened 4 years ago

DrNightingales commented 4 years ago

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

dsblank commented 4 years ago

Interesting environment!

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