[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] can not import digital_swig for the example of pk
From: |
Josh Blum |
Subject: |
Re: [Discuss-gnuradio] can not import digital_swig for the example of pkt.py |
Date: |
Tue, 29 Nov 2011 14:32:39 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 |
On 11/29/2011 10:57 AM, Tom Rondeau wrote:
> On Tue, Nov 29, 2011 at 1:40 AM, Alex Zhang <address@hidden> wrote:
>
>> I am using the this example to test the installed next branch of josh:
>>
>> http://gnuradio.org/cgit/jblum.git/tree/gr-digital/python/pkt2.py?h=next
>>
>> How ever, the digital_swig is not recognized. And I also checked the
>> changeset at http://gnuradio.org/redmine/projects/gnuradio/wiki/ChangeSets
>>
>> Nothing related is found.
>>
>>
>> Traceback (most recent call last):
>> File "./pkt2.py", line 23, in <module>
>> import digital_swig
>> ImportError: No module named digital_swig
>>
>> Can someone tell me where to find this package now?
>>
>> --
>>
>> Alex,
>> *Dreams can come true – just believe.*
>>
>
>
> It looks like you have some left-over code laying around. The pkt2.py is
> gone and we use pkt.py now, instead. Something must have gotten left behind
> with a checkout or merge at some point.
>
Sorry for the correction, pkt2 is my doing. I re-implemented pkt.py with
message passing capabilities.
> As for the digital_swig, that's the "real" name of the SWIG'd-up gr-digital
> module that we export into digital. The internal gr-digital python modules
> use digital_swig, though.
>
> Make sure you've cleaned up previous installs, to a git clean -dxf in your
> gnuradio checkout and reinstall. Hopefully that'll fix your problems.
>
I think Alex is importing pkt2.py from in-tree and not from an installed
location.
-josh