discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: embedded python block-Can't interpret source code: "'__name__' not i


From: Marcus Müller
Subject: Re: embedded python block-Can't interpret source code: "'__name__' not in globals"
Date: Fri, 8 Sep 2023 12:00:41 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

Hi Liya,

the code you refer to is not an embedded python block, so it can't work as one. As you can see from the python code, it imports things from the same directory. So this can't work! Never forget to read the code you're copying :)

Best regards,
Marcus

On 9/6/23 22:34, Jiya Johnson wrote:
Good morning community,
I was trying to create an embedded python module with the same code for fec extended encoder in GNU RADIO 3.10.7 version .I am encountering this problem "Param - Code(_source_code):
Can't interpret source code: "'__name__' not in globals""
it will be very helpful if someone can help me to clear this..The used code is https://github.com/gnuradio/gnuradio/blob/master/gr-fec/python/fec/extended_encoder.py#L21

reply via email to

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