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

No module named json_schema_generator #7

Open
VivekBansal opened this issue Mar 22, 2014 · 3 comments
Open

No module named json_schema_generator #7

VivekBansal opened this issue Mar 22, 2014 · 3 comments

Comments

@VivekBansal
Copy link

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
Copy link
Author

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
Copy link

wizzat commented Oct 15, 2014

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
Copy link

jacobq commented Nov 15, 2017

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

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

3 participants