perenecabuto / json_schema_generator

A simple json schema generator from any json source
MIT License
260 stars 74 forks source link

No module named json_schema_generator #7

Open VivekBansal opened 10 years ago

VivekBansal commented 10 years ago

I am new in python. I don't know how to solve this.

I am trying to execute the following command python jsonschema_generator.py record example_movie.json schema_movie.json_schema

But I am getting the following error. Traceback (most recent call last): File "jsonschema_generator.py", line 9, in import json_schema_generator ImportError: No module named json_schema_generator

I executed the above command after navigating in bin folder. Please help me out

VivekBansal commented 10 years ago

Now I am getting the following error

File "jsonschema_generator.py", line 9, in import json_schema_generator File "/Users/vivekbansal/Documents/Vivek/Drive D/JSONSchema/perenecabuto_jsonschemavalidator/Updated/json_schema_generator-0c02848dd5e9d132c75d390d098f91a0b99184b1/json_schema_generator/init.py", line 2, in from .validator import * File "/Users/vivekbansal/Documents/Vivek/Drive D/JSONSchema/perenecabuto_jsonschemavalidator/Updated/json_schema_generator-0c02848dd5e9d132c75d390d098f91a0b99184b1/json_schema_generator/validator.py", line 4, in from jsonschema import validate ImportError: No module named jsonschema

What should I need to do for resolving this bug ?

wizzat commented 9 years ago

This should be resolved if you used pip to install json schema generator. There is a dependency on jsonschema. Let me know if this is still happening.

jacobq commented 6 years ago

If you didn't, you should be able to work around this by passing in PYTHONPATH, e.g. from repo root: PYTHONPATH=. python3 bin/jsonschema_generator.py [...]