find_orphans script won't run [Solved]

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
MBEeng
Newcomer
Posts: 11
Joined: Wed Aug 30, 2017 10:21 pm
United States of America

find_orphans script won't run [Solved]

Post by MBEeng »

I have a system running MythBuntu (MythTV 0.28 on Ubuntu 14.04 LTS).

I have used the find_orphans.py script many times in the past, and it ran with no problems. However it no longer runs. This started sometime last year.
The error message (below) seems to indicate that a module named builtins is missing from MythTV. If that interpretation is correct, how can I restore the missing module, and where should it go? If that isn’t the problem, what do I need to do?


Error message:

Traceback (most recent call last):
File "./Find_orphans.py", line 3, in <module>
from MythTV import MythDB, MythBE, Recorded, MythError
File "/usr/lib/python2.7/dist-packages/MythTV/__init__.py", line 36, in <module>
from .utility import *
File "/usr/lib/python2.7/dist-packages/MythTV/utility/__init__.py", line 2, in <module>
from .enum import EnumValue, Enum, BitwiseEnum
File "/usr/lib/python2.7/dist-packages/MythTV/utility/enum.py", line 9, in <module>
from builtins import int
ImportError: No module named builtins
User avatar
dizygotheca
Developer
Posts: 267
Joined: Wed Sep 03, 2014 9:02 am
Great Britain

Re: find_orphans script won't run

Post by dizygotheca »

Try
https://askubuntu.com/questions/697226/ ... d-builtins

Code: Select all

$ sudo apt-get install pip
$ sudo pip install future
or use the 16.04 package
https://lists.gt.net/mythtv/users/611123#611123
MBEeng
Newcomer
Posts: 11
Joined: Wed Aug 30, 2017 10:21 pm
United States of America

Re: find_orphans script won't run

Post by MBEeng »

Installing future fixed the problem. find_orphans.py runs normally now.

For the record, I had to install pip-python, not pip:

$ sudo apt-get install pip-python
$ sudo pip install future
Post Reply