Comments (13)
It looks like your problem is the fact that Travis runs on Ubuntu 12.04, which has older versions of numpy, scipy, and Octave. You could try using Miniconda in your Travis script to ensure an updated environment.
from oct2py.
Of course, you're still stick with an older Octave, but based on your errors it looks like Scipy specifically is the problem.
from oct2py.
There are two separate errors there. Scipy is not the issue. The code passes fine on this build:
https://travis-ci.org/csu-hmc/Gait-Analysis-Toolkit/builds/17098015
Except for oct2py. The tests run fine on my local machine running Ubuntu 13.10. I could install octave from a ppa for a later version. Do you think that the version of octave in 12.04 doesn't work with oct2py?
from oct2py.
This is an issue with old versions of Octave. Using the latest version everything passes:
https://travis-ci.org/csu-hmc/Gait-Analysis-Toolkit/builds/17109509
What's the oldest version that oct2py supports?
from oct2py.
Well, my goal is to target whichever version of Octave is available on the
LTS version of Ubuntu, which Travis conveniently uses. My test suite runs
fine, but looking at your code it looks like your call to octave.addpath
in motek.py
on line #886 is not working, since Octave cannot find the
script. I'll have to try running your code on Ubuntu 12.04 and see what I
can drum up.
On Thu, Jan 16, 2014 at 11:30 PM, Jason Moore [email protected]:
This is an issue with old versions of Octave. Using the latest version
everything passes:https://travis-ci.org/csu-hmc/Gait-Analysis-Toolkit/builds/17109509
What's the oldest version that oct2py supports?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/35#issuecomment-32581156
.
from oct2py.
Ok, let me know if you need some help debugging it.
from oct2py.
Okay, under Octave v3.2.4, the file inertial_compensation.m
kicks the following syntax error:
octave:1> type inertial_compensation
parse error near line 46 of file /home/localadmin/inertial_compensation.m
syntax error
>>> [directory_of_this_file, ~, ~] = fileparts(path_to_this_file);
^
parse error near line 46 of file /home/localadmin/inertial_compensation.m
syntax error
>>> [directory_of_this_file, ~, ~] = fileparts(path_to_this_file);
^
error: called from:
error: /usr/share/octave/3.2.4/m/help/type.m at line 56, column 7
So, the first problem is that your code does not run on the older version of Octave. The second problem is that my error message is not helpful. I will fix the latter.
from oct2py.
Fixed. In the next release the traceback would look like so:
>>> octave.inertial_compensation
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/localadmin/oct2py/oct2py/session.py", line 476, in __getattr__
doc = self._get_doc(name)
File "/home/localadmin/oct2py/oct2py/session.py", line 442, in _get_doc
exist = self._eval('exist {0}'.format(name), log=False, verbose=False)
File "/home/localadmin/oct2py/oct2py/session.py", line 395, in _eval
timeout=timeout)
File "/home/localadmin/oct2py/oct2py/session.py", line 660, in evaluate
self.handle_syntax_error(''.join(resp), main_line)
File "/home/localadmin/oct2py/oct2py/session.py", line 682, in handle_syntax_error
raise Oct2PyError(msg)
oct2py.utils.Oct2PyError: Oct2Py tried to run:
"""
exist inertial_compensation
"""
Octave returned Syntax Error:
""""
parse error near line 46 of file /home/localadmin/inertial_compensation.m syntax error>>> [directory_of_this_file, ~, ~] = fileparts(path_to_this_file); ^
"""
If using an m-file script, make sure it runs in Octave
from oct2py.
Awesome, didn't mean for you to have to debug my code. Thanks though, and the improvement on error propagation will be very helpful. I'll use my vagrant box for Ubuntu 12.04 for future testing so I don't plague you with my errors.
from oct2py.
Glad to help. I just released 1.3.0, so I'm calling this fixed. Cheers.
from oct2py.
I'm not sure what is going on here yet but my code now seems to hang on Travis with the latest version of Oct2py (1.3.0).
Build using Oct2py 1.3.0 times out everytime when running the test that uses a oct2py function:
https://travis-ci.org/csu-hmc/Gait-Analysis-Toolkit/builds/17291466
But runs fine using 1.2.0:
https://travis-ci.org/csu-hmc/Gait-Analysis-Toolkit/builds/17293387
This also hangs on my local machine (Ubuntu 13.10).
from oct2py.
It looks like all my changes to allow for keyboard
and pexpect
resulted in the call to leg2d.m
not terminating properly. I'll have to do some more digging...
from oct2py.
Okay, test_gait.py
runs fine against the latest master
branch on my machine. Can you please verify before I release 1.3.1?
from oct2py.
Related Issues (20)
- error: 'upfirdn' undefined near line 121, column 121 HOT 5
- Struct fieldnames that start with number are ignored HOT 1
- 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
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.