[mythtv-users] Problem deleting recordings with find_orphans.py NameError: global name 'NoneType' is not defined
Eric Sharkey
eric at lisaneric.org
Fri Aug 26 18:16:11 UTC 2011
On Fri, Aug 26, 2011 at 1:37 PM, Raymond Wagner <raymond at wagnerrp.com> wrote:
> > Do I need to file a ticket for that, or will you just fix that part?
>
> I fixed both that, and the incorrect reference to 'self' yesterday.
The version of find_orphans.py on the wiki right now still fails for
me. I think you also need to change self to rec on the two lines
following the one line you just changed. If I do that, then I no
longer get the traceback.
What I get now really surprises me. After the deletion failure, it
seems to think that nearly every recording has a missing file:
Please select from the following
1. Delete orphaned recording entries
2. Delete zero byte recordings
3. Delete orphaned video files
4. Delete orphaned snapshots
5. Delete other files
6. Refresh list
> 1
The following recordings will be deleted
mythtered: Between the Lions - Deep in the Swamp; Trosclair and the
Alligator 7736_20110822053000.mpg
mythtered: Between the Lions - Pigs, Pigs, Pigs!; The Three Little
Pigs 7736_20110824053000.mpg
mythtered: Between the Lions - Pigs, Pigs, Pigs!; The Three Little
Pigs 6024_20110823143000.mpg
mythtered: Between the Lions - Bugs & Beetle Bop
6024_20110824143000.mpg
mythtered: Blue's Clues - Numbers Everywhere!
6256_20110822193000.mpg
mythtered: Bob the Builder
4263_20110728084300.mpg
mythtered: Bob the Builder
4263_20110819084300.mpg
mythtered: Bob the Builder - Being Your Best
6024_20110821060000.mpg
mythtered: Bob the Builder
4263_20110819171100.mpg
mythtered: Bob the Builder
4263_20110718084300.mpg
mythtered: Bob the Builder - Lofty Saves the Day
5521_20110819120000.mpg
mythtered: Bob the Builder
4263_20110727084300.mpg
mythtered: Bob the Builder
4263_20110801171100.mpg
mythtered: Bob the Builder
4263_20110706171100.mpg
mythtered: Bob the Builder
4263_20110718162700.mpg
mythtered: Bob the Builder
4263_20110811171100.mpg
mythtered: Bob the Builder
4263_20110810171100.mpg
mythtered: Challenge - Extreme Dinosaur Cakes
6164_20110822030000.mpg
[.. lots more ..]
mythtered: WordGirl - Jerky Jerk; Becky's Birthday
5391_20110819143000.mpg
mythtered: WordGirl - Jerky Jerk; Becky's Birthday
5521_20110819153000.mpg
mythtered: WordGirl - Mr. Big; Book Ends
7738_20110822153000.mpg
mythtered: WordGirl - When Chuck's Mom Is Away ...; That's
Entertainment 7738_20110824153000.mpg
Count: 219
Are you sure you want to continue?
> yes
Warning: Failed to delete 'mythtered: Bob the Builder'
Recordings with missing files
mythtered: Between the Lions - Deep in the Swamp; Trosclair and the
Alligator 7241_20110825143000.mpg
mythtered: Between the Lions - The Popcorn Popper; Oh, Yes, It Can!
5391_20110728053000.mpg
mythtered: Between the Lions - Spicy Hot Colors; Yesterday I Had the
Blues 5391_20110726053000.mpg
mythtered: Between the Lions - Priceless Gifts; King Midas
5391_20110721053000.mpg
mythtered: Between the Lions - Making Bread; Cheesybreadville
5391_20110816053000.mpg
mythtered: Between the Lions - Red Parka Mary; Not Afraid of Dogs
5391_20110817053000.mpg
mythtered: Between the Lions - A Shower of Stars; Two Moons and One
Lagoon 68315_20110722143000.mpg
mythtered: Between the Lions - Deep in the Swamp; Trosclair and the
Alligator 7736_20110822053000.mpg
mythtered: Between the Lions - Castles, Cave, and Honeycombs; My
House 5391_20110815053000.mpg
mythtered: Between the Lions - Pigs, Pigs, Pigs!; The Three Little
Pigs 7736_20110824053000.mpg
mythtered: Between the Lions - Like a Windy Day; Winter Is the
Warmest Season 5391_20110803053000.mpg
mythtered: Between the Lions - Pablo the Artist; Dream Carver
5391_20110804053000.mpg
mythtered: Between the Lions - Bear Snores On; Night in the Country
68315_20110804143000.mpg
mythtered: Between the Lions - Night Shift & Under Construction
5391_20110808053000.mpg
mythtered: Between the Lions - Pigs, Pigs, Pigs!; The Three Little
Pigs 6024_20110823143000.mpg
mythtered: Between the Lions - Bugs & Beetle Bop
6024_20110824143000.mpg
mythtered: Blue's Clues - Soccer Practice
6256_20110723073000.mpg
mythtered: Blue's Clues - Blue Wants to Play a Song Game!
6256_20110720193000.mpg
mythtered: Blue's Clues - Making Changes
7131_20110824193000.mpg
mythtered: Blue's Clues - I'm So Happy
6256_20110816193000.mpg
mythtered: Blue's Clues - Steve Gets the Sniffles
6256_20110726193000.mpg
mythtered: Blue's Clues - The Big Book About Us
6256_20110721193000.mpg
mythtered: Blue's Clues - Weight and Balance!
6256_20110809193000.mpg
mythtered: Blue's Clues - Bugs!
6256_20110810193000.mpg
mythtered: Blue's Clues - Boat Float
6256_20110728193000.mpg
mythtered: Blue's Clues - Blue's Favorite Song
6256_20110729193000.mpg
mythtered: Blue's Clues - Adventure!
6256_20110812193000.mpg
mythtered: Blue's Clues - Signs!
6256_20110727193000.mpg
mythtered: Blue's Clues - Our Neighborhood Festival
7131_20110825193000.mpg
mythtered: Blue's Clues - What Does Blue Need?
6256_20110722193000.mpg
mythtered: Blue's Clues - Dress Up Day
6256_20110730073000.mpg
mythtered: Blue's Clues - Blocks
6256_20110801193000.mpg
mythtered: Blue's Clues - The Trying Game
6256_20110803193000.mpg
mythtered: Blue's Clues - What Game Does Blue Want to Learn?
6256_20110804193000.mpg
mythtered: Blue's Clues - Up, Down, All Around!
6256_20110805193000.mpg
mythtered: Blue's Clues - Patience
6256_20110808193000.mpg
mythtered: Blue's Clues - Numbers Everywhere!
6256_20110822193000.mpg
mythtered: Bob the Builder
6263_20110725171100.mpg
mythtered: Bob the Builder
4263_20110722084300.mpg mythtered: Bob the Builder
6263_20110726171100.mpg
mythtered: Bob the Builder - New Homes for the Team
5521_20110721120000.mpg
mythtered: Bob the Builder
4263_20110819084300.mpg
mythtered: Bob the Builder
6263_20110720171100.mpg
mythtered: Bob the Builder - Wendy Moves to the Valley
5521_20110725120000.mpg
[.. tons more ..]
mythtered: Yo Gabba Gabba! - School
6256_20110807083000.mpg
mythtered: Yo Gabba Gabba! - Love
6256_20110809133000.mpg
Count: 1217
Zero byte recordings
mythtered: Kipper
4263_20110701190306.mpg
mythtered: Nightly Business Report
6512_20110701190300.mpg
mythtered: SpongeBob SquarePants
6252_20110824163000.mpg
mythtered: The Magic School Bus
6491_20110824160000.mpg
mythtered: Unknown
6027_20101230170632.mpg
mythtered: WordGirl - You Can't Crush City Hall; Two Brain Highway
5391_20110817143000.mpg
Count: 6
Orphaned video files
mythtered: /u/ext2t2/mythtv-default/1023_20090528143000.mpg
1.2GB
mythtered: /u/ext2t2/mythtv-default/1054_20081110200000.mpg
1.2GB
mythtered: /u/ext2t2/mythtv-default/1054_20081212203000.mpg
1.2GB
mythtered: /u/ext2t2/mythtv-default/1054_20081213043000.mpg
1.2GB
mythtered: /u/ext2t2/mythtv-default/1054_20081224200000.mpg
2.4GB
mythtered: /u/ext2t2/mythtv-default/1096_20090202070000.mpg
1.2GB
mythtered: /u/ext2t2/mythtv-default/1096_20090302100000.mpg
1.2GB
mythtered: /u/ext2t2/mythtv-default/1096_20090303100000.mpg
1.2GB
mythtered: /u/ext2t2/mythtv-default/1096_20090305063000.mpg
1.1GB
Total: 11.8GB
Orphaned snapshots
mythtered: /u/ext2t2/mythtv-default/4263_20110624170800.mpg.png
120.0KB
mythtered: /u/ext2t2/mythtv-default/4752_20110624173000.mpg.png
51.9KB
Total: 171.9KB
Database backups
mythtered: /u/ext2t2/mythtv-default/mythconverg-1244-20100103120942.sql.gz
49.0MB
mythtered: /u/ext2t2/mythtv-default/mythconverg-1244-20100410152530.sql.gz
46.4MB
mythtered: /u/ext2t2/mythtv-default/mythconverg-1254-20100410154335.sql.gz
46.4MB
mythtered: /u/ext2t2/mythtv-default/mythconverg-1254-20101120180814.sql.gz
70.1MB
mythtered: /u/ext2t2/mythtv-default/mythconverg-1264-20101120181615.sql.gz
70.1MB
Total: 282.0MB
Other files
mythtered: /u/ext2t2/mythtv-default/nfslockfile.lock
0.0B
Total: 0.0B
Please select from the following
1. Delete orphaned recording entries
2. Delete zero byte recordings
3. Delete orphaned video files
4. Delete orphaned snapshots
5. Delete other files
6. Refresh list
>
I'm not sure why that would be the case.
Eric
More information about the mythtv-users
mailing list