Interesting: looks like something's converting the file name to an absolute
path in which the drive letter syntactically appears to be a URI scheme "c",
which is unrecognized.

You might try using "file:pain.008.001.02.xsd" as the argument to -u,
providing an explicit scheme.  Beyond that I don't have any great
suggestions, since I don't have a windows system for pyxb development, and
have no idea what Python does with DOS file names.  Others who have used it
in that environment may be able to help.

Peter

On Tue, Oct 5, 2010 at 4:34 PM, victor <noagbodjivic...@gmail.com> wrote:

> here is how i invoke it:
>
> python c:\lib\pyxb-1.1.2\scripts\pyxbgen -u pain.008.001.02.xsd -m
> pain.008.001.02
>
> following is the traceback. i would appreciate any help on this.
>
> urn:uuid:d9ea099e-d0c6-11df-9816-001bfc44a16a
> TextFromURI: open C:\lab\sepa\pain.008.001.02.xsd caught: <urlopen
> error unknown url type: c>
> Traceback (most recent call last):
>  File "C:\lib\PyXB-1.1.2\scripts\pyxbgen", line 58, in <module>
>    generator.resolveExternalSchema()
>  File "c:\lib\pyxb-1.1.2\pyxb\binding\generate.py", line 2208, in
> resolveExternalSchema
>    uri_content_archive_directory=self.uriContentArchiveDirectory())
>  File "c:\lib\pyxb-1.1.2\pyxb\xmlschema\structures.py", line 4829, in
> CreateFromLocation
>    return
> cls.CreateFromDocument(pyxb.utils.utility.TextFromURI(schema_location,
> archive_directory=uri_content_archive_directory), **kw)
>  File "c:\lib\pyxb-1.1.2\pyxb\utils\utility.py", line 552, in TextFromURI
>    xmls = urllib2.urlopen(uri).read()
>  File "c:\python26\lib\urllib2.py", line 124, in urlopen
>    return _opener.open(url, data, timeout)
>  File "c:\python26\lib\urllib2.py", line 383, in open
>    response = self._open(req, data)
>  File "c:\python26\lib\urllib2.py", line 406, in _open
>    'unknown_open', req)
>  File "c:\python26\lib\urllib2.py", line 361, in _call_chain
>    result = func(*args)
>  File "c:\python26\lib\urllib2.py", line 1163, in unknown_open
>    raise URLError('unknown url type: %s' % type)
> urllib2.URLError: <urlopen error unknown url type: c>
>
> --
> Victor
>
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> _______________________________________________
> pyxb-users mailing list
> pyxb-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pyxb-users
>
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
pyxb-users mailing list
pyxb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyxb-users

Reply via email to