Failed
gpkit.tests.from_paths.TestFiles.test_SPaircraft_py_mosek (from gpkit.tests.from_paths.TestFiles-20190815143229)
Failing for the past 1 build
(Since Failed
)
Error Message
Cannot compare Quantity and <type 'float'>
Stacktrace
Traceback (most recent call last): File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkit\gpkit\tests\helpers.py", line 64, in test testfn(name, import_dict, path)(self) File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkit\gpkit\tests\from_paths.py", line 51, in <lambda> lambda self: getattr(self, name)())) # pylint:disable=undefined-variable File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkit\gpkit\tests\from_paths.py", line 37, in test_fn mod = __import__(os.path.basename(path)[:-3]) File "SPaircraft.py", line 94, in <module> sol = test() File "SPaircraft.py", line 76, in test print m File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkit\gpkit\repr_conventions.py", line 167, in __str__ return self.str_without() # pylint: disable=no-member File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkit\gpkit\constraints\set.py", line 319, in str_without return "\n".join(self.lines_without(excluded)) File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkit\gpkit\constraints\set.py", line 294, in lines_without clines = try_str_without(constraint, excluded).split("\n") File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkit\gpkit\small_scripts.py", line 37, in try_str_without return item.str_without(excluded) File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkit\gpkit\constraints\set.py", line 319, in str_without return "\n".join(self.lines_without(excluded)) File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkit\gpkit\constraints\set.py", line 294, in lines_without clines = try_str_without(constraint, excluded).split("\n") File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkit\gpkit\small_scripts.py", line 37, in try_str_without return item.str_without(excluded) File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkit\gpkit\constraints\set.py", line 319, in str_without return "\n".join(self.lines_without(excluded)) File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkit\gpkit\constraints\set.py", line 294, in lines_without clines = try_str_without(constraint, excluded).split("\n") File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkit\gpkit\small_scripts.py", line 37, in try_str_without return item.str_without(excluded) File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkit\gpkit\constraints\set.py", line 319, in str_without return "\n".join(self.lines_without(excluded)) File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkit\gpkit\constraints\set.py", line 294, in lines_without clines = try_str_without(constraint, excluded).split("\n") File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkit\gpkit\small_scripts.py", line 37, in try_str_without return item.str_without(excluded) File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkit\gpkit\constraints\single_equation.py", line 20, in str_without try_str_without(self.right, excluded)) File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkit\gpkit\small_scripts.py", line 37, in try_str_without return item.str_without(excluded) File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkit\gpkit\nomials\core.py", line 19, in str_without return self.parse_ast(excluded) + units File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkit\gpkit\repr_conventions.py", line 106, in parse_ast right = parenthesize(strify(values[1], excluded)) File "d:\jenkins\workspace\gplibrary_pr_models\mosek\gpkit\gpkit\repr_conventions.py", line 42, in strify if (val > np.pi/12 and val < 100*np.pi # within bounds? File "D:\Anaconda2\lib\site-packages\pint\quantity.py", line 1203, in <lambda> __gt__ = lambda self, other: self.compare(other, op=operator.gt) File "D:\Anaconda2\lib\site-packages\pint\quantity.py", line 75, in wrapped result = f(self, *args, **kwargs) File "D:\Anaconda2\lib\site-packages\pint\quantity.py", line 1190, in compare raise ValueError('Cannot compare Quantity and {}'.format(type(other))) ValueError: Cannot compare Quantity and <type 'float'>