Site updated at 2018-02-21 05:50:13 UTC

This commit is contained in:
Travis CI 2018-02-21 05:50:13 +00:00
parent 0534601b4b
commit 0c86c785d0
27 changed files with 80 additions and 84 deletions

View file

@ -84,21 +84,17 @@
If you are using <a href="/hassio/">Hass.io</a> then just move forward to the configuration as all requirements are already fulfilled.
</p>
<h4><a class="title-link" name="symlinking-into-virtual-environment" href="#symlinking-into-virtual-environment"></a> Symlinking into virtual environment</h4>
<p>Create a symlink to the <code class="highlighter-rouge">cec</code> installation. Keep in mind different installation methods will result in different locations of cec.</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>ln -s /path/to/your/installation/of/cec /path/to/your/venv/lib/python3.4/site-packages
<p>Create a symlink to the <code class="highlighter-rouge">cec</code> installation including the _cec.so file. Keep in mind different installation methods will result in different locations of cec.</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>ln -s /path/to/your/installation/of/cec /path/to/your/venv/lib/python<span class="k">*</span>/site-packages
<span class="gp">$ </span>ln -s /path/to/your/installation/of/_cec.so /path/to/your/venv/lib/python<span class="k">*</span>/site-packages
</code></pre>
</div>
<h5><a class="title-link" name="symlinking-examples" href="#symlinking-examples"></a> Symlinking examples:</h5>
<p>For the default virtual environment of a <a href="/getting-started/installation-raspberry-pi-image/">HASSbian Image for Raspberry Pi</a> the command would be as follows.</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>ln -s /usr/local/lib/python3.4/dist-packages/cec /srv/homeassistant/lib/python3.4/site-packages
</code></pre>
</div>
<p>For the default virtual environment of a <a href="/getting-started/installation-raspberry-pi-all-in-one/">Raspberry Pi All-In-One installation</a> the command would be as follows.</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>ln -s /usr/local/lib/python3.4/site-packages/cec /srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages
</code></pre>
</div>
<p>For the default virtual environment of a <a href="/getting-started/installation-raspberry-pi/">Manual installation</a> the command would be as follows.</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>ln -s /usr/local/lib/python3.4/site-packages/cec /srv/hass/hass_venv/lib/python3.4/site-packages
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>ln -s /usr/local/lib/python<span class="k">*</span>/dist-packages/cec /srv/homeassistant/lib/python<span class="k">*</span>/site-packages
<span class="gp">$ </span>ln -s /usr/local/lib/python<span class="k">*</span>/dist-packages/_cec.so /srv/homeassistant/lib/python<span class="k">*</span>/site-packages
</code></pre>
</div>
<p class="note">If after symlinking and adding <code class="highlighter-rouge">hdmi_cec:</code> to your configuration you are getting the following error in your logs,