Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add requirements.txt or setup.py #1

Open
archatas opened this issue Aug 13, 2018 · 5 comments
Open

Please add requirements.txt or setup.py #1

archatas opened this issue Aug 13, 2018 · 5 comments

Comments

@archatas
Copy link

archatas commented Aug 13, 2018

Hello, Zach!

I tried to use your tool and it seems to work fine. One problem that I had was detecting which version of xmlschema I need to get installed. At the moment it's

xmlschema==0.9.14

Can you please add it to requirements.txt or to a setup.py?

@bhanu-goyal
Copy link

Hello Zach,
I am trying to use your tool in windows with python 3.7 and everytime i compile the code it throws
from xmlschema.components import (
ModuleNotFoundError: No module named 'xmlschema.components'
-:1: parser error : Document is empty

^
-:1: parser error : Start tag expected, '<' not found

^

Can u plz help me..

@bobbyiliev
Copy link

As the validators was updated recently, try changing 'xmlschema.components' to 'xmlschema.validators' and it should work

@maayanorner
Copy link

maayanorner commented Jun 30, 2020

Hello Zach,
I am trying to use your tool in windows with python 3.7 and everytime i compile the code it throws
from xmlschema.components import (
ModuleNotFoundError: No module named 'xmlschema.components'
-:1: parser error : Document is empty

^
-:1: parser error : Start tag expected, '<' not found

^

Can u plz help me..

As the validators was updated recently, try changing 'xmlschema.components' to 'xmlschema.validators' and it should work

For future readers - from my experience, yes, you can import the types, but no, it will not work for newer versions of xmlschema (I think there are breaking changes, as I was debugging it and seeing there are sometimes missing attributes and so on, especially related to XMLSchema11, maybe it will work with XMLSchema10 but if you need 11 it's a problem).

@seregagl
Copy link

Ported code for python3
https://github.com/seregagl/xsd2xml

Tested only with XMLSchema10

@DawMatt
Copy link

DawMatt commented Nov 4, 2022

@seregagl 's fork has a pull request ( seregagl#1 ) to be compatible with version 2.1.1 of the module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants