You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception occurred when I try to install dependencies with poetry install:
$ poetry install -v
[AttributeError]
module 'jsonschema' has no attribute 'Draft7Validator'
Traceback (most recent call last):
File "/Users/username/Library/Python/3.7/lib/python/site-packages/clikit/console_application.py", line 131, in run
status_code = command.handle(parsed_args, io)
File "/Users/username/Library/Python/3.7/lib/python/site-packages/clikit/api/command/command.py", line 120, in handle
status_code = self._do_handle(args, io)
File "/Users/username/Library/Python/3.7/lib/python/site-packages/clikit/api/command/command.py", line 163, in _do_handle
self._dispatcher.dispatch(PRE_HANDLE, event)
File "/Users/username/Library/Python/3.7/lib/python/site-packages/clikit/api/event/event_dispatcher.py", line 22, in dispatch
self._do_dispatch(listeners, event_name, event)
File "/Users/username/Library/Python/3.7/lib/python/site-packages/clikit/api/event/event_dispatcher.py", line 89, in _do_dispatch
listener(event, event_name, self)
File "/Users/username/Library/Python/3.7/lib/python/site-packages/poetry/console/config/application_config.py", line 86, in set_env
poetry = command.poetry
File "/Users/username/Library/Python/3.7/lib/python/site-packages/poetry/console/commands/command.py", line 10, in poetry
return self.application.poetry
File "/Users/username/Library/Python/3.7/lib/python/site-packages/poetry/console/application.py", line 49, in poetry
self._poetry = Factory().create_poetry(Path.cwd())
File "/Users/username/Library/Python/3.7/lib/python/site-packages/poetry/factory.py", line 48, in create_poetry
check_result = self.validate(local_config)
File "/Users/username/Library/Python/3.7/lib/python/site-packages/poetry/factory.py", line 272, in validate
validation_errors = validate_object(config, 'poetry-schema')
File "/Users/username/Library/Python/3.7/lib/python/site-packages/poetry/json/__init__.py", line 27, in validate_object
validator = jsonschema.Draft7Validator(schema)
I ran into this issue few days ago. Seems to me its some dependency conflict when you try to do pip install poetry. Using the bootstrap script for installing worked for me. curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
-vvv
option).Issue
Exception occurred when I try to install dependencies with
poetry install
:jsonschema version:
$ pip list | grep jsonschema jsonschema 3.2.0
The latest
jsonschema
has attributeDraft7Validator
according to jsonschema's documentationThe text was updated successfully, but these errors were encountered: