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 <r...@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.n...@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 > > Thanks for your input, > Ryan Marlow > -- > 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-le...@lists.ettus.com >
_______________________________________________ USRP-users mailing list -- usrp-users@lists.ettus.com To unsubscribe send an email to usrp-users-le...@lists.ettus.com