# Gr.file\_sink Issue

**URL:** <https://www.ruby-forum.com/t/gr-file-sink-issue/237033>\
**Category:** GNU Radio\
**Created:** [October 21, 2013, 1:46am UTC](https://www.ruby-forum.com/t/gr-file-sink-issue/237033 "2013-10-21T01:46:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [October 21, 2013, 1:46am UTC](https://www.ruby-forum.com/t/gr-file-sink-issue/237033/1 "2013-10-21T01:46:30Z")

</div>

I looked everywhere for information pertaining to this question, but  
nothing worked.

I am starting with a sample for recording information from my USRP  
(N210),  
but I am running into issues with:

self.gr\_file\_sink = gr.file\_sink(gr.sizeof\_complex, “data.dat”)

When I try running it, I get:

AttributeError: ‘module’ object has no attribute ‘file\_sink’

Where am I going wrong? Is this an issue with my installation, something  
to  
do with C++/Python configuration? I followed the instructions for setup  
from Ettus (  
[http://code.ettus.com/redmine/ettus/projects/uhd/wiki/GNURadio\_Windows](http://code.ettus.com/redmine/ettus/projects/uhd/wiki/GNURadio_Windows)).

I was having issues with WX on GNURadio-Companion (Windows), and I  
cannot  
get my network configured for Linux, so I resorted to a Python script in  
Windows.

Any help (including pointing me to reference pages or links) will be  
appreciated.

Thank you.

---

<div class="post-metadata">

**Author:** ![Paul\_BSHuter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@Paul\_BSHuter](https://www.ruby-forum.com/u/Paul_BSHuter)\
**Post date:** [October 21, 2013, 9:29am UTC](https://www.ruby-forum.com/t/gr-file-sink-issue/237033/2 "2013-10-21T09:29:13Z")

</div>

Hi Paul,

if you’re using GR 3.7, the “standard” blocks have moved from the /gr/  
module to the /blocks/ module.  
If you’re using 3.6, further investigation is necessary.

Greetings,  
Marcus
