# Error while running the .cc files in gr-bluetooth

**URL:** <https://www.ruby-forum.com/t/error-while-running-the-cc-files-in-gr-bluetooth/227367>\
**Category:** GNU Radio\
**Created:** [March 13, 2013, 6:33am UTC](https://www.ruby-forum.com/t/error-while-running-the-cc-files-in-gr-bluetooth/227367 "2013-03-13T06:33:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![john\_old](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Post date:** [March 13, 2013, 6:33am UTC](https://www.ruby-forum.com/t/error-while-running-the-cc-files-in-gr-bluetooth/227367/1 "2013-03-13T06:33:44Z")

</div>

when i try running a .cc file of gr-bluetooth , i get certain errors  
that  
some .h files are not there and it results in fatal error…

snigdha@ubuntu:~/gr-bluetooth/src/lib$ gcc bluetooth.cc  
bluetooth.cc:149:20: fatal error: Python.h: No such file or directory  
compilation terminated.

when i run bluetooth.py, swig import error occurs and an import error  
occurs…

snigdha@ubuntu:~/gr-bluetooth/src/lib$ python bluetooth  
python: can’t open file ‘bluetooth’: [Errno 2] No such file or directory  
snigdha@ubuntu:~/gr-bluetooth/src/lib$ python bluetooth.py  
Traceback (most recent call last):  
File “bluetooth.py”, line 24, in   
\_bluetooth = swig\_import\_helper()  
File “bluetooth.py”, line 16, in swig\_import\_helper  
import \_bluetooth  
ImportError: No module named \_bluetooth

How do i resolve this error…

–  
View this message in context:  
[http://gnuradio.4.n7.nabble.com/error-while-running-the-cc-files-in-gr-bluetooth-tp40133.html](http://gnuradio.4.n7.nabble.com/error-while-running-the-cc-files-in-gr-bluetooth-tp40133.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![john\_old](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Post date:** [March 18, 2013, 11:09pm UTC](https://www.ruby-forum.com/t/error-while-running-the-cc-files-in-gr-bluetooth/227367/2 "2013-03-18T23:09:46Z")

</div>

On Tue, Mar 12, 2013 at 10:32:13PM -0700, john wrote:

> when i try running a .cc file of gr-bluetooth , i get certain errors  
> that some .h files are not there and it results in fatal error…
> 
> snigdha@ubuntu:~/gr-bluetooth/src/lib$ gcc bluetooth.cc  
> bluetooth.cc:149:20: fatal error: Python.h: No such file or directory  
> compilation terminated.

Sorry this took me so long to get to. The best place to get help on  
gr-bluetooth is the Ubertooth mailing list or irc channel. (It is only  
vaguely relevant to Ubertooth, but it is mostly the same developers and  
a related codebase.)

I think the main cause of the error above is that you tried to use gcc  
directly instead of using make. See the README file.

Mike
