Code Monkey home page Code Monkey logo

Comments (5)

blink1073 avatar blink1073 commented on July 2, 2024

What operating system? It seems to be working for me on macOS 12.3.1 with packages installed from conda-forge, except for Octave, which I got from homebrew.

Python version: 3.10.4
opencv: 4.5.5
octave: 6.4.0

In [1]: import cv2
In [2]: import oct2py
In [3]: oc = oct2py.Oct2Py()
In [4]: oc.ones()
Out[4]: 1.0

from oct2py.

WiserOrb avatar WiserOrb commented on July 2, 2024

Ubuntu 22.04

from oct2py.

blink1073 avatar blink1073 commented on July 2, 2024

Are you getting an error of the form ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 80 from PyObject?

from oct2py.

WiserOrb avatar WiserOrb commented on July 2, 2024

No, I get an EOF exception

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/diego/.local/lib/python3.10/site-packages/oct2py/__init__.py", line 38, in <module>
    octave = Oct2Py()
  File "/home/diego/.local/lib/python3.10/site-packages/oct2py/core.py", line 83, in __init__
    self.restart()
  File "/home/diego/.local/lib/python3.10/site-packages/oct2py/core.py", line 533, in restart
    self._engine = OctaveEngine(stdin_handler=self._handle_stdin,
  File "/home/diego/.local/lib/python3.10/site-packages/octave_kernel/kernel.py", line 176, in __init__
    self.repl = self._create_repl()
  File "/home/diego/.local/lib/python3.10/site-packages/octave_kernel/kernel.py", line 402, in _create_repl
    repl = REPLWrapper(cmd, orig_prompt, change_prompt,
  File "/home/diego/.local/lib/python3.10/site-packages/metakernel/replwrap.py", line 88, in __init__
    self.set_prompt(prompt_regex,
  File "/home/diego/.local/lib/python3.10/site-packages/metakernel/replwrap.py", line 112, in set_prompt
    self.child.expect(prompt_regex)
  File "/usr/lib/python3/dist-packages/pexpect/spawnbase.py", line 343, in expect
    return self.expect_list(compiled_pattern_list,
  File "/usr/lib/python3/dist-packages/pexpect/spawnbase.py", line 372, in expect_list
    return exp.expect_loop(timeout)
  File "/usr/lib/python3/dist-packages/pexpect/expect.py", line 179, in expect_loop
    return self.eof(e)
  File "/usr/lib/python3/dist-packages/pexpect/expect.py", line 122, in eof
    raise exc
pexpect.exceptions.EOF: End Of File (EOF). Exception style platform.
<pexpect.pty_spawn.spawn object at 0x7f8be10fc820>
command: /usr/bin/octave
args: [b'/usr/bin/octave', b'--interactive', b'--quiet', b'--no-init-file']
buffer (last 100 chars): ''
before (last 100 chars): 'em.\r\n\r\nAvailable platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc.\r\n\r\n'
after: <class 'pexpect.exceptions.EOF'>
match: None
match_index: None
exitstatus: None
flag_eof: True
pid: 94481
child_fd: 6
closed: False
timeout: 30
delimiter: <class 'pexpect.exceptions.EOF'>
logfile: None
logfile_read: None
logfile_send: None
maxread: 2000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0.05
delayafterclose: 0.1
delayafterterminate: 0.1
searcher: searcher_re:
    0: re.compile('octave.*>')

from oct2py.

blink1073 avatar blink1073 commented on July 2, 2024

Ah, so the Octave process is crashing. I'm not quite sure what else to try.

from oct2py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.