Comments (5)
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.
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.
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.
This method works, thanks.
from pyxb.
Re-opening to remind me to update the opengis README.txt based on the discoveries in this issue.
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
- NamespaceUniquenessError in elementDeclaration HOT 3
- 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.