Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gnuradio 3.8 #35

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Gnuradio 3.8 #35

wants to merge 6 commits into from

Conversation

miguellopes
Copy link

Added compatibility with Gnuradio 3.8 and python3

@alphafox02
Copy link

Thought I'd try this on 20.04 with GR 3.8/Python3, however I ended up with issues trying to generate the example blocks. Is it expected a user should be able to compile all blocks and use the example flow graphs provided?

python3 hier_block_install_helper.py
['grcc', 'hier_blocks/lte_channel_estimator_mimo_2tx.grc']
<<< Welcome to GNU Radio Companion Compiler 3.8.1.0 >>>

Block paths:
/home/dragon/.grc_gnuradio
/usr/share/gnuradio/grc/blocks
/usr/local/share/gnuradio/grc/blocks

Loading: /usr/src/gr-lte/examples/hier_blocks/lte_channel_estimator_mimo_2tx.grc
Converting from XML
ERROR:gnuradio.grc.core.FlowGraph:Failed to evaluate parameter block estimator_key
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gnuradio/grc/core/FlowGraph.py", line 216, in renew_namespace
value = eval(parameter_block.params['value'].to_code(), namespace)
File "", line 1, in
NameError: name 'slot' is not defined
ERROR:gnuradio.grc.core.FlowGraph:Failed to evaluate parameter block estimator_key
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gnuradio/grc/core/FlowGraph.py", line 216, in renew_namespace
value = eval(parameter_block.params['value'].to_code(), namespace)
File "", line 1, in
NameError: name 'slot' is not defined
ERROR:gnuradio.grc.core.FlowGraph:Failed to evaluate parameter block estimator_key
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gnuradio/grc/core/FlowGraph.py", line 216, in renew_namespace
value = eval(parameter_block.params['value'].to_code(), namespace)
File "", line 1, in
NameError: name 'slot' is not defined
Generating: /home/dragon/.grc_gnuradio/lte_channel_estimator_mimo_2tx.py
['grcc', 'hier_blocks/lte_ofdm_demodulator_mimo_2tx.grc']
<<< Welcome to GNU Radio Companion Compiler 3.8.1.0 >>>

Block paths:
/home/dragon/.grc_gnuradio
/usr/share/gnuradio/grc/blocks
/usr/local/share/gnuradio/grc/blocks

Loading: /usr/src/gr-lte/examples/hier_blocks/lte_ofdm_demodulator_mimo_2tx.grc
Converting from XML
ERROR:gnuradio.grc.core.FlowGraph:Failed to evaluate parameter block ofdm_key
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gnuradio/grc/core/FlowGraph.py", line 216, in renew_namespace
value = eval(parameter_block.params['value'].to_code(), namespace)
File "", line 1, in
NameError: name 'slot' is not defined
ERROR:gnuradio.grc.core.FlowGraph:Failed to evaluate parameter block ofdm_key
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gnuradio/grc/core/FlowGraph.py", line 216, in renew_namespace
value = eval(parameter_block.params['value'].to_code(), namespace)
File "", line 1, in
NameError: name 'slot' is not defined
ERROR:gnuradio.grc.core.FlowGraph:Failed to evaluate parameter block ofdm_key
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gnuradio/grc/core/FlowGraph.py", line 216, in renew_namespace
value = eval(parameter_block.params['value'].to_code(), namespace)
File "", line 1, in
NameError: name 'slot' is not defined
Generating: /home/dragon/.grc_gnuradio/lte_ofdm_demodulator_mimo_2tx.py
['grcc', 'hier_blocks/lte_cp_ffo_sync_mimo_2tx.grc']
<<< Welcome to GNU Radio Companion Compiler 3.8.1.0 >>>

Block paths:
/home/dragon/.grc_gnuradio
/usr/share/gnuradio/grc/blocks
/usr/local/share/gnuradio/grc/blocks

Loading: /usr/src/gr-lte/examples/hier_blocks/lte_cp_ffo_sync_mimo_2tx.grc
Converting from XML
Generating: /home/dragon/.grc_gnuradio/lte_cp_ffo_sync_mimo_2tx.py
['grcc', 'hier_blocks/lte_sss_sync.grc']
<<< Welcome to GNU Radio Companion Compiler 3.8.1.0 >>>

Block paths:
/home/dragon/.grc_gnuradio
/usr/share/gnuradio/grc/blocks
/usr/local/share/gnuradio/grc/blocks

Loading: /usr/src/gr-lte/examples/hier_blocks/lte_sss_sync.grc
Generating: /home/dragon/.grc_gnuradio/lte_sss_sync.py
['grcc', 'hier_blocks/lte_pbch_decoder_mimo_2tx.grc']
<<< Welcome to GNU Radio Companion Compiler 3.8.1.0 >>>

Block paths:
/home/dragon/.grc_gnuradio
/usr/share/gnuradio/grc/blocks
/usr/local/share/gnuradio/grc/blocks

Loading: /usr/src/gr-lte/examples/hier_blocks/lte_pbch_decoder_mimo_2tx.grc
Converting from XML
Generating: /home/dragon/.grc_gnuradio/lte_pbch_decoder_mimo_2tx.py
['grcc', 'hier_blocks/lte_pss_sync.grc']
<<< Welcome to GNU Radio Companion Compiler 3.8.1.0 >>>

Block paths:
/home/dragon/.grc_gnuradio
/usr/share/gnuradio/grc/blocks
/usr/local/share/gnuradio/grc/blocks

Loading: /usr/src/gr-lte/examples/hier_blocks/lte_pss_sync.grc
Converting from XML
Generating: /home/dragon/.grc_gnuradio/lte_pss_sync.py
['grcc', 'hier_blocks/lte_pbch_descrambler.grc']
<<< Welcome to GNU Radio Companion Compiler 3.8.1.0 >>>

Block paths:
/home/dragon/.grc_gnuradio
/usr/share/gnuradio/grc/blocks
/usr/local/share/gnuradio/grc/blocks

Loading: /usr/src/gr-lte/examples/hier_blocks/lte_pbch_descrambler.grc
Converting from XML
Generating: /home/dragon/.grc_gnuradio/lte_pbch_descrambler.py
['grcc', 'hier_blocks/lte_pbch_decoder.grc']
<<< Welcome to GNU Radio Companion Compiler 3.8.1.0 >>>

Block paths:
/home/dragon/.grc_gnuradio
/usr/share/gnuradio/grc/blocks
/usr/local/share/gnuradio/grc/blocks

Loading: /usr/src/gr-lte/examples/hier_blocks/lte_pbch_decoder.grc
Converting from XML
Generating: /home/dragon/.grc_gnuradio/lte_pbch_decoder.py
['grcc', 'hier_blocks/lte_pss_sync_direct_mimo_2tx.grc']
<<< Welcome to GNU Radio Companion Compiler 3.8.1.0 >>>

Block paths:
/home/dragon/.grc_gnuradio
/usr/share/gnuradio/grc/blocks
/usr/local/share/gnuradio/grc/blocks

Loading: /usr/src/gr-lte/examples/hier_blocks/lte_pss_sync_direct_mimo_2tx.grc
Converting from XML
Load Error: /usr/src/gr-lte/examples/hier_blocks/lte_pss_sync_direct_mimo_2tx.grc: invalid literal for int() with base 10: 'rxant'
Compilation error
['grcc', 'hier_blocks/lte_sss_sync_freq_domain_mimo_2tx.grc']
<<< Welcome to GNU Radio Companion Compiler 3.8.1.0 >>>

Block paths:
/home/dragon/.grc_gnuradio
/usr/share/gnuradio/grc/blocks
/usr/local/share/gnuradio/grc/blocks

Loading: /usr/src/gr-lte/examples/hier_blocks/lte_sss_sync_freq_domain_mimo_2tx.grc
Converting from XML
Generating: /home/dragon/.grc_gnuradio/lte_sss_sync_freq_domain_mimo_2tx.py
['grcc', 'hier_blocks/lte_cp_ffo_sync.grc']
<<< Welcome to GNU Radio Companion Compiler 3.8.1.0 >>>

Block paths:
/home/dragon/.grc_gnuradio
/usr/share/gnuradio/grc/blocks
/usr/local/share/gnuradio/grc/blocks

Loading: /usr/src/gr-lte/examples/hier_blocks/lte_cp_ffo_sync.grc
Generating: /home/dragon/.grc_gnuradio/lte_cp_ffo_sync.py
['grcc', 'hier_blocks/lte_pcfich_decoder.grc']
<<< Welcome to GNU Radio Companion Compiler 3.8.1.0 >>>

Block paths:
/home/dragon/.grc_gnuradio
/usr/share/gnuradio/grc/blocks
/usr/local/share/gnuradio/grc/blocks

Loading: /usr/src/gr-lte/examples/hier_blocks/lte_pcfich_decoder.grc
Converting from XML
Generating: /home/dragon/.grc_gnuradio/lte_pcfich_decoder.py
['grcc', 'hier_blocks/lte_bch_decoder.grc']
<<< Welcome to GNU Radio Companion Compiler 3.8.1.0 >>>

Block paths:
/home/dragon/.grc_gnuradio
/usr/share/gnuradio/grc/blocks
/usr/local/share/gnuradio/grc/blocks

Loading: /usr/src/gr-lte/examples/hier_blocks/lte_bch_decoder.grc
Converting from XML
Generating: /home/dragon/.grc_gnuradio/lte_bch_decoder.py
['grcc', 'hier_blocks/lte_pbch_decoder_mimo_4tx.grc']
<<< Welcome to GNU Radio Companion Compiler 3.8.1.0 >>>

Block paths:
/home/dragon/.grc_gnuradio
/usr/share/gnuradio/grc/blocks
/usr/local/share/gnuradio/grc/blocks

Loading: /usr/src/gr-lte/examples/hier_blocks/lte_pbch_decoder_mimo_4tx.grc
Converting from XML
Generating: /home/dragon/.grc_gnuradio/lte_pbch_decoder_mimo_4tx.py
['grcc', 'hier_blocks/lte_ofdm_demodulator.grc']
<<< Welcome to GNU Radio Companion Compiler 3.8.1.0 >>>

Block paths:
/home/dragon/.grc_gnuradio
/usr/share/gnuradio/grc/blocks
/usr/local/share/gnuradio/grc/blocks

Loading: /usr/src/gr-lte/examples/hier_blocks/lte_ofdm_demodulator.grc
Generating: /home/dragon/.grc_gnuradio/lte_ofdm_demodulator.py
['grcc', 'hier_blocks/lte_channel_estimator.grc']
<<< Welcome to GNU Radio Companion Compiler 3.8.1.0 >>>

Block paths:
/home/dragon/.grc_gnuradio
/usr/share/gnuradio/grc/blocks
/usr/local/share/gnuradio/grc/blocks

Loading: /usr/src/gr-lte/examples/hier_blocks/lte_channel_estimator.grc
Converting from XML
Generating: /home/dragon/.grc_gnuradio/lte_channel_estimator.py
['grcc', 'hier_blocks/lte_channel_estimator_mimo_4tx.grc']
<<< Welcome to GNU Radio Companion Compiler 3.8.1.0 >>>

Block paths:
/home/dragon/.grc_gnuradio
/usr/share/gnuradio/grc/blocks
/usr/local/share/gnuradio/grc/blocks

Loading: /usr/src/gr-lte/examples/hier_blocks/lte_channel_estimator_mimo_4tx.grc
Converting from XML
ERROR:gnuradio.grc.core.FlowGraph:Failed to evaluate parameter block estimator_key
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gnuradio/grc/core/FlowGraph.py", line 216, in renew_namespace
value = eval(parameter_block.params['value'].to_code(), namespace)
File "", line 1, in
NameError: name 'slot' is not defined
ERROR:gnuradio.grc.core.FlowGraph:Failed to evaluate parameter block estimator_key
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gnuradio/grc/core/FlowGraph.py", line 216, in renew_namespace
value = eval(parameter_block.params['value'].to_code(), namespace)
File "", line 1, in
NameError: name 'slot' is not defined
ERROR:gnuradio.grc.core.FlowGraph:Failed to evaluate parameter block estimator_key
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gnuradio/grc/core/FlowGraph.py", line 216, in renew_namespace
value = eval(parameter_block.params['value'].to_code(), namespace)
File "", line 1, in
NameError: name 'slot' is not defined
Generating: /home/dragon/.grc_gnuradio/lte_channel_estimator_mimo_4tx.py

@alphafox02
Copy link

Looking closer it appears most of the heir blocks are not generating properly with my gnuradio 3.8.1 build. I don’t suppose you’re still monitoring this or have time for a quick test on a distro I’m working with?

@miguellopes
Copy link
Author

miguellopes commented Apr 24, 2021

@alphafox02, I currently don't have the time to look at it, but from gnuradio 3.8 the hier_blocks are now YAML files and not the XML ones. I checked if the YAMLs were working on GR 3.8.2 and they aren't so not sure if this is useful to you

@alphafox02
Copy link

Thank you for taking a quick look. I sat and messed with it for awhile, opening each .grc file and having a look. There seem to be unique errors throughout and I’m not that familiar with the differences in GR. I took a break for now, still would be a cool project to use for LTE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants