ImportError: cannot import name myownhowto

Hello everyone,

Incorporating a MATLAB *.so library, I have created a block using the
howto_square template. I also followed the discussion in the
http://old.nabble.com/Need-help-with-gr-how-to-create-a-signal-processing-block-template-td28646216.html
thread here . The code compiles very nicely but when I run it in GRC I
receive this message:

Traceback (most recent call last):
File “/home/zohair/Desktop/top_block.py”, line 8, in
from gnuradio import myownhowto
ImportError: cannot import name myownhowto

I coped my matlab library (libmyfirstblock.so) to /usr/lib and in my
/top_dir/lib/makefile.am, I have added these line as instructed in the
link
above:

AM_CPPFLAGS+=-I$(MATLAB_ROOT)/extern/include

libgnuradio_myownhowto _la_LIBADD =
$(GNURADIO_CORE_LA)
-L/usr/lib -lmyfirstblock

libgnuradio_myownhowto _la_LDFLAGS =
$(NO_UNDEFINED)
-rpath
/usr/lib:-L$(MATLAB_ROOT)/bin/glnx86:-I$(MATLAB_ROOT)/extern/include:$(MATLAB_ROOT)/runtime/glnx86:$(MATLAB_ROOT)/sys/os/glnx86

in my .bashrc file:
export MATLAB_ROOT="/home/zohair/MATLAB"
export MY_LIB_ROOT="/home/zohair/MATLAB/work"
export LD_LIBRARY_PATH="$MATLAB_ROOT/extern/include"
export PATH="$PATH:$LD_LIBRARY_PATH"

Any help with this error, please?

Cheers

Zohair

View this message in context:
http://old.nabble.com/ImportError%3A-cannot-import-name-myownhowto-tp28755411p28755411.html
Sent from the GnuRadio mailing list archive at Nabble.com.

When I type:
~$ sudo ldconfig

I receive:
/sbin/ldconfig.real: /usr/local/lib/libgnuradio-myownhowto.so.0 is not
a
symbolic link

Zohair wrote:

File “/home/zohair/Desktop/top_block.py”, line 8, in
$(GNURADIO_CORE_LA)
export MY_LIB_ROOT="/home/zohair/MATLAB/work"
export LD_LIBRARY_PATH="$MATLAB_ROOT/extern/include"
export PATH="$PATH:$LD_LIBRARY_PATH"

Any help with this error, please?

Cheers

Zohair


View this message in context:
http://old.nabble.com/ImportError%3A-cannot-import-name-myownhowto-tp28755411p28756180.html
Sent from the GnuRadio mailing list archive at Nabble.com.