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

Regualar expressions not properly escaped in viv_ip_xci_editor.py #833

Open
vtyibin opened this issue Jan 17, 2025 · 0 comments
Open

Regualar expressions not properly escaped in viv_ip_xci_editor.py #833

vtyibin opened this issue Jan 17, 2025 · 0 comments

Comments

@vtyibin
Copy link

vtyibin commented Jan 17, 2025

The "\" character for the regular expressions are not properly escaped in fpga/usrp3/tools/scripts/viv_ip_xci_editor.py. The following are the console outputs when running rfnoc_image_builder -y x310_XG_rfnoc_image_core.yml.

Using the latest "UHD-4.8" branch.

BUILDER: Checking tools...
* GNU bash, version 5.2.37(1)-release (x86_64-pc-linux-gnu)
* Python 3.12.8
* Vivado v2021.1_AR76780 (64-bit)
========================================================
BUILDER: Building IP axi64_4k_2clk_fifo
========================================================
BUILDER: Staging IP in build directory...
BUILDER: Reserving IP location: /home/donald/VTWorks/GNURadio/uhd-4.8/fpga/usrp3/top/x300/build-ip/xc7k410tffg900-2/axi64_4k_2clk_fifo
BUILDER: Retargeting IP to part kintex7/xc7k410t/ffg900/-2...
/home/donald/VTWorks/GNURadio/uhd-4.8/fpga/usrp3/tools/scripts/viv_ip_xci_editor.py:32: SyntaxWarning: invalid escape sequence '\<'
  return '(.*\<' + tag_text + '\>)(.+)(\</' + tag_text + '\>)'
/home/donald/VTWorks/GNURadio/uhd-4.8/fpga/usrp3/tools/scripts/viv_ip_xci_editor.py:32: SyntaxWarning: invalid escape sequence '\>'
  return '(.*\<' + tag_text + '\>)(.+)(\</' + tag_text + '\>)'
/home/donald/VTWorks/GNURadio/uhd-4.8/fpga/usrp3/tools/scripts/viv_ip_xci_editor.py:32: SyntaxWarning: invalid escape sequence '\>'
  return '(.*\<' + tag_text + '\>)(.+)(\</' + tag_text + '\>)'
/home/donald/VTWorks/GNURadio/uhd-4.8/fpga/usrp3/tools/scripts/viv_ip_xci_editor.py:34: SyntaxWarning: invalid escape sequence '\<'
  return '(.*\<spirit:configurableElementValue spirit:referenceId=\".*\.' + item + '\"\>)(.+)(\</spirit:configurableElementValue\>)'
/home/donald/VTWorks/GNURadio/uhd-4.8/fpga/usrp3/tools/scripts/viv_ip_xci_editor.py:34: SyntaxWarning: invalid escape sequence '\>'
  return '(.*\<spirit:configurableElementValue spirit:referenceId=\".*\.' + item + '\"\>)(.+)(\</spirit:configurableElementValue\>)'
/home/donald/VTWorks/GNURadio/uhd-4.8/fpga/usrp3/tools/scripts/viv_ip_xci_editor.py:36: SyntaxWarning: invalid escape sequence '\<'
  return '(.*\<spirit:configurableElementValue spirit:referenceId=\".*\.' + item + '\")/\>'
/home/donald/VTWorks/GNURadio/uhd-4.8/fpga/usrp3/tools/scripts/viv_ip_xci_editor.py:36: SyntaxWarning: invalid escape sequence '\>'
  return '(.*\<spirit:configurableElementValue spirit:referenceId=\".*\.' + item + '\")/\>'
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

No branches or pull requests

1 participant