Hi, I have written my new signal processing block and able to install it. But python does not import my module.Here is what it says when i write
python >>> from gnuradio import berk Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: cannot import name berk And this is the response when i do "make install" [r...@proje home]# cd /home/proje/GNUradio/gnuradio-3.2.2/block1 [r...@proje block1]# make install Making install in config make[1]: Entering directory `/home/proje/GNUradio/gnuradio-3.2.2/block1/config' make[2]: Entering directory `/home/proje/GNUradio/gnuradio-3.2.2/block1/config' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/home/proje/GNUradio/gnuradio-3.2.2/block1/config' make[1]: Leaving directory `/home/proje/GNUradio/gnuradio-3.2.2/block1/config' Making install in src make[1]: Entering directory `/home/proje/GNUradio/gnuradio-3.2.2/block1/src' Making install in lib make[2]: Entering directory `/home/proje/GNUradio/gnuradio-3.2.2/block1/src/lib' make install-am make[3]: Entering directory `/home/proje/GNUradio/gnuradio-3.2.2/block1/src/lib' make[4]: Entering directory `/home/proje/GNUradio/gnuradio-3.2.2/block1/src/lib' make[4]: Nothing to be done for `install-exec-am'. test -z "/usr/local/lib/python2.5/site-packages/gnuradio" || /bin/mkdir -p "/usr/local/lib/python2.5/site-packages/gnuradio" /bin/sh ../../libtool --mode=install /usr/bin/install -c _berk.la '/usr/local/lib/python2.5/site-packages/gnuradio' /usr/bin/install -c .libs/_berk.so /usr/local/lib/python2.5/site-packages/gnuradio/_berk.so /usr/bin/install -c .libs/_berk.lai /usr/local/lib/python2.5/site-packages/gnuradio/_berk.la PATH="$PATH:/sbin" ldconfig -n /usr/local/lib/python2.5/site-packages/gnuradio ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib/python2.5/site-packages/gnuradio If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- test -z "/usr/local/lib/python2.5/site-packages/gnuradio" || /bin/mkdir -p "/usr/local/lib/python2.5/site-packages/gnuradio" /usr/bin/install -c -m 644 berk.py '/usr/local/lib/python2.5/site-packages/gnuradio' Byte-compiling python modules... berk.py Byte-compiling python modules (optimized versions) ... berk.py test -z "/usr/local/include/gnuradio/swig" || /bin/mkdir -p "/usr/local/include/gnuradio/swig" /usr/bin/install -c -m 644 berk.i '/usr/local/include/gnuradio/swig' test -z "/usr/local/include/gnuradio" || /bin/mkdir -p "/usr/local/include/gnuradio" /usr/bin/install -c -m 644 berk_equalize_cc.h '/usr/local/include/gnuradio' make[4]: Leaving directory `/home/proje/GNUradio/gnuradio-3.2.2/block1/src/lib' make[3]: Leaving directory `/home/proje/GNUradio/gnuradio-3.2.2/block1/src/lib' make[2]: Leaving directory `/home/proje/GNUradio/gnuradio-3.2.2/block1/src/lib' Making install in python make[2]: Entering directory `/home/proje/GNUradio/gnuradio-3.2.2/block1/src/python' make[3]: Entering directory `/home/proje/GNUradio/gnuradio-3.2.2/block1/src/python' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/home/proje/GNUradio/gnuradio-3.2.2/block1/src/python' make[2]: Leaving directory `/home/proje/GNUradio/gnuradio-3.2.2/block1/src/python' make[2]: Entering directory `/home/proje/GNUradio/gnuradio-3.2.2/block1/src' make[3]: Entering directory `/home/proje/GNUradio/gnuradio-3.2.2/block1/src' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/home/proje/GNUradio/gnuradio-3.2.2/block1/src' make[2]: Leaving directory `/home/proje/GNUradio/gnuradio-3.2.2/block1/src' make[1]: Leaving directory `/home/proje/GNUradio/gnuradio-3.2.2/block1/src' make[1]: Entering directory `/home/proje/GNUradio/gnuradio-3.2.2/block1' make[2]: Entering directory `/home/proje/GNUradio/gnuradio-3.2.2/block1' make[2]: Nothing to be done for `install-exec-am'. test -z "/usr/local/lib/pkgconfig" || /bin/mkdir -p "/usr/local/lib/pkgconfig" make[2]: Leaving directory `/home/proje/GNUradio/gnuradio-3.2.2/block1' make[1]: Leaving directory `/home/proje/GNUradio/gnuradio-3.2.2/block1' What should i do to be able import my module? Thanks in advance Best regards Berk -- View this message in context: http://old.nabble.com/signal-processing-import-help-tp28340868p28340868.html Sent from the GnuRadio mailing list archive at Nabble.com. _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio