On 07/30/2012 11:20 AM, Jonathan Fox wrote:
> On Fri, Jul 27, 2012 at 6:12 PM, Josh Blum <address@hidden
>> On 07/27/2012 02:01 PM, Jonathan Fox wrote:
>>> I am trying to create a custom block that does energy detection. I used
>>> gr-modtool.py to generate the appropriate directory and files and added
>>> algorithm and necessary code to the header and cc. I also added the XML
>>> file for the GRC It compiled without error but when I tried testing it
>>> I got this error:
>>> linux; GNU C++ version 4.6.3; Boost_104601; UHD_003.004.002-181-g25649781
>>> Traceback (most recent call last):
>>> File "/home/jonfox/spectrum_sensing_test.py", line 21, in <module>
>>> import specsense
>>> File "/usr/local/lib/python2.7/dist-packages/specsense/__init__.py",
>>> 45, in <module>
>>> from specsense_swig import *
>>> 26, in <module>
>>> _specsense_swig = swig_import_helper()
>>> 22, in swig_import_helper
>>> _mod = imp.load_module('_specsense_swig', fp, pathname, description)
>>> ImportError: libgnuradio-specsense.so: cannot open shared object file: No
>>> such file or directory
>> First off, does the file really exist, if not is it installed, but under
>> the wrong name or wrong directory?
>> If its there, sometimes running sudo ldconfig fixes issues like this.
>>> specsense is the module I created with the modtool but I did not modify
>>> swig file. Any ideas on what I did wrong here?
>>> Also, it seems that my code for having a vector input does not hold up
>>> I have to manually change the input type in the appropriate python script
>>> despite setting it in GRC already. Is there any documentation on adding
>>> vector inputs and outputs?
>> any code snippets with the problem that you can post?
>> Discuss-gnuradio mailing list
> Sudo ldconfig worked. Now I get this:
> Traceback (most recent call last):
> File "/home/jonfox/gnuradio/spectrum_sensing_test.py", line 214, in
> line 76, in Run
> File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/top_block.py",
> line 97, in start
> line 1768, in start
> return _gnuradio_core_runtime.gr_top_block_sptr_start(self,
> RuntimeError: gr_buffer_add_reader: nzero_preload must be >= 0