[Dune-devel] Python tests fail but changes are unrelated

Christoph Grüninger foss at grueninger.de
Sun Feb 20 17:01:31 CET 2022


Hi Simon,
hi Andreas,

thanks for your feedback! I opened an issue in dune-common, to have one 
place to discuss.

https://gitlab.dune-project.org/core/dune-common/-/issues/295

The bug Andreas dug out looks promising.

Bye
Christoph


Am 20.02.22 um 12:53 schrieb Simon Praetorius:
> I got the same error in dune-functions, also unrelated to any python 
> changes. And I have no idea how to debug this.
> 
> Am 20.02.22 um 08:25 schrieb Christoph Grüninger:
>> Hi Dune developers,
>> I added a commit to dune-grid!571, that adds mostly comments and one 
>> deprecation warning. But after the commit Python tests are falling, 
>> see one example attached. What did I do? What should I do?
>>
>> Thanks
>> Christoph
>>
>> DUNE-INFO: Compiling HierarchicalGrid (new)
>> Traceback (most recent call last):
>>   File "test_gf1.py", line 56, in <module>
>>     gridView = structuredGrid([0,0],[1,1],[10,10])
>>   File "/builds/core/dune-grid/build-cmake/python/dune/grid/core.py", 
>> line 52, in structuredGrid
>>     return yaspGrid(domain, dimgrid=len(lower))
>>   File 
>> "/builds/core/dune-grid/build-cmake/python/dune/grid/_grids.py", line 
>> 38, in yaspGrid
>>     gridModule = module(includes, typeName, ctor)
>>   File 
>> "/builds/core/dune-grid/build-cmake/python/dune/grid/grid_generator.py", 
>> line 348, in module
>>     module = generator.load(includes, typeName, typeHash, *args, 
>> **kwargs)
>>   File 
>> "/duneci/modules/dune-common/build-cmake/python/dune/generator/generator.py", 
>> line 169, in load
>>     return self.post(moduleName, source, postscript, extraCMake)
>>   File 
>> "/duneci/modules/dune-common/build-cmake/python/dune/generator/generator.py", 
>> line 121, in post
>>     module = builder.load(moduleName, source, self.typeName[0], 
>> extraCMake)
>>   File 
>> "/duneci/modules/dune-common/build-cmake/python/dune/generator/cmakebuilder.py", 
>> line 341, in load
>>     self.compile(infoTxt=PrintCompiling, target=moduleName)
>>   File 
>> "/duneci/modules/dune-common/build-cmake/python/dune/generator/cmakebuilder.py", 
>> line 237, in compile
>>     logLevel=logging.INFO
>>   File 
>> "/duneci/modules/dune-common/build-cmake/python/dune/generator/cmakebuilder.py", 
>> line 215, in callCMake
>>     _, stderr = cmake.communicate()
>>   File "/usr/lib/python3.7/subprocess.py", line 939, in communicate
>>     stdout, stderr = self._communicate(input, endtime, timeout)
>>   File "/usr/lib/python3.7/subprocess.py", line 1672, in _communicate
>>     selector.register(self.stdout, selectors.EVENT_READ)
>>   File "/usr/lib/python3.7/selectors.py", line 352, in register
>>     key = super().register(fileobj, events, data)
>>   File "/usr/lib/python3.7/selectors.py", line 238, in register
>>     key = SelectorKey(fileobj, self._fileobj_lookup(fileobj), events, 
>> data)
>>   File "/usr/lib/python3.7/selectors.py", line 225, in _fileobj_lookup
>>     return _fileobj_to_fd(fileobj)
>>   File "/usr/lib/python3.7/selectors.py", line 40, in _fileobj_to_fd
>>     "{!r}".format(fileobj)) from None
>> ValueError: Invalid file object: <_io.BufferedReader name=20>
>>
>> _______________________________________________
>> Dune-devel mailing list
>> Dune-devel at lists.dune-project.org
>> https://lists.dune-project.org/mailman/listinfo/dune-devel
> 

-- 
Because apparently, even the invisible hand [of the market] doesn’t
want to pick beans.         -- Stephen Colbert to US Congress, 2011



More information about the Dune-devel mailing list