Problem with "Extras:Packet Framer"

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?

Thanks, Guy

On 01/13/2013 07:18 AM, Guy H. wrote:

File
pmt.pmt_blob_data(msg.value).tostring(),
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:

-josh

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?

Thanks for your quick response :slight_smile:

Guy

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

On 01/14/2013 03:46 AM, Guy H. 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