Discussion and technical support related to USRP, UHD, RFNoC
View all threadsHi All, It's been some time since I've tried to build anything rfnoc
related. I am trying to build an image for X310 using the latest UHD 4.7 on
Ubuntu 22.04.
I think I installed the necessary prerequisites including ruamel.yaml.
pip3 show ruamel.yaml
Name: ruamel.yaml
Version: 0.18.6
Summary: ruamel.yaml is a YAML parser/emitter that supports roundtrip
preservation of comments, seq/map flow style, and map key order
Home-page:
Author: Anthon van der Neut
Author-email: a.van.der.neut@ruamel.eu
License: MIT license
Location: /home/rynmrlw/.local/lib/python3.10/site-packages
Requires: ruamel.yaml.clib
When I run rfnoc_image_builder I see the following error:
rfnoc_image_builder -y x310_XG_rfnoc_image_core.yml --target X310_XG
--vivado-path /disk3/Xilinx/Vivado/2021.1 --image_core_name
x310_XG_rfnoc_image_core
Using FPGA directory /home/rynmrlw/Documents/PRA/uhd/fpga
Selected device: x310
Build artifacts directory already exists (contents will be overwritten).
Traceback (most recent call last):
File "/usr/bin/rfnoc_image_builder", line 348, in <module>
sys.exit(main())
File "/usr/bin/rfnoc_image_builder", line 311, in main
return image_builder.build_image(
File
"/usr/lib/python3.10/site-packages/uhd/imgbuilder/image_builder.py", line
391, in build_image
known_modules = load_module_yamls(config_path,
args.get('include_paths', []))
File
"/usr/lib/python3.10/site-packages/uhd/imgbuilder/image_builder.py", line
324, in load_module_yamls
known_modules = {
File
"/usr/lib/python3.10/site-packages/uhd/imgbuilder/image_builder.py", line
325, in <dictcomp>
module_type: load_module_descs(module_type)
File
"/usr/lib/python3.10/site-packages/uhd/imgbuilder/image_builder.py", line
322, in load_module_descs
return yaml_utils.read_yaml_definitions(*paths)
File "/usr/lib/python3.10/site-packages/uhd/imgbuilder/yaml_utils.py",
line 340, in read_yaml_definitions
data = ordered_load(stream)
File "/usr/lib/python3.10/site-packages/uhd/imgbuilder/yaml_utils.py",
line 230, in ordered_load
return yaml.load(stream, OrderedLoader)
File
"/home/rynmrlw/.local/lib/python3.10/site-packages/ruamel/yaml/main.py",
line 1085, in load
error_deprecation('load', 'load', arg=_error_dep_arg,
comment=_error_dep_comment)
File
"/home/rynmrlw/.local/lib/python3.10/site-packages/ruamel/yaml/main.py",
line 1039, in error_deprecation
raise AttributeError(s, name=None)
AttributeError:
"load()" has been removed, use
yaml = YAML(typ='rt')
yaml.load(...)
and register any classes that you use, or check the tag attribute on the
loaded data,
instead of file
"/usr/lib/python3.10/site-packages/uhd/imgbuilder/yaml_utils.py", line 230
return yaml.load(stream, OrderedLoader)
Is this a known error with a specific version of ruamel.yaml? Is there a
specific version I should use?
Interestingly, the manual for version 4.7 does not make any mention of
ruamel.yaml as a prerequisite.
https://files.ettus.com/manual/md_usrp3_build_instructions.html
Ryan L. Marlow
R L Marlow Consulting LLC
rlmarlow.com
I’ve run into this problem with UHD 4.6. That specific function got removed in the latest version so in order to make it work, I had to downgrade the ruamel.yaml version with the following:
pip install "ruamel.yaml<0.18.0"
Once you downgrade it, it should work.
Hey Ryan,
Chris' solution will get you running. If you're feeling adventurous, we've
actually done a lot of work on rfnoc_image_builder since the release, so
the master branch version of UHD has a fix for this issue (no need to
downgrade ruamel.yaml), but of course it requires building UHD from source
which I only recommend to advanced users who know how to do this by
themselves (you're probably one of them).
--M
On Tue, Oct 1, 2024 at 7:16 PM Ryan Marlow ryan@lmarlow.com wrote:
Hi All, It's been some time since I've tried to build anything rfnoc
related. I am trying to build an image for X310 using the latest UHD 4.7 on
Ubuntu 22.04.
I think I installed the necessary prerequisites including ruamel.yaml.
pip3 show ruamel.yaml
Name: ruamel.yaml
Version: 0.18.6
Summary: ruamel.yaml is a YAML parser/emitter that supports roundtrip
preservation of comments, seq/map flow style, and map key order
Home-page:
Author: Anthon van der Neut
Author-email: a.van.der.neut@ruamel.eu
License: MIT license
Location: /home/rynmrlw/.local/lib/python3.10/site-packages
Requires: ruamel.yaml.clib
When I run rfnoc_image_builder I see the following error:
rfnoc_image_builder -y x310_XG_rfnoc_image_core.yml --target X310_XG
--vivado-path /disk3/Xilinx/Vivado/2021.1 --image_core_name
x310_XG_rfnoc_image_core
Using FPGA directory /home/rynmrlw/Documents/PRA/uhd/fpga
Selected device: x310
Build artifacts directory already exists (contents will be overwritten).
Traceback (most recent call last):
File "/usr/bin/rfnoc_image_builder", line 348, in <module>
sys.exit(main())
File "/usr/bin/rfnoc_image_builder", line 311, in main
return image_builder.build_image(
File
"/usr/lib/python3.10/site-packages/uhd/imgbuilder/image_builder.py", line
391, in build_image
known_modules = load_module_yamls(config_path,
args.get('include_paths', []))
File
"/usr/lib/python3.10/site-packages/uhd/imgbuilder/image_builder.py", line
324, in load_module_yamls
known_modules = {
File
"/usr/lib/python3.10/site-packages/uhd/imgbuilder/image_builder.py", line
325, in <dictcomp>
module_type: load_module_descs(module_type)
File
"/usr/lib/python3.10/site-packages/uhd/imgbuilder/image_builder.py", line
322, in load_module_descs
return yaml_utils.read_yaml_definitions(*paths)
File "/usr/lib/python3.10/site-packages/uhd/imgbuilder/yaml_utils.py",
line 340, in read_yaml_definitions
data = ordered_load(stream)
File "/usr/lib/python3.10/site-packages/uhd/imgbuilder/yaml_utils.py",
line 230, in ordered_load
return yaml.load(stream, OrderedLoader)
File
"/home/rynmrlw/.local/lib/python3.10/site-packages/ruamel/yaml/main.py",
line 1085, in load
error_deprecation('load', 'load', arg=_error_dep_arg,
comment=_error_dep_comment)
File
"/home/rynmrlw/.local/lib/python3.10/site-packages/ruamel/yaml/main.py",
line 1039, in error_deprecation
raise AttributeError(s, name=None)
AttributeError:
"load()" has been removed, use
yaml = YAML(typ='rt')
yaml.load(...)
and register any classes that you use, or check the tag attribute on the
loaded data,
instead of file
"/usr/lib/python3.10/site-packages/uhd/imgbuilder/yaml_utils.py", line 230
return yaml.load(stream, OrderedLoader)
Is this a known error with a specific version of ruamel.yaml? Is there a
specific version I should use?
Interestingly, the manual for version 4.7 does not make any mention of
ruamel.yaml as a prerequisite.
https://files.ettus.com/manual/md_usrp3_build_instructions.html
Ryan L. Marlow
R L Marlow Consulting LLC
rlmarlow.com
USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-leave@lists.ettus.com
Chris's suggestion worked great. thanks Martin and Chris!
Ryan
On Wed, Oct 2, 2024 at 8:13 AM Martin Braun martin.braun@ettus.com wrote:
Hey Ryan,
Chris' solution will get you running. If you're feeling adventurous, we've
actually done a lot of work on rfnoc_image_builder since the release, so
the master branch version of UHD has a fix for this issue (no need to
downgrade ruamel.yaml), but of course it requires building UHD from source
which I only recommend to advanced users who know how to do this by
themselves (you're probably one of them).
--M
On Tue, Oct 1, 2024 at 7:16 PM Ryan Marlow ryan@lmarlow.com wrote:
Hi All, It's been some time since I've tried to build anything rfnoc
related. I am trying to build an image for X310 using the latest UHD 4.7 on
Ubuntu 22.04.
I think I installed the necessary prerequisites including ruamel.yaml.
pip3 show ruamel.yaml
Name: ruamel.yaml
Version: 0.18.6
Summary: ruamel.yaml is a YAML parser/emitter that supports roundtrip
preservation of comments, seq/map flow style, and map key order
Home-page:
Author: Anthon van der Neut
Author-email: a.van.der.neut@ruamel.eu
License: MIT license
Location: /home/rynmrlw/.local/lib/python3.10/site-packages
Requires: ruamel.yaml.clib
When I run rfnoc_image_builder I see the following error:
rfnoc_image_builder -y x310_XG_rfnoc_image_core.yml --target X310_XG
--vivado-path /disk3/Xilinx/Vivado/2021.1 --image_core_name
x310_XG_rfnoc_image_core
Using FPGA directory /home/rynmrlw/Documents/PRA/uhd/fpga
Selected device: x310
Build artifacts directory already exists (contents will be overwritten).
Traceback (most recent call last):
File "/usr/bin/rfnoc_image_builder", line 348, in <module>
sys.exit(main())
File "/usr/bin/rfnoc_image_builder", line 311, in main
return image_builder.build_image(
File
"/usr/lib/python3.10/site-packages/uhd/imgbuilder/image_builder.py", line
391, in build_image
known_modules = load_module_yamls(config_path,
args.get('include_paths', []))
File
"/usr/lib/python3.10/site-packages/uhd/imgbuilder/image_builder.py", line
324, in load_module_yamls
known_modules = {
File
"/usr/lib/python3.10/site-packages/uhd/imgbuilder/image_builder.py", line
325, in <dictcomp>
module_type: load_module_descs(module_type)
File
"/usr/lib/python3.10/site-packages/uhd/imgbuilder/image_builder.py", line
322, in load_module_descs
return yaml_utils.read_yaml_definitions(*paths)
File "/usr/lib/python3.10/site-packages/uhd/imgbuilder/yaml_utils.py",
line 340, in read_yaml_definitions
data = ordered_load(stream)
File "/usr/lib/python3.10/site-packages/uhd/imgbuilder/yaml_utils.py",
line 230, in ordered_load
return yaml.load(stream, OrderedLoader)
File
"/home/rynmrlw/.local/lib/python3.10/site-packages/ruamel/yaml/main.py",
line 1085, in load
error_deprecation('load', 'load', arg=_error_dep_arg,
comment=_error_dep_comment)
File
"/home/rynmrlw/.local/lib/python3.10/site-packages/ruamel/yaml/main.py",
line 1039, in error_deprecation
raise AttributeError(s, name=None)
AttributeError:
"load()" has been removed, use
yaml = YAML(typ='rt')
yaml.load(...)
and register any classes that you use, or check the tag attribute on the
loaded data,
instead of file
"/usr/lib/python3.10/site-packages/uhd/imgbuilder/yaml_utils.py", line 230
return yaml.load(stream, OrderedLoader)
Is this a known error with a specific version of ruamel.yaml? Is there a
specific version I should use?
Interestingly, the manual for version 4.7 does not make any mention of
ruamel.yaml as a prerequisite.
https://files.ettus.com/manual/md_usrp3_build_instructions.html
Ryan L. Marlow
R L Marlow Consulting LLC
rlmarlow.com
USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-leave@lists.ettus.com
--
Ryan L. Marlow
R L Marlow Consulting LLC
rlmarlow.com