-
-
Notifications
You must be signed in to change notification settings - Fork 590
ImportError: cannot import name 'validate' #483
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
Comments
You named a file json.py (and possibly also jsonschema.py), which is
shadowing actually importing those modules.
…On Thu, Nov 1, 2018, 18:04 hqkhan ***@***.*** wrote:
Hi. Not sure what is going on here as I'm getting an import error from the
get go when trying to import jsonschema. Here is a snapshot:
[image: image]
<https://user-images.githubusercontent.com/22674069/47882630-8fe02d80-de00-11e8-986f-8db58a257d76.png>
What am I missing here?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#483>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAUIXtiuGeqnqriF60uKOtFIxUbLZ5Auks5uq2_7gaJpZM4YJp6u>
.
|
Thank you for showing me how big of a goof I am. Fixed the issue. Would you mind letting me know how you figured out that the name of the file was the problem? Edit: Nevermind, I see from the trace where the problem was. Thank you for your help! |
:) no worries.
I really just read the traceback from top to bottom to be honest, along
with knowing that typically when you see an ImportError there it means you
have a circular import (which Python is really bad at reporting, it should
really explicitly say that the kind of import error that occurred is due to
circularity).
…On Thu, Nov 1, 2018, 18:12 hqkhan ***@***.*** wrote:
Closed #483 <#483>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#483 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAUIXsaNE6M2kxNSLZFBH2jUjoZuyiEdks5uq3HlgaJpZM4YJp6u>
.
|
Julian
added a commit
that referenced
this issue
Jun 24, 2021
0aefbb3d Merge pull request #491 from jdesrosiers/object-contains-tests 336ef8d2 Merge pull request #452 from LeifRilbe/rilbe/propertyNames-with-pattern 2dfbc79c Simplify the test case names as well. b6d0649d Add tests for contains with objects da687ca5 Enforce a consistent code style for contains tests b163efcf Merge pull request #490 from jdesrosiers/draft-future 7c8cb488 Initialize draft-future with 2020-12 tests 4d65d2df Merge pull request #483 from kylef/kylef/date ee9dcaa7 Merge pull request #485 from marksparkza/contains-with-false-if eaa5bffc Merge pull request #489 from json-schema-org/ether/more-recursiveRef 7c33b533 dynamic $recursiveRef test with cousin $recursiveAnchors 8a3a542b Fix invalid JSON error 8a89f58e Add tests combining remote refs and defs 3aec0d14 Add tests combining relative refs and defs a107d196 fix: $defs -> definitions in draft 6,7 tests 0c223de2 Remove a test for undefined $id behavior 4efec180 Test that "contains" does not fail due to false "if" subschema bf383b4c fix: make identifiers unique across tests 812f1f08 Merge pull request #484 from json-schema-org/ether/schemas-under-unknown-keywords 64f6b850 Test that identifiers are not found inside unrecognized keywords c69a89c6 Stricter date format constraints 93193442 Test cases for propertyNames with pattern - update after PR feedback. 8e4aad95 Test cases for propertyNames with pattern. git-subtree-dir: json git-subtree-split: 0aefbb3d80e0caa22f3782677cf09c61b2205aa7
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi. Not sure what is going on here as I'm getting an import error from the get go when trying to import
jsonschema
. Here is a snapshot:What am I missing here?
The text was updated successfully, but these errors were encountered: