# Syntax error in python file generated

**URL:** <https://www.ruby-forum.com/t/syntax-error-in-python-file-generated/255349>\
**Category:** GNU Radio\
**Created:** [February 17, 2020, 3:01pm UTC](https://www.ruby-forum.com/t/syntax-error-in-python-file-generated/255349 "2020-02-17T15:01:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tuyo408](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/d07c76/32.png) [@tuyo408](https://www.ruby-forum.com/u/tuyo408)\
**Post date:** [February 17, 2020, 3:01pm UTC](https://www.ruby-forum.com/t/syntax-error-in-python-file-generated/255349/1 "2020-02-17T15:01:28Z")

</div>

Hello,

I have the following error when running the basic OFDM example from GNU Radio.

```
self.length_tag_key = length_tag_key = "packet_len"
       ^
SyntaxError: invalid syntax

```

The python file generated is executed by default with python3 so I guess that’s an issue with this python version.

Do you know how to figure this out ?

Best

---

<div class="post-metadata">

**Author:** ![tuyo408](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/d07c76/32.png) [@tuyo408](https://www.ruby-forum.com/u/tuyo408)\
**Post date:** [February 29, 2020, 4:16pm UTC](https://www.ruby-forum.com/t/syntax-error-in-python-file-generated/255349/2 "2020-02-29T16:16:22Z")

</div>

Just solved this issue fixing the default python version in the system.
