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

Support merge file list #24

Open
sklee0913 opened this issue Oct 12, 2024 · 1 comment
Open

Support merge file list #24

sklee0913 opened this issue Oct 12, 2024 · 1 comment

Comments

@sklee0913
Copy link

and seems that it only supports input as file name, I try to put a list of files but doesn't work.

~/work/regression$ pyucis merge -o merge.xml merge.lists
Traceback (most recent call last):
File "/home/xxx/.local/lib/python3.10/site-packages/ucis/cmd/cmd_merge.py", line 32, in merge
db = db_if.read(input)
File "/home/xxx/.local/lib/python3.10/site-packages/ucis/xml/db_format_if_xml.py", line 19, in read
return XmlFactory.read(file_or_filename)
File "/home/xxx/.local/lib/python3.10/site-packages/ucis/xml/xml_factory.py", line 67, in read
raise e
File "/home/xxx/.local/lib/python3.10/site-packages/ucis/xml/xml_factory.py", line 63, in read
validate_ucis_xml(fp)
File "/home/xxx/.local/lib/python3.10/site-packages/ucis/xml/init.py", line 49, in validate_ucis_xml
doc = etree.parse(fp)
File "src/lxml/etree.pyx", line 3589, in lxml.etree.parse
File "src/lxml/parser.pxi", line 1979, in lxml.etree._parseDocument
File "src/lxml/parser.pxi", line 1999, in lxml.etree._parseFilelikeDocument
File "src/lxml/parser.pxi", line 1893, in lxml.etree._parseDocFromFilelike
File "src/lxml/parser.pxi", line 1224, in lxml.etree._BaseParser._parseDocFromFilelike
File "src/lxml/parser.pxi", line 633, in lxml.etree._ParserContext._handleParseResultDoc
File "src/lxml/parser.pxi", line 743, in lxml.etree._handleParseResult
File "src/lxml/parser.pxi", line 672, in lxml.etree._raiseParseError
File "/home/xxx/work/regression/merge.lists", line 1
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1

@sklee0913
Copy link
Author

work around: pyucis merge $(cat merge.lists) -o merge.xml

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