json_schema_generator icon indicating copy to clipboard operation
json_schema_generator copied to clipboard

No module named json_schema_generator

Open VivekBansal opened this issue 10 years ago • 3 comments

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 avatar Mar 22 '14 13:03 VivekBansal

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 ?

VivekBansal avatar Mar 22 '14 13:03 VivekBansal

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.

wizzat avatar Oct 15 '14 15:10 wizzat

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 [...]

jacobq avatar Nov 15 '17 23:11 jacobq