Code Monkey home page Code Monkey logo

Comments (8)

blink1073 avatar blink1073 commented on July 19, 2024

Hi @KainoaCulverhouse, unfortunately the default behavior for the new Octave has changed (loading a GUI), and I have not yet figured out a backwards-compatible way of handling it. In the meantime, you can point to the new octave-cli program using from oct2py import Oct2Py; octave = Oct2Py(executable=<path_to_octave_cli_executable>).

from oct2py.

KainoaCulverhouse avatar KainoaCulverhouse commented on July 19, 2024

Hello @blink1073, thank you for the reply I appreciate it. I followed your instructions and resulted in the following error:

from oct2py import Oct2Py
octave = Oct2Py(executable='/usr/bin/octave-cli-4.0.0')
octave.ones(3)
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.6/site-packages/oct2py/core.py", line 592, in getattr
doc = self._get_doc(name)
File "/usr/lib/python2.6/site-packages/oct2py/core.py", line 553, in _get_doc
verbose=False)
File "/usr/lib/python2.6/site-packages/oct2py/core.py", line 284, in eval
post_call=post_call)
File "/usr/lib/python2.6/site-packages/oct2py/core.py", line 729, in evaluate
self._handle_first_run()
File "/usr/lib/python2.6/site-packages/oct2py/core.py", line 827, in _handle_first_run
subprocess.check_output('which gnuplot', shell=True)
AttributeError: 'module' object has no attribute 'check_output'

Any suggestions on how I can evaluate these feedback messages and how I can mitigate them?

Many Thanks,

from oct2py.

blink1073 avatar blink1073 commented on July 19, 2024

Ah, sorry, I missed the fact that you were using python2.6. I no longer support Python 2.6, because it lacks too many features I've come to rely on, including subprocess.check_output. Do you have the ability to install the Software Collections Library on your system?

http://wiki.centos.org/AdditionalResources/Repositories/SCL

from oct2py.

KainoaCulverhouse avatar KainoaCulverhouse commented on July 19, 2024

Hi @blink1073, thank you for the response I appreciate it.

from oct2py.

KainoaCulverhouse avatar KainoaCulverhouse commented on July 19, 2024

Hi @blink1073, thank you for the response I appreciate it.

from oct2py.

KainoaCulverhouse avatar KainoaCulverhouse commented on July 19, 2024

I installed the library.

I have previously installed the 'pip' package to install the oct2py package. However, the packages seam to only be associated with python2.6, would you have any recommendations how I can go about having oct2py 'point to' or communicate with python3.3 rather than python2.6?

from oct2py.

KainoaCulverhouse avatar KainoaCulverhouse commented on July 19, 2024

Nevermind. I figured it out and have python2.7 calling functions from octave using the first step you suggested.

Appreciate the help.

from oct2py.

blink1073 avatar blink1073 commented on July 19, 2024

No problem!

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.