<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Oct 27, 2014 at 9:59 PM, Bill Meek <span dir="ltr">&lt;<a href="mailto:keemllib@gmail.com" target="_blank">keemllib@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div>The patch I send earlier would dump some of the PYTHON* variables.<br>
I *think* the PATH is OK because the log shows the command runs<br>
OK, it&#39;s just the inability to load the MythTV module(s).<br>
<br>
Maybe 1st become the user that causes the failure and then simply<br>
type:<br>
<br>
    export | egrep &quot;PYTHON|LC_|HOME|PATH&quot;<br>
<br>
I&#39;m interested to see if: PYTHONNOUSERSITE gets set that would<br>
prevent the site-packages use.<br></div></blockquote><div><br></div><div>Bill, I just tried it out and you&#39;re right! The PYTHONPATH variable is not set:</div><div><br></div><div>$ cat working_easy.log<br>----------------------------------------------------<br>PYTHONHOME = Is not set.<br>PYTHONPATH = /mythtv/local64/lib/python2.7/site-packages/.<br>PYTHONNOUSERSITE = Is not set.<br>About to import: MythTV<br>The import worked.<br>About to import: MythTV.tmdb3<br>The import worked.<br>$ cat broken_easy.log<br>----------------------------------------------------<br>PYTHONHOME = Is not set.<br>PYTHONPATH = Is not set.<br>PYTHONNOUSERSITE = Is not set.<br>About to import: MythTV<br>The MythTV import failed.<br>About to import: MythTV.tmdb3<br>The MythTV.tmdb3 import failed.<br>$<br></div><div><br></div><div>Do I need those other two variables set? It doesn&#39;t appear as though I do. I wonder why the start-stop-daemon using --chuid wouldn&#39;t apply this stuff. I&#39;ll have to do some research on environment variables when using it.</div><div> </div></div></div></div>