BrewPi/brewpi-script

BrewPiProcess.py 108 TypeError: 'instancemethod' object is not iterable

john-prowse opened this issue · 0 comments

Attempting to run BrewPi in arch on raspberry, I am not sure if the versions of libraries are different for the intended target distribution & arch. I am getting some errors after manually installing dependencies.

BrewPiProcess.py", line 108, in update
matching = [p for p in psutil.process_iter() if any('python' in p.name and 'brewpi.py'in s for s in p.cmdline)]
TypeError: 'instancemethod' object is not iterable

Can easily be fixed if changed as below, not sure if it will break other distributions. (Going to assemble my shield kit over next few days so should be able to test further on this distribution)

108c108

< matching = [p for p in psutil.process_iter() if any('python' in p.name() and 'brewpi.py'in s for s in p.cmdline())]

    matching = [p for p in psutil.process_iter() if any('python' in p.name and 'brewpi.py'in s for s in p.cmdline)]

124c124

< cfg = [s for s in process.cmdline() if '.cfg' in s] # get config file argument

    cfg = [s for s in process.cmdline if '.cfg' in s]  # get config file argument

Thanks,

John