Giter Site home page Giter Site logo

Comments (5)

pabigot avatar pabigot commented on May 25, 2024

Since the SF master and github master are identical, this is odd. I've just confirmed it works for me on the internal development version, and it worked when I released the master version.

When you remember the exact error and can reproduce it with an up-to-date download from http://schemas.opengis.net/SCHEMAS_OPENGIS_NET.tgz please feel free to re-open this and provide that information.

from pyxb.

songololo avatar songololo commented on May 25, 2024

Hi, here you go, I downloaded the github version again and this is the error message I receive.

Exception generating bindings: http://www.w3.org/1999/xlink has no category attributeGroupDefinition
Traceback (most recent call last):
File "/Users/shongololo/Downloads/pyxb-master/pyxb/namespace/init.py", line 307, in categoryMap
return self.__categoryMap[category]
KeyError: 'attributeGroupDefinition'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/shongololo/Downloads/pyxb-master/scripts/pyxbgen", line 65, in
modules = generator.bindingModules()
File "/Users/shongololo/Downloads/pyxb-master/pyxb/binding/generate.py", line 2865, in bindingModules
self.resolveComponentDependencies()
File "/Users/shongololo/Downloads/pyxb-master/pyxb/binding/generate.py", line 2725, in __resolveComponentDependencies
pyxb.namespace.resolution.ResolveSiblingNamespaces(namespaces)
File "/Users/shongololo/Downloads/pyxb-master/pyxb/namespace/resolution.py", line 327, in ResolveSiblingNamespaces
if not ns.resolveDefinitions(allow_unresolved=True):
File "/Users/shongololo/Downloads/pyxb-master/pyxb/namespace/resolution.py", line 223, in resolveDefinitions
resolvable._resolve()
File "/Users/shongololo/Downloads/pyxb-master/pyxb/xmlschema/structures.py", line 2540, in _resolve
return self.__completeProcessing(self.__pendingDerivationMethod, self.__contentStyle)
File "/Users/shongololo/Downloads/pyxb-master/pyxb/xmlschema/structures.py", line 2082, in __completeProcessing
agd = ag_en.attributeGroupDefinition()
File "/Users/shongololo/Downloads/pyxb-master/pyxb/namespace/__init
.py", line 104, in getattr
category_value = ns.categoryMap(name).get(self.localName())
File "/Users/shongololo/Downloads/pyxb-master/pyxb/namespace/init.py", line 309, in categoryMap
raise pyxb.NamespaceError(self, '%s has no category %s' % (self, category))
pyxb.exceptions_.NamespaceError: http://www.w3.org/1999/xlink has no category attributeGroupDefinition
Failed: gml_3_2

from pyxb.

pabigot avatar pabigot commented on May 25, 2024

Back in 2012 the official schemas switched to using the W3C version of XLink instead of OpenGIS's non-standard version, and the pyxb generation depends on that being available. You may need to generate the common bindings first, and make sure you use the current schemas bundle from the link I noted above.

This command should generate everything:

maintainer/genbundles @ opengis

The script replaces @ with the schemas for core namespaces used by other complex schemas. You could try just using common but that's not now I build them so I can't say whether it'd work.

from pyxb.

songololo avatar songololo commented on May 25, 2024

This method works, thanks.

from pyxb.

pabigot avatar pabigot commented on May 25, 2024

Re-opening to remind me to update the opengis README.txt based on the discoveries in this issue.

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.