Dave Kuhlman <[EMAIL PROTECTED]> writes:

> 
> Cédric Moonen <[EMAIL PROTECTED]> writes:
> 
> > 
> > Hello,
> > 
> > I tried to use generateDS using the XSD example 
> > you supplied in the demos (people.xsd) but it 
> > failed to generate the files. Here is the error:
> > 
> 
> [snip]
> 
> >    File "c:\GenerateDS-1.14a\generateDS.py", line 3993, in parseAndGenerate
> >      root.annotate()
> > AttributeError: 'NoneType' object has no attribute 'annotate'
> > 

Cédric -

It looks like this is related to the process_includes that was added recently. 
The problem seems to be that process_includes attempts to use lxml if it is
available and ElementTree (which is in the Python 2.5 standard library) if lxml
is not available.  But, if the XML Schema has a namespace prefix definition
(which is usually the case), only lxml works; ElementTree fails.

Thanks to Kuno Woudt, by the way, for figuring this out.

The bottom line is that, if you do not have lxml or python-lxml installed, then
you should use the "--no-process-includes" command line flag.

Something needs to be done to make this error less likely.  But, that's a
subject for another message, which I'll post shortly.

- Dave




-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to