Opened 3 years ago

Last modified 3 years ago

#12734 new Bug Report - General

MythArchive in 'buntu 16.04 beta: AttributeError: 'Process' object has no attribute 'set_ionice'

Reported by: J.Pilk@… Owned by:
Priority: minor Milestone: unknown
Component: MythTV - General Version: 0.28.0
Severity: medium Keywords: psutil
Cc: Ticket locked: no

Description

Attempt to create dvd hangs on startup:

Setting process priority to 17
Setting ionice level to idle
Traceback (most recent call last):
  File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 5298, in <module>
    main()
  File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 5225, in main
    p.set_ionice(psutil.IOPRIO_CLASS_IDLE)
AttributeError: 'Process' object has no attribute 'set_ionice'

Probably something upstream. I didn't see this with 0.28-pre on other platforms. Easy near-workaround by commenting the line out.

Change History (1)

comment:1 Changed 3 years ago by J.Pilk@…

I've just found this ticket again, after encountering the same problem on another box. *buntu seems to have python-util 3.4.2-1, which I have installed, and also python3-psutil, but I see python --version 2.7.12. The documents I have seen don't suggest that the package I have is only for python3. but I also came across a recent report of 'psutil versioning weirdness' in 16.04

The 'easy near-workaround' above is likely to work properly for me, but only because I use a modified version of mythburn.py that prepends 'ionice -c3' to many of the io-intensive commands.

Note: See TracTickets for help on using tickets.