[mythtv-users] running python scripts on OS X against mythtv database?

James Abernathy jfabernathy at gmail.com
Mon Nov 26 13:01:20 UTC 2018


> 
> If you search on the forum, there a number of references to the
> bindings being installed, like:
> 
> https://forum.mythtv.org/viewtopic.php?f=26&t=696&p=3377&hilit=python+bindings#p3377
> 
> But since I don't use/have a Mac, I'll sign off here.
> 
> If the Mac has a tool like ubuntu, you could do this:
> 
> locate -b "\MythTV" to find the directory where the
> bindings are kept.
> 
> Also note the Wiki page (https://www.mythtv.org/wiki/MacPorts#Scripts)
> mentioned and that scripts must be modified to point to the location
> of Python itself: #!/opt/dvr/bin/python2.7

Thanks, Bill, I can’t seem to get my searches to find the stuff that you do,  I did change the python location to #!/opt/dvt/bin/python2.7 and got further.
The error I got was:

Abernathys-iMac:~ mlabernathy$ ./find_recording_inputs.py 
2018-11-26 07:53:01.447576 E [65673] Python Database Connection Database schema mismatch: we speak 1317 but database speaks 1348
Exception AttributeError: "'MythBE' object has no attribute 'hostname'" in  ignored

Unable to connect to the backend, aborting.

Abernathys-iMac:~ mlabernathy$ 

I'll look more at the Macport stuff you pointed me to, but since I can run my unmodified Linux scripts in Linux running in Virtualbox on the same Mac, I might not look far.

Jim A

> 
> -- 
> Bill
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20181126/bc9ba4d3/attachment.html>


More information about the mythtv-users mailing list