<div dir="ltr"><div dir="ltr">On Sat, Nov 24, 2018 at 3:27 PM James Abernathy <<a href="mailto:jfabernathy@gmail.com">jfabernathy@gmail.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">I have some scripts that work on my Ubuntu systems that print data from the mythtv backend and database.<div><br></div><div>I have a Macbook Pro that I run Mythfrontend and XQuartz for maintenance of the backend. I’d like to run some python scripts.</div><div><br></div><div>How do I link up all the modules so I don’t get errors like:</div><div><br></div><div><div style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Monaco;color:rgb(244,244,244);background-color:rgba(0,0,0,0.85)"><span style="font-variant-ligatures:no-common-ligatures"> File "./find_recording_inputs.py", line 13, in <module></span></div><div style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Monaco;color:rgb(244,244,244);background-color:rgba(0,0,0,0.85)"><span style="font-variant-ligatures:no-common-ligatures"> from MythTV import exceptions, MythBE</span></div><div style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Monaco;color:rgb(244,244,244);background-color:rgba(0,0,0,0.85)"><span style="font-variant-ligatures:no-common-ligatures">ImportError: No module named MythTV</span></div><div style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Monaco;color:rgb(244,244,244);background-color:rgba(0,0,0,0.85)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><br class="gmail-m_8403847376661188569webkit-block-placeholder"></div><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Jim Abernathy<br><a href="mailto:jfabernathy@gmail.com" target="_blank">jfabernathy@gmail.com</a><br>
</div></div></div></div><br></blockquote><div><span class="gmail_default" style="font-family:monospace,monospace">I'm not sure if there is a package for the MythTV bindings for macos, but for python in general, you can either place them in the same directory, specify the full location on import (google this one) or modify the path python uses (sys.path) prior to importing them.</span></div></div></div></div>