# ImportError: cannot import name channels

**URL:** <https://www.ruby-forum.com/t/importerror-cannot-import-name-channels/230606>\
**Category:** GNU Radio\
**Created:** [June 25, 2014, 8:25pm UTC](https://www.ruby-forum.com/t/importerror-cannot-import-name-channels/230606 "2014-06-25T20:25:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason\_sam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7993a0/32.png) [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Post date:** [June 25, 2014, 8:25pm UTC](https://www.ruby-forum.com/t/importerror-cannot-import-name-channels/230606/1 "2014-06-25T20:25:33Z")

</div>

Hi,

I am getting the following error

ImportError: cannot import name channels… when I run a python script.

I added the following line to a code

from gnuradio import channels

First I made a simulation model using gnuradio-companion and started  
making changes to the top\_block.py code…  
Basically I want to add a fading channel model to my simulation and cant  
find a fading channel model block which has a doppler shift variable in  
gnuradio-companion. So I am trying to add it by editing the code.  
How can I fix this error.

If I comment out the line “from gnuradio import channel” I get the  
following errors

Error: failed to enable realtime scheduling  
USing Volk machine: sse3\_64\_orc  
Traceback(most recent call last):  
File “top\_block.py~”, line 127, in   
tb= top\_block()  
File “top\_block.py~” , line 69, in\_init\_  
self.gr\_fading\_model=gr.fading\_model(  
AttributeError: ‘module’ object has no attribute ‘fading model’

I am using Vsphere client to log onto a server and use virtual ubuntu.

Thanks.
