On Sat, Aug 31, 2019 at 04:47:42PM -0400, Sandro Tosi wrote: > burrito.util.ApplicationError: Could not open "/tmp/fixed.txt" > > is the file there?
No, that file does not exist. $ grep -R /tmp/fixed.txt burrito/tests/test_util.py:f = open('/tmp/fixed.txt','w') burrito/tests/test_util.py: result['fixed_file'] = ResultPath(Path='/tmp/fixed.txt') burrito/tests/test_util.py: result['fixed_file'] = ResultPath(Path='/tmp/fixed.txt') The code snippet that should create the file is ... #generate some stderr print('I am stderr', file=stderr) # Write the fixed file f = open('/tmp/fixed.txt','w') f.writelines(['I am fixed file']) f.close() ... I have no idea why it might fail. Kind regards Andreas. > > ... > > ====================================================================== > > ERROR: CLAppTester: Alternative TmpDir functions as expected > > ---------------------------------------------------------------------- > > Traceback (most recent call last): > > File > > "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", > > line 304, in __call__ > > result_paths) > > File > > "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", > > line 330, in _handle_app_result_build_failure > > raise ApplicationError("Error constructing CommandLineAppResult.") > > burrito.util.ApplicationError: Error constructing CommandLineAppResult. > > > > During handling of the above exception, another exception occurred: > > > > Traceback (most recent call last): > > File > > "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/tests/test_util.py", > > line 769, in test_TmpDir > > result = app() > > File > > "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", > > line 308, in __call__ > > raise e1 > > File > > "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", > > line 299, in __call__ > > result_paths=result_paths) > > File > > "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", > > line 104, in __init__ > > raise ApplicationError('Could not open %s' % value.Path) > > burrito.util.ApplicationError: Could not open "/tmp/fixed.txt" > > > > ====================================================================== > > ERROR: CLAppTester: TmpDir functions as expected w space in name > > ---------------------------------------------------------------------- > > Traceback (most recent call last): > > File > > "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", > > line 304, in __call__ > > result_paths) > > File > > "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", > > line 330, in _handle_app_result_build_failure > > raise ApplicationError("Error constructing CommandLineAppResult.") > > burrito.util.ApplicationError: Error constructing CommandLineAppResult. > > > > During handling of the above exception, another exception occurred: > > > > Traceback (most recent call last): > > File > > "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/tests/test_util.py", > > line 797, in test_TmpDir_w_space > > result = app() > > File > > "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", > > line 308, in __call__ > > raise e1 > > File > > "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", > > line 299, in __call__ > > result_paths=result_paths) > > File > > "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", > > line 104, in __init__ > > raise ApplicationError('Could not open %s' % value.Path) > > burrito.util.ApplicationError: Could not open "/tmp/fixed.txt" > > > > ====================================================================== > > ERROR: CLAppTester: WorkingDir functions as expected > > ---------------------------------------------------------------------- > > ... > > ====================================================================== > > ERROR: CLAppTester: parameters turned on, no data, space in command > > ---------------------------------------------------------------------- > > Traceback (most recent call last): > > File > > "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", > > line 304, in __call__ > > result_paths) > > File > > "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", > > line 330, in _handle_app_result_build_failure > > raise ApplicationError("Error constructing CommandLineAppResult.") > > burrito.util.ApplicationError: Error constructing CommandLineAppResult. > > > > During handling of the above exception, another exception occurred: > > > > Traceback (most recent call last): > > File > > "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/tests/test_util. > > result = app() > > File > > "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", > > line 3 > > raise e1 > > File > > "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", > > line 2 > > result_paths=result_paths) > > File > > "/build/python-burrito-0.9.1/.pybuild/cpython3_3.7_burrito/build/burrito/util.py", > > line 1 > > raise ApplicationError('Could not open %s' % value.Path) > > burrito.util.ApplicationError: Could not open "/tmp/fixed.txt" > > > > ---------------------------------------------------------------------- > > Ran 116 tests in 1.323s > > > > FAILED (errors=12) > > E: pybuild pybuild:341: test: plugin distutils failed with: exit code=1: cd > > /build/python-burrit > > dh_auto_test: pybuild --test --test-nose -i python{version} -p 3.7 returned > > exit code 13 > > make: *** [debian/rules:10: build] Error 255 > > > > > > I admit I have no idea why these 12 errors will occure. > > > > Any hint how to fix this? > > > > Kind regards > > > > Andreas. > > > > -- > > http://fam-tille.de > > > > > -- > Sandro "morph" Tosi > My website: http://sandrotosi.me/ > Me at Debian: http://wiki.debian.org/SandroTosi > G+: https://plus.google.com/u/0/+SandroTosi > -- http://fam-tille.de