discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Problem with "Extras:Packet Framer"


From: Guy Holtzman
Subject: Re: [Discuss-gnuradio] Problem with "Extras:Packet Framer"
Date: Mon, 14 Jan 2013 21:33:27 +0200

yes, it seems to have solved the problem
thanks! Guy


On Mon, Jan 14, 2013 at 8:03 PM, Josh Blum <address@hidden> wrote:


On 01/14/2013 03:46 AM, Guy Holtzman wrote:
> I have 2 files named extras_pmt.py:
> [1] /home/guy/grextras/python/extras_pmt.py
> [2] usr/local/lib/python2.7/dist-packages/gnuradio/extras/extras_pmt.py
>
> the second one is read only, should I change them both?
> I have noticed that at least one of the files has a pyc associated with it
> (the second one)
> should I compile it after changing it?

Yea, change the file in the source tree, then reinstall.

I'm hoping that whatever it was, this little change fixes it. Just
confirm for me if it does (or more errors). Ill check the patch in.

-josh

>
> Thanks for your quick response :)
>
> Guy
>
>
>
> On Sun, Jan 13, 2013 at 8:35 PM, Josh Blum <address@hidden> wrote:
>
>>
>>
>> On 01/13/2013 07:18 AM, Guy Holtzman wrote:
>>> Hi, I am using GNU Radio 3.6.3rc0 with Ubuntu 12.10
>>> since I am new in GNURadio and python, I am currently using the
>>> gnuradio-companion to build simple examples.
>>> I have installed the Extras package and trying to use the Packet Framer.
>>> Extras: Socket to Blob --> Extras: Packet Framer --> GMSK mod
>>> al though my project is excuting, as soon as I try to stream to the
>> socket
>>> using the nc command I get the following error:
>>>
>>> handler caught exception: 'module' object has no attribute
>> 'pmt_blob_length'
>>> Traceback (most recent call last):
>>>   File
>>>
>> "/usr/local/lib/python2.7/dist-packages/gnuradio/extras/block_gateway.py",
>>> line 53, in eval
>>>     try: self._callback()
>>>   File
>>>
>> "/usr/local/lib/python2.7/dist-packages/gnuradio/extras/block_gateway.py",
>>> line 124, in __gr_block_handle
>>>     ) for i in self.__out_indexes],
>>>   File
>>>
>> "/usr/local/lib/python2.7/dist-packages/gnuradio/extras/packet_framer.py",
>>> line 82, in work
>>>     pmt.pmt_blob_data(msg.value).tostring(),
>>>   File
>>> "/usr/local/lib/python2.7/dist-packages/gnuradio/extras/extras_pmt.py",
>>> line 48, in pmt_blob_data
>>>     return __pointer_to_ndarray(extras_swig.pmt_blob_rw_data(blob),
>>> extras_swig.pmt_blob_length(blob))
>>> AttributeError: 'module' object has no attribute 'pmt_blob_length'
>>> thread[thread-per-block[0]: <gr_block mod_pkts2 (8)>]: caught
>> unrecognized
>>> exception
>>>
>>> replacing the Extras: Packet Framer with Extras: Blob to stream seems to
>>> work so I know the problem is related to the Packet Framer block
>>>
>>> how can I resolve this issue?
>>>
>>
>> Not sure why its doing that, pmt_blob_length should also be in that
>> module. Can you try this diff and see if it resolves the issue:
>>
>> http://pastebin.com/jzFuqvQH
>>
>> -josh
>>
>>> Thanks, Guy
>>>
>>>
>>>
>>> _______________________________________________
>>> Discuss-gnuradio mailing list
>>> address@hidden
>>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>>
>>
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]