Forum Archive

MPMediaQuery not found?

roosterboy

Playing around with the new version of Pythonista, I tried out the ObjC example script Music Stats.py. But when I run that script, I get an error:

Value Error: no Objective-C class named 'MPMediaQuery' found

Olaf

MPMediaQuery has been around since iOS 3.0, but still: what device and iOS version do you use, @roosterboy?

roosterboy

Oops, sorry, meant to include that info but forgot.

This happens on my iPhone 5S and my iPad Air 2, both running iOS 9.2.

Webmaster4o

@omz posted a fix for this on Twitter. https://twitter.com/olemoritz/status/686602486845681668

roosterboy

That did the trick. Thanks!