SignalsEverywhere / gr-dect2

GNURadio DECT Audio Decoder, Updated for US channels
GNU General Public License v3.0
63 stars 19 forks source link

Got an error in GRC #6

Open neo7530 opened 5 years ago

neo7530 commented 5 years ago

File "/home/marco/compile/gr-dect2/grc/top_block.py", line 153 self.console_0 = Template error: #set $win = 'self.%s'%$id ^ SyntaxError: invalid syntax

Whats going wrong here?

KR0SIV commented 5 years ago

Is this after compiling?

neo7530 commented 5 years ago

This is while compiling...

KR0SIV commented 5 years ago

Doesn't look like a compile error, looks like a failure to execute the top_block python script.

Follow this and let me know if you're still having issues. https://www.youtube.com/watch?v=AlfABN_beQg

jmceara commented 5 years ago

Exactly same problem! The only difference from video is that I'm using ubuntu 18.04.01 (latest version).

neo7530 commented 5 years ago

same as me... ubuntu 18.04.01

KR0SIV commented 5 years ago

There may be a compatability issue on newer versions of linux, I'll have to take a look. This was forked from an older distro

kevtheskin commented 5 years ago

Thanks peeps

There may be a compatability issue on newer versions of linux, I'll have to take a look. This was forked from an older distro

dosformat123 commented 5 years ago

Is there any update on this?

When I press start to get the hackRF running it comes up with the above error and I am using 18.04 as well.

mluis commented 4 years ago

+1 Removing the console block proceeds with the program.

Any update on this? Please note https://github.com/gnuradio/gr-inspector/issues/29 It seems related to Qt4 VS Qt5

nonm90 commented 4 years ago

Any updates or smart tips how solving the "line 153" problem?

FeedMePizza commented 3 years ago

To fix the "line 153" problem, apply this simple patch.

--- grc/dect2_console.xml.orig  2021-06-07 19:04:10.000000000 -0500
+++ grc/dect2_console.xml       2021-06-08 16:55:00.010058549 -0500
@@ -5,7 +5,7 @@
   <import>import dect2</import>
   <make>#set $win = 'self.%s'%$id
 dect2.console()
-$(gui_hint()($win))
+$(gui_hint()%($win))
   </make>
   <param>
     <name>GUI Hint</name>

This just adds a "%" character between gui_hint() and ($win) in line 8 of grc/dect2_console.xml.

With this patch and xscode's python/console.py file found at https://github.com/xscode/misc_scripts/blob/master/console.py (see issue #7 thread), I was able to get this running under a standard Ubuntu 18.04 installation which uses gnuradio 3.7.11.