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

Undefined namespace prefix #16

Open
tasgomes opened this issue Mar 5, 2025 · 2 comments
Open

Undefined namespace prefix #16

tasgomes opened this issue Mar 5, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@tasgomes
Copy link

tasgomes commented Mar 5, 2025

I am using v0.3.0.

$ pyedaa-ucis.exe version
========================================================================================================================
                                                  UCDB Service Program
========================================================================================================================
Copyright: 2021-2022, Electronic Design Automation Abstraction (EDA▒)
License:   Apache License, Version 2.0
Version:   v0.3.0

When trying to convert my coverage XML to cobertura I get this error:

$ pyedaa-ucis.exe export --ucdb sim/coverage/coverage_data.xml --cobertura cobertura.xml --merge-instances
Traceback (most recent call last):
  File "C:\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Python\Python310\Scripts\pyedaa-ucis.exe\__main__.py", line 7, in <module>
  File "C:\Python\Python310\lib\site-packages\pyEDAA\UCIS\CLI\__init__.py", line 218, in main
    program.Run()
  File "C:\Python\Python310\lib\site-packages\pyEDAA\UCIS\CLI\__init__.py", line 106, in Run
    ArgParseMixin.Run(self)
  File "C:\Python\Python310\lib\site-packages\pyAttributes\ArgParseAttributes.py", line 297, in Run
    self._ParseArguments()
  File "C:\Python\Python310\lib\site-packages\pyAttributes\ArgParseAttributes.py", line 309, in _ParseArguments
    self._RouteToHandler(args)
  File "C:\Python\Python310\lib\site-packages\pyAttributes\ArgParseAttributes.py", line 313, in _RouteToHandler
    args.func(self, args)
  File "C:\Python\Python310\lib\site-packages\pyEDAA\UCIS\CLI\__init__.py", line 158, in HandleExport
    model = parser.getCoberturaModel()
  File "C:\Python\Python310\lib\site-packages\pyEDAA\UCIS\UCDB.py", line 95, in getCoberturaModel
    self._parseStatementCoverage()
  File "C:\Python\Python310\lib\site-packages\pyEDAA\UCIS\UCDB.py", line 119, in _parseStatementCoverage
    scopes = self._tree.xpath(
  File "src\\lxml\\etree.pyx", line 2365, in lxml.etree._ElementTree.xpath
  File "src\\lxml\\xpath.pxi", line 342, in lxml.etree.XPathDocumentEvaluator.__call__
  File "src\\lxml\\xpath.pxi", line 210, in lxml.etree._XPathEvaluatorBase._handle_result
lxml.etree.XPathEvalError: Undefined namespace prefix
========================================================================================================================
                                                  UCDB Service Program
========================================================================================================================
Exporting code coverage information from UCDB file to Cobertura format ...
  IN  -> UCIS (XML):      sim\coverage\coverage_data.xml
  OUT <- Cobertura (XML): cobertura.xml

In case you want to reproduce it, you find my UCDB and XML in coverage_data.zip.

Tool versions:

  • Python 3.10
  • Modelsim 2024.2 PE
@tasgomes
Copy link
Author

tasgomes commented Mar 5, 2025

I pressed the "Save" button too early. Please find the updated issue description above.

@Paebbels
Copy link
Member

Paebbels commented Mar 5, 2025

I'll check that. I know Riviera-PRO (Aldec) uses a different UCIS dialect from ModelSim (Siemens / Mentor). One of them uses the data structure before it became a standard and never updated the format to the standardized format.

@Paebbels Paebbels added the bug Something isn't working label Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants