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

Mising importlib-metadata dependency in verson 0.11.6 #1651

Closed
javier-sanz opened this issue Jun 29, 2020 · 5 comments · Fixed by #1701
Closed

Mising importlib-metadata dependency in verson 0.11.6 #1651

javier-sanz opened this issue Jun 29, 2020 · 5 comments · Fixed by #1701
Assignees
Labels
bug Bugs bugs bugs!

Comments

@javier-sanz
Copy link

javier-sanz commented Jun 29, 2020

Describe the bug
When installing version 0.11.6 (latest right now) I cannot use the library because I get an error ModuleNotFoundError: No module named 'importlib_metadata'

To Reproduce
Steps to reproduce the behavior:

  1. Create an empty folder
  2. Run python3.8 -m venv venv
  3. Activate the env source venv/bin/activate
  4. Install the library pip install great_expectations
  5. Run the tutorial great_expectations init
  6. The next exception is thrown
Traceback (most recent call last):
  File "/home/jsanz/Projects/urba/poc/great_expectations/test/venv/bin/great_expectations", line 7, in <module>
    from great_expectations.cli import main
  File "/home/jsanz/Projects/urba/poc/great_expectations/test/venv/lib/python3.8/site-packages/great_expectations/__init__.py", line 7, in <module>
    from great_expectations.data_context import DataContext
  File "/home/jsanz/Projects/urba/poc/great_expectations/test/venv/lib/python3.8/site-packages/great_expectations/data_context/__init__.py", line 3, in <module>
    from .data_context import BaseDataContext, DataContext, ExplorerDataContext
  File "/home/jsanz/Projects/urba/poc/great_expectations/test/venv/lib/python3.8/site-packages/great_expectations/data_context/data_context.py", line 28, in <module>
    from great_expectations.core.usage_statistics.usage_statistics import (
  File "/home/jsanz/Projects/urba/poc/great_expectations/test/venv/lib/python3.8/site-packages/great_expectations/core/usage_statistics/usage_statistics.py", line 17, in <module>
    from great_expectations.core.usage_statistics.anonymizers.anonymizer import Anonymizer
  File "/home/jsanz/Projects/urba/poc/great_expectations/test/venv/lib/python3.8/site-packages/great_expectations/core/usage_statistics/anonymizers/anonymizer.py", line 4, in <module>
    from great_expectations.util import load_class
  File "/home/jsanz/Projects/urba/poc/great_expectations/test/venv/lib/python3.8/site-packages/great_expectations/util.py", line 13, in <module>
    import importlib_metadata
ModuleNotFoundError: No module named 'importlib_metadata'

Expected behavior
Start the tutorial with no errors.

Environment (please complete the following information):

  • OS: Ubuntu 18.04.4 LTS, Python 3.8.0 (default, Oct 28 2019, 16:14:01)
  • GE Version: 0.11.6

Additional context
Running pip install importlib-metadata solves the issue.

@javier-sanz
Copy link
Author

javier-sanz commented Jun 29, 2020

I think I might have been impacted by this bug https://bugs.python.org/issue34632

@Aylr
Copy link
Contributor

Aylr commented Jul 2, 2020

I just replicated this

=================================== ERRORS ====================================

    from great_expectations.core import (
21
/opt/hostedtoolcache/Python/3.8.3/x64/lib/python3.8/site-packages/great_expectations/__init__.py:7: in <module>
22
    from great_expectations.data_context import DataContext
23
/opt/hostedtoolcache/Python/3.8.3/x64/lib/python3.8/site-packages/great_expectations/data_context/__init__.py:3: in <module>
24
    from .data_context import BaseDataContext, DataContext, ExplorerDataContext
25
/opt/hostedtoolcache/Python/3.8.3/x64/lib/python3.8/site-packages/great_expectations/data_context/data_context.py:29: in <module>
26
    from great_expectations.core.usage_statistics.usage_statistics import (
27
/opt/hostedtoolcache/Python/3.8.3/x64/lib/python3.8/site-packages/great_expectations/core/usage_statistics/usage_statistics.py:17: in <module>
28
    from great_expectations.core.usage_statistics.anonymizers.anonymizer import Anonymizer
29
/opt/hostedtoolcache/Python/3.8.3/x64/lib/python3.8/site-packages/great_expectations/core/usage_statistics/anonymizers/anonymizer.py:4: in <module>
30
    from great_expectations.util import load_class
31
/opt/hostedtoolcache/Python/3.8.3/x64/lib/python3.8/site-packages/great_expectations/util.py:13: in <module>
32
    import importlib_metadata

@Aylr Aylr added the bug Bugs bugs bugs! label Jul 2, 2020
@sbrugman
Copy link
Contributor

Same here, importlib_metadata is not installed with pip install great-expectations (workaround pip install importlib_metadata works luckily)

@alexsherstinsky
Copy link
Contributor

This has been fixed and will appear in the next release.

@alexsherstinsky
Copy link
Contributor

The fix will be part of GE 0.11.8

@Aylr Aylr assigned Aylr and unassigned alexsherstinsky Jul 16, 2020
eugmandel added a commit that referenced this issue Jul 16, 2020
Co-authored-by: Eugene Mandel <eugene.mandel@gmail.com>
alexsherstinsky pushed a commit to alexsherstinsky/great_expectations that referenced this issue Feb 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugs bugs bugs!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants