RE: [Discuss-gnuradio] question about import a new block in gnuradio-3.3.0

2010-11-17 Thread intermilan


 


From: tianxia...@hotmail.com
To: e...@comsec.com
Subject: RE: [Discuss-gnuradio] question about import a new block in 
gnuradio-3.3.0
Date: Thu, 18 Nov 2010 11:38:43 +0800




hi Eric:
  I just imput the command in the  terminal as you said in the last 
E-mail.After that,when I input the command like this:
   tianxia...@ubuntu:~/gnuradio-3.3.0/test_example$ python
> > > > Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
> > > > [GCC 4.4.3] on linux2
> > > > Type "help", "copyright", "credits" or "license" for more information.
> > > > >>> import test_example
> > > > >>>
 
  and there are no errors,so I think the problem had been fixed.

 
> Date: Wed, 17 Nov 2010 07:53:07 -0800
> From: e...@comsec.com
> To: tianxia...@hotmail.com
> CC: discuss-gnuradio@gnu.org
> Subject: Re: [Discuss-gnuradio] question about import a new block in 
> gnuradio-3.3.0
> 
> On Wed, Nov 17, 2010 at 06:28:32PM +0800, intermilan wrote:
> > 
> > Hi Eric:
> > thanks for your help. I figured the question out.
> 
> What was the problem and the fix? It's nice to have it here on the
> list so that others can find it with their favorite search engine.
> 
> Eric
> 
> 
> > > Date: Tue, 16 Nov 2010 21:46:13 -0800
> > > From: e...@comsec.com
> > > To: tianxia...@hotmail.com
> > > CC: discuss-gnuradio@gnu.org
> > > Subject: Re: [Discuss-gnuradio] question about import a new block in 
> > > gnuradio-3.3.0
> > > 
> > > On Wed, Nov 17, 2010 at 10:48:11AM +0800, intermilan wrote:
> > > > 
> > > > hi all:
> > > > I use the command create-gnuradio-out-of-tree-project to bulid a new 
> > > > block,and after that I use the following command:
> > > > ./bootstrap
> > > > ./configure
> > > > make
> > > > make check
> > > > sudo make install
> > > > Then I thought I had installed the new block.then I want to import the 
> > > > new block in the python to make sure it is successfully installed.Then 
> > > > I got this:
> > > > 
> > > > tianxia...@ubuntu:~/gnuradio-3.3.0/test_example$ python
> > > > Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
> > > > [GCC 4.4.3] on linux2
> > > > Type "help", "copyright", "credits" or "license" for more information.
> > > > >>> import test_example
> > > > Traceback (most recent call last):
> > > > File "", line 1, in 
> > > > File "/usr/local/lib/python2.6/dist-packages/test_example/__init__.py", 
> > > > line 40, in 
> > > > from test_example_swig import *
> > > > File 
> > > > "/usr/local/lib/python2.6/dist-packages/test_example/test_example_swig.py",
> > > >  line 24, in 
> > > > _test_example_swig = swig_import_helper()
> > > > File 
> > > > "/usr/local/lib/python2.6/dist-packages/test_example/test_example_swig.py",
> > > >  line 20, in swig_import_helper
> > > > _mod = imp.load_module('_test_example_swig', fp, pathname, description)
> > > > ImportError: libgnuradio-test_example.so.0: cannot open shared object 
> > > > file: No such file or directory
> > > > 
> > > > My python is not very well,so I hope someone can help me figure it out.
> > > > Thank you in advance. 
> > > 
> > > Assuming you've got /usr/local/lib in /etc/ld.so.conf...
> > > 
> > > $ sudo ldconfig
> > > 
> > > 
> > > Or
> > > 
> > > $ export LD_LIBRARY_PATH=/usr/local/lib
> > > 
> > > 
> > > BTW, it's always helpful to tell us what OS and distribution you're 
> > > using...
> > > 
> > > Eric
  ___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] question about import a new block in gnuradio-3.3.0

2010-11-17 Thread Eric Blossom
On Wed, Nov 17, 2010 at 06:28:32PM +0800, intermilan wrote:
> 
> Hi Eric:
>thanks for your help. I figured the question out.

What was the problem and the fix?  It's nice to have it here on the
list so that others can find it with their favorite search engine.

Eric


> > Date: Tue, 16 Nov 2010 21:46:13 -0800
> > From: e...@comsec.com
> > To: tianxia...@hotmail.com
> > CC: discuss-gnuradio@gnu.org
> > Subject: Re: [Discuss-gnuradio] question about import a new block in 
> > gnuradio-3.3.0
> > 
> > On Wed, Nov 17, 2010 at 10:48:11AM +0800, intermilan wrote:
> > > 
> > > hi all:
> > >  I use the command create-gnuradio-out-of-tree-project to bulid a new 
> > > block,and after that I use the following command:
> > >  ./bootstrap
> > >  ./configure
> > >  make
> > >  make check
> > >  sudo make install
> > >  Then I thought I had installed the new block.then I want to import 
> > > the new block in the python to make sure it is successfully 
> > > installed.Then I got this:
> > > 
> > > tianxia...@ubuntu:~/gnuradio-3.3.0/test_example$ python
> > > Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
> > > [GCC 4.4.3] on linux2
> > > Type "help", "copyright", "credits" or "license" for more information.
> > > >>> import test_example
> > > Traceback (most recent call last):
> > >   File "", line 1, in 
> > >   File "/usr/local/lib/python2.6/dist-packages/test_example/__init__.py", 
> > > line 40, in 
> > > from test_example_swig import *
> > >   File 
> > > "/usr/local/lib/python2.6/dist-packages/test_example/test_example_swig.py",
> > >  line 24, in 
> > > _test_example_swig = swig_import_helper()
> > >   File 
> > > "/usr/local/lib/python2.6/dist-packages/test_example/test_example_swig.py",
> > >  line 20, in swig_import_helper
> > > _mod = imp.load_module('_test_example_swig', fp, pathname, 
> > > description)
> > > ImportError: libgnuradio-test_example.so.0: cannot open shared object 
> > > file: No such file or directory
> > > 
> > > My python is not very well,so I hope someone can help me figure it 
> > > out.
> > > Thank you in advance.   
> > 
> > Assuming you've got /usr/local/lib in /etc/ld.so.conf...
> > 
> >  $ sudo ldconfig
> > 
> > 
> > Or
> > 
> >  $ export LD_LIBRARY_PATH=/usr/local/lib
> > 
> > 
> > BTW, it's always helpful to tell us what OS and distribution you're using...
> > 
> > Eric

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


RE: [Discuss-gnuradio] question about import a new block in gnuradio-3.3.0

2010-11-17 Thread intermilan

Hi Eric:
   thanks for your help. I figured the question out.

> Date: Tue, 16 Nov 2010 21:46:13 -0800
> From: e...@comsec.com
> To: tianxia...@hotmail.com
> CC: discuss-gnuradio@gnu.org
> Subject: Re: [Discuss-gnuradio] question about import a new block in 
> gnuradio-3.3.0
> 
> On Wed, Nov 17, 2010 at 10:48:11AM +0800, intermilan wrote:
> > 
> > hi all:
> >  I use the command create-gnuradio-out-of-tree-project to bulid a new 
> > block,and after that I use the following command:
> >  ./bootstrap
> >  ./configure
> >  make
> >  make check
> >  sudo make install
> >  Then I thought I had installed the new block.then I want to import the 
> > new block in the python to make sure it is successfully installed.Then I 
> > got this:
> > 
> > tianxia...@ubuntu:~/gnuradio-3.3.0/test_example$ python
> > Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
> > [GCC 4.4.3] on linux2
> > Type "help", "copyright", "credits" or "license" for more information.
> > >>> import test_example
> > Traceback (most recent call last):
> >   File "", line 1, in 
> >   File "/usr/local/lib/python2.6/dist-packages/test_example/__init__.py", 
> > line 40, in 
> > from test_example_swig import *
> >   File 
> > "/usr/local/lib/python2.6/dist-packages/test_example/test_example_swig.py", 
> > line 24, in 
> > _test_example_swig = swig_import_helper()
> >   File 
> > "/usr/local/lib/python2.6/dist-packages/test_example/test_example_swig.py", 
> > line 20, in swig_import_helper
> > _mod = imp.load_module('_test_example_swig', fp, pathname, description)
> > ImportError: libgnuradio-test_example.so.0: cannot open shared object file: 
> > No such file or directory
> > 
> > My python is not very well,so I hope someone can help me figure it out.
> > Thank you in advance. 
> 
> Assuming you've got /usr/local/lib in /etc/ld.so.conf...
> 
>  $ sudo ldconfig
> 
> 
> Or
> 
>  $ export LD_LIBRARY_PATH=/usr/local/lib
> 
> 
> BTW, it's always helpful to tell us what OS and distribution you're using...
> 
> Eric
  ___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] question about import a new block in gnuradio-3.3.0

2010-11-16 Thread Eric Blossom
On Wed, Nov 17, 2010 at 10:48:11AM +0800, intermilan wrote:
> 
> hi all:
>  I use the command create-gnuradio-out-of-tree-project to bulid a new 
> block,and after that I use the following command:
>  ./bootstrap
>  ./configure
>  make
>  make check
>  sudo make install
>  Then I thought I had installed the new block.then I want to import the 
> new block in the python to make sure it is successfully installed.Then I got 
> this:
> 
> tianxia...@ubuntu:~/gnuradio-3.3.0/test_example$ python
> Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
> [GCC 4.4.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import test_example
> Traceback (most recent call last):
>   File "", line 1, in 
>   File "/usr/local/lib/python2.6/dist-packages/test_example/__init__.py", 
> line 40, in 
> from test_example_swig import *
>   File 
> "/usr/local/lib/python2.6/dist-packages/test_example/test_example_swig.py", 
> line 24, in 
> _test_example_swig = swig_import_helper()
>   File 
> "/usr/local/lib/python2.6/dist-packages/test_example/test_example_swig.py", 
> line 20, in swig_import_helper
> _mod = imp.load_module('_test_example_swig', fp, pathname, description)
> ImportError: libgnuradio-test_example.so.0: cannot open shared object file: 
> No such file or directory
> 
> My python is not very well,so I hope someone can help me figure it out.
> Thank you in advance.   

Assuming you've got /usr/local/lib in /etc/ld.so.conf...

 $ sudo ldconfig


Or

 $ export LD_LIBRARY_PATH=/usr/local/lib


BTW, it's always helpful to tell us what OS and distribution you're using...

Eric

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] question about import a new block in gnuradio-3.3.0

2010-11-16 Thread intermilan

hi all:
 I use the command create-gnuradio-out-of-tree-project to bulid a new 
block,and after that I use the following command:
 ./bootstrap
 ./configure
 make
 make check
 sudo make install
 Then I thought I had installed the new block.then I want to import the new 
block in the python to make sure it is successfully installed.Then I got this:

tianxia...@ubuntu:~/gnuradio-3.3.0/test_example$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import test_example
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/local/lib/python2.6/dist-packages/test_example/__init__.py", line 
40, in 
from test_example_swig import *
  File 
"/usr/local/lib/python2.6/dist-packages/test_example/test_example_swig.py", 
line 24, in 
_test_example_swig = swig_import_helper()
  File 
"/usr/local/lib/python2.6/dist-packages/test_example/test_example_swig.py", 
line 20, in swig_import_helper
_mod = imp.load_module('_test_example_swig', fp, pathname, description)
ImportError: libgnuradio-test_example.so.0: cannot open shared object file: No 
such file or directory

My python is not very well,so I hope someone can help me figure it out.
Thank you in advance. ___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio