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

tried your code #8

Open
loomanss opened this issue Nov 26, 2018 · 1 comment
Open

tried your code #8

loomanss opened this issue Nov 26, 2018 · 1 comment

Comments

@loomanss
Copy link

didn't work on the first try.

did some code changes but i'm new to python so i cannot estimate the impact on the project:

line 60 changed : for model_name in networkx.topological_sort(g):
new version networkx didnt accept reversed=true argument
line 157 & 158 changed :

parser.add_argument('json_schema_file', type=argparse.FileType('r') , help="Path to JSON Schema file to load")
parser.add_argument('-o', '--output-file', type=argparse.FileType('w'), help="Path to file output", default="model.py")

Name: argparse
Version: 1.2.1

Name: networkx
Version: 2.2

example schema.json used :

{
"definitions": {
"address": {
"type": "object",
"properties": {
"street_address": { "type": "string" },
"city": { "type": "string" },
"state": { "type": "string" }
},
"required": ["street_address", "city", "state"]
}
}
}

@bmampaey
Copy link

requirements specify netwokx==1.9
networkx 2.X is not backward compatible with version 1.X

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

2 participants