Skip to content

headless broken in 0.4.0 #181

Description

@bdale

As I work on adding an autopkgtest for the Debian package, I'm having trouble making headless mode work. I tried to just use one of the existing test motor definitions, and it fails like so:

bdale@rover:~$ openmotor -h debian/openmotor/test/data/real/o3100/motor.ric
/usr/lib/python3/dist-packages/motorlib/nozzle.py:48: RuntimeWarning: invalid value encountered in true_divide
return fsolve(lambda x: (1/self.calcExpansion()) - eRatioFromPRatio(k, x / inputPressure), 0)[0]
/usr/lib/python3/dist-packages/motorlib/nozzle.py:48: RuntimeWarning: divide by zero encountered in true_divide
return fsolve(lambda x: (1/self.calcExpansion()) - eRatioFromPRatio(k, x / inputPressure), 0)[0]
/usr/lib/python3/dist-packages/motorlib/nozzle.py:13: RuntimeWarning: invalid value encountered in sqrt
return (((k+1)/2)(1/(k-1))) * (pRatio ** (1/k)) * ((((k+1)/(k-1))*(1-(pRatio((k-1)/k))))**0.5)
/usr/lib/python3/dist-packages/scipy/optimize/minpack.py:175: RuntimeWarning: The iteration is not making good progress, as measured by the
improvement from the last ten iterations.
warnings.warn(msg, RuntimeWarning)
Traceback (most recent call last):
File "/usr/bin/openmotor", line 33, in
sys.exit(load_entry_point('openMotor==0.4.0', 'gui_scripts', 'openmotor')())
File "/usr/lib/python3/dist-packages/openmotor/main.py", line 15, in main
app = App(sys.argv)
File "/usr/lib/python3/dist-packages/openmotor/app.py", line 48, in init
print(motorlib.alertLevelNames[alert.level] + '(' + motorlib.alertTypeNames[alert.type] + ', ' + alert.location + '): ' + alert.description)
AttributeError: module 'motorlib' has no attribute 'alertLevelNames'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions