tamsanh / kedro-great

The easiest way to integrate Kedro and Great Expectations
MIT License
52 stars 14 forks source link

No such command 'great' #9

Open noklam opened 3 years ago

noklam commented 3 years ago

Kedro: 0.16.4 OS: Window 10

pip install kedro-great
kedro great init

Error: Loading global commands from kedro-great = kedro_great:commands

Usage: kedro [OPTIONS] COMMAND [ARGS]... Try 'kedro -h' for help.

Error: No such command 'great'.

bensdm commented 3 years ago

same issue here

rdoume commented 3 years ago

Got the same issue, solved it by rolling back to kedro 16.2.

noklam commented 3 years ago

Got the same issue, solved it by rolling back to kedro 16.2.

@rdoume This doesn't solve my problem, I hit the same error.

tamsanh commented 3 years ago

This may be an issue with some of the version requirements. Can you paste the full error message?


Traceback (most recent call last):
  File "/Users/tamu/.pyenv/versions/3.7.6/lib/python3.7/site-packages/kedro/framework/cli/cli.py", line 683, in load_entry_points
    entry_point_commands.append(entry_point.load())
  File "/Users/tamu/.pyenv/versions/3.7.6/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2442, in load
    self.require(*args, **kwargs)
  File "/Users/tamu/.pyenv/versions/3.7.6/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2465, in require
    items = working_set.resolve(reqs, env, installer, extras=self.extras)
  File "/Users/tamu/.pyenv/versions/3.7.6/lib/python3.7/site-packages/pkg_resources/__init__.py", line 791, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (botocore 1.17.47 (/Users/tamu/.pyenv/versions/3.7.6/lib/python3.7/site-packages), Requirement.parse('botocore<1.16.0,>=1.15.5'), {'boto3'})
Error: Loading global commands from kedro-great = kedro_great:commands
/Users/tamu/.pyenv/versions/3.7.6/lib/python3.7/site-packages/setuptools/depends.py:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
Usage: kedro [OPTIONS] COMMAND [ARGS]...
Try 'kedro -h' for help.

Error: No such command 'great'.```
noklam commented 3 years ago

I cannot reproduce my error before exactly. I remember manually downgraded requests & cachetools & pyspark before. If I upgraded my requests library I will get this.

    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (requests 2.24.0 (c:\users\channo.oocldm\appdata\local\continuum\anaconda3\lib\site-packages), Requirement.parse('requests<2.24,>=2.20'), {'great-expectations'})
noklam commented 3 years ago

Anyway, I solved the issue by looking at the VersionConflict and downgrade all those library manually.