When executing the command generateDS -o pocd.py -s pocd_sub.py pocd.xsd I get the below error.
Traceback (most recent call last):
File "/home/samanthb/.pyenv/versions/3.8.12/bin/generateDS", line 8, in <module>
sys.exit(main())
File "/home/samanthb/.pyenv/versions/3.8.12/bin/generateDS.py", line 9863, in main
parseAndGenerate(
File "/home/samanthb/.pyenv/versions/3.8.12/bin/generateDS.py", line 9175, in parseAndGenerate
result = process_includes.process_include_files(
File "/home/samanthb/.pyenv/versions/3.8.12/bin/process_includes.py", line 186, in process_include_files
doc, ns_dict, schema_ns_dict, rename_data = prep_schema_doc(
File "/home/samanthb/.pyenv/versions/3.8.12/bin/process_includes.py", line 591, in prep_schema_doc
collect_inserts(root1, params, inserts, ns_dict,
File "/home/samanthb/.pyenv/versions/3.8.12/bin/process_includes.py", line 410, in collect_inserts
aux_roots = collect_inserts_aux(
File "/home/samanthb/.pyenv/versions/3.8.12/bin/process_includes.py", line 433, in collect_inserts_aux
assert(root.attrib['targetNamespace'] ==
AssertionError
Installed generateDS using pip command.
OS: ArcoLinux
Python Version: 3.8.12 (pyenv)
Samantha,
Thank you for reporting this. I was able to reproduce this error using the
POCD_MT000040.xsdschema that I found at https://github.com/srdc/ontmalizer. I'm guessing that you were using the same.Here are notes from the
README.rst:Thanks again. Please let me know if this does not fix the issue for you.
Dave
Thank you Dave. The newer version is now working as expect.
We can close this issue.
Closed