Comments (8)
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.
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.
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.
Hi @blink1073, thank you for the response I appreciate it.
from oct2py.
Hi @blink1073, thank you for the response I appreciate it.
from oct2py.
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.
Nevermind. I figured it out and have python2.7 calling functions from octave using the first step you suggested.
Appreciate the help.
from oct2py.
No problem!
from oct2py.
Related Issues (20)
- Bug: PULL-PUSH-PULL 1D Column vector will convert into 1D Row Vector HOT 4
- push will push Cell HOT 2
- [Question] Properly end session HOT 4
- Using `system ("cat ~/.octaverc")` on Winows HOT 2
- initialization: graphics_toolkit: 2004h toolkit is not available HOT 5
- Run doesn't create new variables in the octave environment HOT 3
- Conflict with opencv HOT 5
- bracketed paste \x1b[?2004h issue HOT 3
- Memory Leak HOT 1
- Problem with calling function; too many outputs HOT 1
- When I use python multiprocessing to open multiple octave displays a timeou HOT 1
- Problem with matlab package folders?
- Thread pool executor leaves ghost-threads that fill up memory
- Calling function script takes 1.5 seconds HOT 1
- error: 'graphics_toolkit' undefined
- Error trying to import octave in Anaconda Spyder using "from oct2py import octave" HOT 8
- _exist function not removing special characters from response HOT 2
- Error on testing
- oc.exit() should kill octave-gui + --no-gui option HOT 11
- Any command on jupyter print `[?2004l` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oct2py.