title: Raspberry Pi "ImportError: libavg/avg.so: cannot open shared object file: no such file or directory"
body: <p>I've looked all over for this. I've found similar problems but the fixes for them don't seem to work for me. </p>
  
  <p>In a script when I run the line (or rather when it hits the line) </p>
  
  <pre><code>from avg import *
  </code></pre>
  
  <p>it throws an error</p>
  
  <pre><code>ImportError: /usr/local/lib/python2.7/dist-packages/libavg/avg.so: cannot open shared object file: No such file or directory"
  </code></pre>
  
  <p>I've tried adding it to the path (both the <em>folder</em> <code>/usr/local/lib/python2.7/dist-packages/libavg/</code> and the <em>file</em> <code>/usr/local/lib/python2.7/dist-packages/libavg/avg.so</code>) and to <code>LD_LIBRARY_PATH</code> but it doesn't make a difference. I've tried updating, upgrading, and even did an <code>apt-get</code> on it again just in case. </p>
  
  <p>I'm not a longtime veteran Linux user, but I'm not too much of a noob, but this sure is making me feel like one.</p>
  
  <p>As far as hardware goes, this is taking place on a Raspberry Pi. I don't know if that makes a difference.</p>
  
  <p>Edit: The avg.so file exists in the spot that it says (/usr/local/lib/python2.7/dist-packages/libavg) and I'm running it as the only user my Raspberry pi has, that being the administrator "Pi." I don't know if its simlinked nor how to tell if it is. I can CAT the file and it gives me a billion odd characters, however since it's an .so and not a .py or anything like it, opening it only shows characters from being compiled.</p>
  
  <p>Edit 2: So after looking for a while I've found that avg.so is a linked file. Would that make a difference and, if so, how would I fix something like that, since from avg import * is a bit important for what I'm doing?</p>