Giter Site home page Giter Site logo

Comments (3)

pabigot avatar pabigot commented on September 22, 2024

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.

gokulvenkats avatar gokulvenkats commented on September 22, 2024

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.

pabigot avatar pabigot commented on September 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.