# Run gr\_specest

**URL:** <https://www.ruby-forum.com/t/run-gr-specest/231400>\
**Category:** GNU Radio\
**Created:** [August 6, 2014, 9:00am UTC](https://www.ruby-forum.com/t/run-gr-specest/231400 "2014-08-06T09:00:32Z")\
**Posts on this page:** 7\
**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:** [August 6, 2014, 9:00am UTC](https://www.ruby-forum.com/t/run-gr-specest/231400/1 "2014-08-06T09:00:32Z")

</div>

Hi all:  
I have installed the gr\_specest toolbox successfully.And I use  
the gnuradio 3.7.5.But when I run the specest\_from\_file.py,error  
exists:

```
     File "/usr/local/bin/specest_from_file.py", line 142

```

SyntaxError: Non-ASCII character ‘\xce’ in file  
/usr/local/bin/specest\_from\_file.py on line 142, but no encoding  
declared; see [PEP 263 – Defining Python Source Code Encodings | peps.python.org](http://www.python.org/peps/pep-0263.html) for details

```
Can someone explain it to me?Also I can't find the file 4cos.dat as 

```

[https://www.cgran.org/wiki/SpecEst#HowToRun](https://www.cgran.org/wiki/SpecEst#HowToRun) shows.  
Thank you so much.  
Best regards,  
xd

---

<div class="post-metadata">

**Author:** ![xianda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/b38774/32.png) [@xianda](https://www.ruby-forum.com/u/xianda)\
**Post date:** [August 6, 2014, 11:06am UTC](https://www.ruby-forum.com/t/run-gr-specest/231400/2 "2014-08-06T11:06:06Z")

</div>

That’s actually a bug; I’ve submitted a pull request. You can locally  
use my change by doing  
git pull [GitHub - marcusmueller/gr-specest: A module adding spectral estimation routines to GNU Radio.](https://github.com/marcusmueller/gr-specest.git) fix\_encoding

Greetings,  
Marcus

---

<div class="post-metadata">

**Author:** ![xianda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/b38774/32.png) [@xianda](https://www.ruby-forum.com/u/xianda)\
**Post date:** [August 6, 2014, 2:10pm UTC](https://www.ruby-forum.com/t/run-gr-specest/231400/3 "2014-08-06T14:10:34Z")

</div>

Sorry, my bad. Fixed my fix, should be clear now. Maybe you have to pull  
–force, sorry about that.

---

<div class="post-metadata">

**Author:** ![xianda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/b38774/32.png) [@xianda](https://www.ruby-forum.com/u/xianda)\
**Post date:** [August 6, 2014, 12:21pm UTC](https://www.ruby-forum.com/t/run-gr-specest/231400/4 "2014-08-06T12:21:41Z")

</div>

Hi Marcus:  
Thank you so much.And I’m doing:  
git pull  
[GitHub - marcusmueller/gr-specest: A module adding spectral estimation routines to GNU Radio.](https://github.com/marcusmueller/gr-specest.git) fix\_encoding  
And I also type:  
cd build  
cmake …  
make  
sudo make install  
sudo ldconfig  
But the error also exists.Can you help me?Or need I remove all the  
document and git clone from  
[GitHub - marcusmueller/gr-specest: A module adding spectral estimation routines to GNU Radio.](https://github.com/marcusmueller/gr-specest.git)?  
Best regards,  
xd

At 2014-08-06 05:04:46, “Marcus M.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:  
That’s actually a bug; I’ve submitted a pull request. You can locally  
use my change by doing  
git pull [GitHub - marcusmueller/gr-specest: A module adding spectral estimation routines to GNU Radio.](https://github.com/marcusmueller/gr-specest.git) fix\_encoding

Greetings,  
Marcus

On 06.08.2014 08:58, xianda wrote:

Hi all:  
I have installed the gr\_specest toolbox successfully.And I use  
the gnuradio 3.7.5.But when I run the specest\_from\_file.py,error  
exists:

```
     File "/usr/local/bin/specest_from_file.py", line 142

```

SyntaxError: Non-ASCII character ‘\xce’ in file  
/usr/local/bin/specest\_from\_file.py on line 142, but no encoding  
declared; see [PEP 263 – Defining Python Source Code Encodings | peps.python.org](http://www.python.org/peps/pep-0263.html) for details

```
Can someone explain it to me?Also I can't find the file 4cos.dat as 

```

[https://www.cgran.org/wiki/SpecEst#HowToRun](https://www.cgran.org/wiki/SpecEst#HowToRun) shows.  
Thank you so much.  
Best regards,  
xd

---

<div class="post-metadata">

**Author:** ![xianda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/b38774/32.png) [@xianda](https://www.ruby-forum.com/u/xianda)\
**Post date:** [August 6, 2014, 2:51pm UTC](https://www.ruby-forum.com/t/run-gr-specest/231400/5 "2014-08-06T14:51:03Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

I guess that is just an invocation example, so there is no 4cos.dat;  
you should supply your own signal file.

On 06.08.2014 14:35, xianda wrote:

> > > And I also type: cd build cmake .. make sudo make install sudo
> > > 
> > > Can someone explain it to me?Also I can’t find the file
> > 
> > >

* * *

> > Discuss-gnuradio mailing list [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> > [Discuss-gnuradio Info Page](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)  
> > -----BEGIN PGP SIGNATURE-----  
> > Version: GnuPG v1

iQEcBAEBAgAGBQJT4iRTAAoJEAFxB7BbsDrL4ZAH/3xDrpsZI1iZZTR3DXcmVUim  
31tyYy5O/4uHPVI6vjIc6/sB9wFyEEyB/NUfM6hTvtKTifZ23O8kWSR3ifRYQSz1  
XptqfDYDaiUSY0NrHfixVaCb9PrmQzL44IUSwOUgpsN/YD4Ngjpu700YxZyST5gA  
2OTuIrCjmGAQtpfoC3V3FXJRay8+7c534Rb3sigNi2e1AAHYbn2OXM9z+pDUfE31  
NieuI91DAlMp/QwYxxFka30ZwW/HQ8IA18peZbR6/9BrLHctrrBoVqLRhgQX91p6  
gPQTaih6bbiQNlPR5nX8qRLTjszDOF18LUJLrgTtvLwbeonJOTkUnHfRcKuVXwM=  
=0FrN  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![xianda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/b38774/32.png) [@xianda](https://www.ruby-forum.com/u/xianda)\
**Post date:** [August 7, 2014, 10:31am UTC](https://www.ruby-forum.com/t/run-gr-specest/231400/6 "2014-08-07T10:31:42Z")

</div>

On 08/06/2014 11:04 AM, Marcus M. wrote:

> That’s actually a bug; I’ve submitted a pull request. You can locally

In fact, it’s a bug in GNU Radio.

See: [http://gnuradio.org/redmine/issues/707](http://gnuradio.org/redmine/issues/707)  
And: [Source code encoding not properly declared · Issue #9 · kit-cel/gr-specest · GitHub](https://github.com/kit-cel/gr-specest/issues/9)

M

---

<div class="post-metadata">

**Author:** ![xianda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/b38774/32.png) [@xianda](https://www.ruby-forum.com/u/xianda)\
**Post date:** [August 6, 2014, 2:36pm UTC](https://www.ruby-forum.com/t/run-gr-specest/231400/7 "2014-08-06T14:36:45Z")

</div>

Hi Marcus:  
Thank you so much for your kindly reply.It now can  
run.And I want to know where can I find the docuement 4cos.dat as some  
examples shows.  
Just like this:  
specest\_from\_file.py -M welch -S 4cos.dat  
4cos.dat: No such file or directory  
Best regards,  
xd
