Monday, July 22, 2019

Re: [Discuss-gnuradio] pybombs gnuradio install and sudo

Your sudo call resets the environment, and that includes things like
PYTHONPATH, PATH and LD_LIBRARY_PATH.

You need to add the right options to sudo.

I'll carefully point out that the code in tuntap_pdu isn't really safe
by any means. You generally should probably avoid running GNU Radio as
root.

The easiest whilst-still-safe way forward:

just run `sudo ip tuntap add grtunnel mode tun user sumit` (assuming
sumit is your unprivileged user) and then, run your program as normal
user.

Sadly, haven't tested that.

Best regards,
Marcus

On Mon, 2019-07-22 at 16:55 +0200, sumit kumar wrote:
> Hi,
> When I try to run any gnuradio program with sudo (inside pybombs environment), it simply throws the error
>
> ImportError: No module named gnuradio
>
> For example when I try to run tunnel based programs, which need ioctl calls and hence sudo or root.
>
> Without sudo it says operation not permitted and with sudo it says ImportError: No module named gnuradio
>
> Solution ? :-/
>
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

No comments:

Post a Comment