AWS Lambda [ERROR] DistributionNotFound: The 'jsonschema' distribution was not found and is required by the application
191 views
Skip to first unread message
Siddiqa Jaffer
unread,
Sep 22, 2019, 7:52:07 PM9/22/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jsonschema - An implementation of JSON Schema for Python
We're trying to run jsonschema 3.0.2 on the AWS Lambda Python 3.7 environment. We're getting the following error:
The following link suggested to go back to using version 2.6.0 which works but is there a reason why 2.6.0 works and 3.02 doesn't? Will there be fix made available in jsonschema for this issue?
[ERROR] DistributionNotFound: The 'jsonschema' distribution was not found and is required by the application Traceback (most recent call last): File "/var/lang/lib/python3.7/imp.py", line 234, in load_module return load_source(name, filename, file) File "/var/lang/lib/python3.7/imp.py", line 171, in load_source module = _load(spec) File "<frozen importlib._bootstrap>", line 696, in _load File "<frozen importlib._bootstrap>", line 677, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 728, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/var/task/lambdas/schemavalidation/schemavalidation.py", line 7, in <module> from jsonschema.validators import Draft7Validator File "/var/task/jsonschema/__init__.py", line 33, in <module> __version__ = get_distribution(__name__).version File "/var/lang/lib/python3.7/site-packages/pkg_resources/__init__.py", line 481, in get_distribution dist = get_provider(dist) File "/var/lang/lib/python3.7/site-packages/pkg_resources/__init__.py", line 357, in get_provider return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0] File "/var/lang/lib/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require needed = self.resolve(parse_requirements(requirements)) File "/var/lang/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve raise DistributionNotFound(req, requirers)