[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] ImportError: cannot import name myownhowto
From: |
Zohair |
Subject: |
[Discuss-gnuradio] ImportError: cannot import name myownhowto |
Date: |
Wed, 2 Jun 2010 07:34:37 -0700 (PDT) |
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 <module>
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.
- [Discuss-gnuradio] ImportError: cannot import name myownhowto,
Zohair <=