[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnuradio-discuss
Subject:    Re: Error No module named 'TheNameOfMyModule' in GRC
From:       Ivan Iudice <krono86 () tiscali ! it>
Date:       2022-01-19 13:44:42
Message-ID: 96780818-F72E-4FBB-9092-134D768F2D95 () tiscali ! it
[Download RAW message or body]

You need to re-compile and "make install" another time the modified module.

Ivan

> Il giorno 19 gen 2022, alle ore 11:17, Michelle <mkprojects731@gmail.com> ha \
> scritto: 
> 
> Hello Ivan,
> ahhh okay I will do it! thank you for the advice.
> I have another question, I would like to make a slight modification in the work \
> function of my block. But as I have already installed the block in GRC I was \
> wondering if it's enough to modify the file that contains the work function. 
> On 2022-01-19 5:01 a.m., Ivan Iudice wrote:
> > This is not a final solution…
> > You need to add your library path in /etc/ld.so.conf.d/ in order to see your \
> > library everywhere. Have a nice day.
> > 
> > Ivan
> > 
> > > Il giorno 19 gen 2022, alle ore 10:52, Michelle <mkprojects731@gmail.com> ha \
> > > scritto: 
> > > Good morning Vasil,
> > > 
> > > I followed your indications and it works.
> > > 
> > > Thank you :)
> > > 
> > > On 2022-01-18 9:18 a.m., Vasil Velichkov wrote:
> > > > Hi Michelle,
> > > > 
> > > > On 18/01/2022 14.01, Michelle wrote:
> > > > > hello,
> > > > > 
> > > > > I created an OOT module, added a block and made the block available in GRC. \
> > > > > Then I installed the module and called ldconfig (as I'm in ubuntu). My \
> > > > > block appears in GRC but when I insert the block in a graph and execute \
> > > > > that graph I get an error *No module named 'TheNameOfMyModule'. * 
> > > > > Please can you enlighten me on how to fix this issue? I followed the \
> > > > > instructions of the wiki \
> > > > > https://wiki.gnuradio.org/index.php/OutOfTreeModules
> > > > Most probably you need to add /usr/local/lib/python3/dist-packages to \
> > > > PYTHONPATH environment variable as this directory is not in the default \
> > > > python search paths (sys.path) 
> > > > Open a new terminal and execute the following
> > > > 
> > > > export PYTHONPATH=/usr/local/lib/python3/dist-packages:$PYTHONPATH
> > > > gnuradio-companion
> > > > 
> > > > to make this change permanent you can add the export line to ~/.profile file \
> > > > and then logout/login or reboot. See also \
> > > > https://wiki.gnuradio.org/index.php/ModuleNotFoundError 
> > > > Regards,
> > > > Vasil
> > > > 
> > > 


[Attachment #3 (text/html)]

<html><head><meta http-equiv="content-type" content="text/html; \
charset=utf-8"></head><body dir="auto">You need to re-compile and "make install" \
another time the modified module.<div><br></div><div>Ivan<br><div \
dir="ltr"><br><blockquote type="cite">Il giorno 19 gen 2022, alle ore 11:17, Michelle \
&lt;mkprojects731@gmail.com&gt; ha scritto:<br><br></blockquote></div><blockquote \
type="cite"><div dir="ltr">  
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  
  
    <p>Hello Ivan,<br>
      ahhh okay I will do it! thank you for the advice.<br>
      I have another question, I would like to make a slight
      modification in the work function of my block.<br>
      But as I have already installed the block in GRC I was wondering
      if it's enough to modify the file that contains the work function.</p>
    <div class="moz-cite-prefix">On 2022-01-19 5:01 a.m., Ivan Iudice
      wrote:<br>
    </div>
    <blockquote type="cite" \
cite="mid:BF20CFD2-F98A-44CA-98FF-5B5457017900@tiscali.it">  <meta \
http-equiv="content-type" content="text/html; charset=UTF-8">  This is not a final \
                solution…
      <div>You need to add your library path in&nbsp;<span style="caret-color: \
rgb(35, 38, 41); color: rgb(35, 38, 41);  font-family: ui-monospace, &quot;Cascadia \
Mono&quot;,  &quot;Segoe UI Mono&quot;, &quot;Liberation Mono&quot;, Menlo,
          Monaco, Consolas, monospace; font-size: 13px;
          -webkit-text-size-adjust: 100%; background-color: rgb(227,
          230, 232);">/etc/ld.so.conf.d/&nbsp;</span>in order to see your
        library everywhere.</div>
      <div>Have a nice day.</div>
      <div><br>
      </div>
      <div>Ivan<br>
        <div dir="ltr"><br>
          <blockquote type="cite">Il giorno 19 gen 2022, alle ore 10:52,
            Michelle <a class="moz-txt-link-rfc2396E" \
href="mailto:mkprojects731@gmail.com">&lt;mkprojects731@gmail.com&gt;</a> ha \
scritto:<br>  <br>
          </blockquote>
        </div>
        <blockquote type="cite">
          <div dir="ltr"><span>Good morning Vasil,</span><br>
            <span></span><br>
            <span>I followed your indications and it works.</span><br>
            <span></span><br>
            <span>Thank you :)</span><br>
            <span></span><br>
            <span>On 2022-01-18 9:18 a.m., Vasil Velichkov wrote:</span><br>
            <blockquote type="cite"><span>Hi Michelle,</span><br>
            </blockquote>
            <blockquote type="cite"><span></span><br>
            </blockquote>
            <blockquote type="cite"><span>On 18/01/2022 14.01, Michelle
                wrote:</span><br>
            </blockquote>
            <blockquote type="cite">
              <blockquote type="cite"><span>hello,</span><br>
              </blockquote>
            </blockquote>
            <blockquote type="cite">
              <blockquote type="cite"><span></span><br>
              </blockquote>
            </blockquote>
            <blockquote type="cite">
              <blockquote type="cite"><span>I created an OOT module,
                  added a block and made the block available in GRC.
                  Then I installed the module and called ldconfig (as
                  I'm in ubuntu).</span><br>
              </blockquote>
            </blockquote>
            <blockquote type="cite">
              <blockquote type="cite"><span>My block appears in GRC but
                  when I insert the block in a graph and execute that
                  graph I get an error *No module named
                  'TheNameOfMyModule'. *</span><br>
              </blockquote>
            </blockquote>
            <blockquote type="cite">
              <blockquote type="cite"><span></span><br>
              </blockquote>
            </blockquote>
            <blockquote type="cite">
              <blockquote type="cite"><span>Please can you enlighten me
                  on how to fix this issue? I followed the instructions
                  of the wiki
                  <a class="moz-txt-link-freetext" \
href="https://wiki.gnuradio.org/index.php/OutOfTreeModules">https://wiki.gnuradio.org/index.php/OutOfTreeModules</a></span><br>
  </blockquote>
            </blockquote>
            <blockquote type="cite"><span>Most probably you need to add
                /usr/local/lib/python3/dist-packages to PYTHONPATH
                environment variable as this directory is not in the
                default python search paths (sys.path)</span><br>
            </blockquote>
            <blockquote type="cite"><span></span><br>
            </blockquote>
            <blockquote type="cite"><span>Open a new terminal and
                execute the following</span><br>
            </blockquote>
            <blockquote type="cite"><span></span><br>
            </blockquote>
            <blockquote type="cite"><span>export
                PYTHONPATH=/usr/local/lib/python3/dist-packages:$PYTHONPATH</span><br>
  </blockquote>
            <blockquote type="cite"><span>gnuradio-companion</span><br>
            </blockquote>
            <blockquote type="cite"><span></span><br>
            </blockquote>
            <blockquote type="cite"><span>to make this change permanent
                you can add the export line to ~/.profile file and then
                logout/login or reboot. See also
                <a class="moz-txt-link-freetext" \
href="https://wiki.gnuradio.org/index.php/ModuleNotFoundError">https://wiki.gnuradio.org/index.php/ModuleNotFoundError</a></span><br>
  </blockquote>
            <blockquote type="cite"><span></span><br>
            </blockquote>
            <blockquote type="cite"><span>Regards,</span><br>
            </blockquote>
            <blockquote type="cite"><span>Vasil</span><br>
            </blockquote>
            <blockquote type="cite"><span></span><br>
            </blockquote>
            <span></span><br>
          </div>
        </blockquote>
      </div>
    </blockquote>
  

</div></blockquote></div></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic