Hello Evans:

As the error message says, your Python binary is not seeing the Python module 
named 'gnuradio'. It simply does not have right libraries to run your Python 
code.


If you installed the Windows distribution of GNU Radio, one thing that you must 
note is the fact that the distribution uses its own Python binary and 
libraries. It will not touch other Python installations on your PC, and use its 
own copy of CPython for the operation. The easiest workaround in such 
situations would be running your Python code on the GNU Radio Command Prompt, 
not on the default Windows command prompt. In that way, you can use the Python 
binary installed and used by your GNU Radio distribution to execute your code.

Regards,

Kyeong Su Shin


________________________________
보낸 사람: evans ryanada <evans.ryan...@gmail.com> 대신 Discuss-gnuradio 
<discuss-gnuradio-bounces+ksshin=postech.ac...@gnu.org>
보낸 날짜: 2018년 6월 21일 목요일 오후 2:37:21
받는 사람: discuss-gnuradio@gnu.org
제목: [Discuss-gnuradio] ImportError: No module named 'gnuradio'

i am trying to run a .py file generated from GRC 3.7.11 but am getting an 
error...displaying the following message..

C:\Users\production\Desktop\flexsdr>gps-sdr-sim-uhd.py
Traceback (most recent call last):
  File "C:\Users\production\Desktop\flexsdr\gps-sdr-sim-uhd.py", line 6, in <mod
ule>
    from gnuradio import blocks
ImportError: No module named 'gnuradio'

i have installed python 2.7.15 on my pc which runs on windows 8

what could be the problem?
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to