- Notifications
You must be signed in to change notification settings - Fork49
Open
Description
I ran into an issue like this:
Traceback (most recent call last): File "uvmf/my_script.py", line 15, in <module> ipxact_reader = IpxactReader(ipxact_file) File "/userwork11/tpoikela/git/uvmf/uvmf_tb_gen/uvmf_tb_gen.py", line 107, in __init__ ipxact_comp.load(f) File "/userwork11/tpoikela/git/uvmf/.venv/lib/python3.8/site-packages/ipyxact/ipyxact.py", line 108, in load self.parse_tree(root, self.nsmap[self.nsversion]) File "/userwork11/tpoikela/git/uvmf/.venv/lib/python3.8/site-packages/ipyxact/ipyxact.py", line 144, in parse_tree t.parse_tree(f, ns) File "/userwork11/tpoikela/git/uvmf/.venv/lib/python3.8/site-packages/ipyxact/ipyxact.py", line 135, in parse_tree t.parse_tree(f, ns) File "/userwork11/tpoikela/git/uvmf/.venv/lib/python3.8/site-packages/ipyxact/ipyxact.py", line 123, in parse_tree setattr(self, _name, eval(_type)(tmp.text)) File "/userwork11/tpoikela/git/uvmf/.venv/lib/python3.8/site-packages/ipyxact/ipyxact.py", line 62, in __new__ return int(expr.replace('_', ''), base)ValueError: invalid literal for int() with base 10: '${MODULESPATH}/module/doc/moduleprogmodel.xlsx'
In the IP-XACT file, I see that it has specified some filepaths like this:
<spirit:parameter> <spirit:name>imported_from</spirit:name> <spirit:value>${MODULES_PATH}/module/doc/module_prog_model.xlsx</spirit:value></spirit:parameter>
Expected result: The parser does not throw ValueError, and parses the structure and filepath with env var correctly. No env var expansion/substitution is expected.
Metadata
Metadata
Assignees
Labels
No labels