Code Monkey home page Code Monkey logo

Comments (13)

blink1073 avatar blink1073 commented on July 19, 2024

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.

blink1073 avatar blink1073 commented on July 19, 2024

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.

moorepants avatar moorepants commented on July 19, 2024

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.

moorepants avatar moorepants commented on July 19, 2024

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.

blink1073 avatar blink1073 commented on July 19, 2024

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.

moorepants avatar moorepants commented on July 19, 2024

Ok, let me know if you need some help debugging it.

from oct2py.

blink1073 avatar blink1073 commented on July 19, 2024

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.

blink1073 avatar blink1073 commented on July 19, 2024

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.

moorepants avatar moorepants commented on July 19, 2024

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.

blink1073 avatar blink1073 commented on July 19, 2024

Glad to help. I just released 1.3.0, so I'm calling this fixed. Cheers.

from oct2py.

moorepants avatar moorepants commented on July 19, 2024

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.

blink1073 avatar blink1073 commented on July 19, 2024

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.

blink1073 avatar blink1073 commented on July 19, 2024

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)

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.