title: GNU Radio WSL Ubuntu 20.04 ImportError: libQt5Core
body: <p>All, </p>
  
  <p>After installing the Windows 10 Subsystem for Linux (WSL) and Ubuntu 20.04, I created a flowgraph that relied on QT.</p>
  
  <p>The example I followed to install WSL and GNU is:
  <a href="https://wiki.analog.com/resources/tools-software/linux-software/gnuradio" rel="nofollow noreferrer">https://wiki.analog.com/resources/tools-software/linux-software/gnuradio</a></p>
  
  <p>My Python version is 3.8.2 and my GRC version is 3.8.1.0</p>
  
  <p>From the same terminal that I installed everthing, I finally launched GRC
  <code>gnuradio-companion</code></p>
  
  <p>I built a flow graph and was greeted by an error when running it.
  The error I receiver after building the flow graph is:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/home/jameshayek/GNURadio-Projects/FMReceiver.py", line 38, in &lt;module&gt;
      from gnuradio.qtgui import Range, RangeWidget
    File "/usr/lib/python3/dist-packages/gnuradio/qtgui/__init__.py", line 36, in &lt;module&gt;
      from .qtgui_swig import *
    File "/usr/lib/python3/dist-packages/gnuradio/qtgui/qtgui_swig.py", line 13, in &lt;module&gt;
      from . import _qtgui_swig
  ImportError: libQt5Core.so.5: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>I'd like to note,during the install, I did include
  <code>sudo apt-get install qt5-default</code></p>
  
  <p>After going back to the terminal, I tried to <code>find</code> libQt5Core
  <code>find /usr -name libQt5Core</code> but nothing returned. I am unsure why...</p>
  
  <p>I included <code>gnuradio-dev</code> as well as <code>build-essential</code></p>
  
  <p>I also set my PYTHONPATH by finding it first using:</p>
  
  <pre><code>find /usr -name gnuradio | grep "packages"
  </code></pre>
  
  <p>Which returned <code>/usr/lib/python3/dist-packages/gnuradio</code></p>
  
  <p>I then set the PYTHONPATH:</p>
  
  <pre><code>export PYTHONPATH=$PYTHONPATH:/usr/lib/python3/dist-packages/gnuradio
  </code></pre>
  
  <p>In the same terminal I was able to <code>echo $PYTHONPATH</code> to see:</p>
  
  <pre><code>:/usr/lib/python3/dist-packages/gnuradio
  </code></pre>
  
  <p>In a new terminal, the same command would yield nothing to return, so I modified the <code>~./bashrc</code> file to include the path stated above. All new terminals now spew out <code>/usr/lib/python3/dist-packages/gnuradio</code></p>
  
  <p>Thinking this was an issue with the PATH I assumed the problem would have been resolved.
  So, after closing out GRC and all Ubuntu terminals, I relaunched a new terminal to call GRC.</p>
  
  <p>Same error. Nothing I did helped.</p>
  
  <p>Any advice? </p>