Comments (3)
I can imagine this might happen if you generate bindings for multiple schema in separate calls to pyxbgen
. You might need to do something like this.
from pyxb.
I can imagine this might happen if you generate bindings for multiple schema in separate calls to
pyxbgen
. You might need to do something like this.
Hi,
Still I face the same issue, copied the complete error below:
$ /opt/pypy3-v6.0.0/bin/pypy3 /opt/pypy3-v6.0.0/bin/pyxbgen --version
pyxbgen from PyXB 1.2.5
$ /opt/pypy3-v6.0.0/bin/pypy3 /opt/pypy3-v6.0.0/bin/pyxbgen \
--schema-location=/tmp/CPRulesOrderSchema.xsd --module=cporder
--schema-location=/tmp/CPRulesResultSchema.xsd --module=cporder.result
--module-prefix=lexisnexis
--archive-to-file=lexisnexis/lexisnexis.core.wxs
Traceback (most recent call last):
File "/opt/pypy3-v6.0.0/bin/pyxbgen", line 52, in
generator.resolveExternalSchema()
File "/opt/pypy3-v6.0.0/site-packages/pyxb/binding/generate.py", line 2661, in resolveExternalSchema
uri_content_archive_directory=self.uriContentArchiveDirectory())
File "/opt/pypy3-v6.0.0/site-packages/pyxb/xmlschema/structures.py", line 4825, in CreateFromLocation
return cls.CreateFromDocument(pyxb.utils.utility.DataFromURI(schema_location, archive_directory=uri_content_archive_directory), **kw)
File "/opt/pypy3-v6.0.0/site-packages/pyxb/xmlschema/structures.py", line 4804, in CreateFromDocument
return cls.CreateFromDOM(domutils.StringToDOM(xmls, **kw), **kw)
File "/opt/pypy3-v6.0.0/site-packages/pyxb/xmlschema/structures.py", line 4873, in CreateFromDOM
rv = schema.__processTopLevelNode(cn)
File "/opt/pypy3-v6.0.0/site-packages/pyxb/xmlschema/structures.py", line 5052, in __processTopLevelNode
return self._addNamedComponent(component.CreateFromDOM(node, **kw))
File "/opt/pypy3-v6.0.0/site-packages/pyxb/xmlschema/structures.py", line 5078, in addNamedComponent
return tns.addCategoryObject('elementDeclaration', nc.name(), nc)
File "/opt/pypy3-v6.0.0/site-packages/pyxb/namespace/init.py", line 346, in addCategoryObject
raise pyxb.NamespaceUniquenessError(self, '%s: name %s used for multiple values in %s' % (self, local_name, category))
pyxb.exceptions.NamespaceUniquenessError: http://cp.com/rules/client: name national_credit_file used for multiple values in elementDeclaration
from pyxb.
I would need to see the schema to figure out what's going on. However, I see you're using PyXB 1.2.5. Please update to the latest release (1.2.6) first to see whether this problem has been solved.
from pyxb.
Related Issues (20)
- Simple content with fixed value and attributes are not handled properly HOT 2
- Preserve XSD annotations in bindings HOT 1
- AnyContent not definable
- "List index out of range" using bindings built by pyxbgen HOT 1
- Invalid XML can be generated with extension elements HOT 2
- "all" allows multiple occurrences of the same term HOT 1
- Marshalling of restricted dateTime ignores restriction pattern HOT 3
- Install without pre-defined bundles? HOT 2
- Support of Python 3.7+ HOT 3
- Support of Python 3.8. HOT 7
- UnboundElementError when trying to subclass HOT 3
- SimpleTypeValueError when trying createfromdocument for MD_Metadata
- XInclude processing HOT 3
- creating an instance of a union does not name the actual type in the resulting exception
- Multiple accepting paths for xs:any ##other element
- validateBinding, toDOM and toxml raise AbstractElementError on unpickled pyxb object with abstract element/substitutionGroup
- Test suite does not work HOT 2
- Running setup.py install for pyxb … error
- test_gYearMonth.Test_gYearMonth.testBasic and test_date.Test_date.testArguments fails, test_gMonthDay.Test_gMonthDay.testBasic errors
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyxb.