autonormalize icon indicating copy to clipboard operation
autonormalize copied to clipboard

ModuleNotFoundError: No module named 'featuretools.autonormalize'

Open maxpagels opened this issue 4 years ago • 4 comments

Full trace of install (I ran pip3 uninstall featuretools and pip3 uninstall autonormalize beforehand just to be sure):

maxpagels@Maxs-MacBook-Pro:~$ pip3 install featuretools[autonormalize]
Collecting featuretools[autonormalize]
  Using cached https://files.pythonhosted.org/packages/a2/4c/79f3ad4ad7bc5c195529969b4aa989223a7d211d727366fde5badb741aad/featuretools-0.10.1-py3-none-any.whl
Requirement already satisfied: cloudpickle>=0.4.0 in /usr/local/lib/python3.7/site-packages (from featuretools[autonormalize]) (0.6.1)
Requirement already satisfied: tqdm>=4.32.0 in /usr/local/lib/python3.7/site-packages (from featuretools[autonormalize]) (4.34.0)
Requirement already satisfied: future>=0.16.0 in /usr/local/lib/python3.7/site-packages (from featuretools[autonormalize]) (0.16.0)
Requirement already satisfied: s3fs>=0.2.2 in /usr/local/lib/python3.7/site-packages (from featuretools[autonormalize]) (0.3.3)
Requirement already satisfied: smart-open>=1.8.4 in /usr/local/lib/python3.7/site-packages (from featuretools[autonormalize]) (1.8.4)
Requirement already satisfied: toolz>=0.8.2 in /usr/local/lib/python3.7/site-packages (from featuretools[autonormalize]) (0.9.0)
Requirement already satisfied: click>=7.0.0 in /usr/local/lib/python3.7/site-packages (from featuretools[autonormalize]) (7.0)
Requirement already satisfied: distributed>=1.24.2; python_version >= "3" in /usr/local/lib/python3.7/site-packages (from featuretools[autonormalize]) (2.2.0)
Requirement already satisfied: pyyaml>=3.12 in /usr/local/lib/python3.7/site-packages (from featuretools[autonormalize]) (3.13)
Requirement already satisfied: scikit-learn>=0.20.0; python_version >= "3" in /usr/local/lib/python3.7/site-packages (from featuretools[autonormalize]) (0.21.2)
Requirement already satisfied: pandas>=0.23.0 in /usr/local/lib/python3.7/site-packages (from featuretools[autonormalize]) (0.23.4)
Requirement already satisfied: psutil>=5.4.8 in /usr/local/lib/python3.7/site-packages (from featuretools[autonormalize]) (5.4.8)
Requirement already satisfied: numpy>=1.13.3 in /usr/local/lib/python3.7/site-packages (from featuretools[autonormalize]) (1.16.4)
Requirement already satisfied: dask>=1.1.0; python_version >= "3" in /usr/local/lib/python3.7/site-packages (from featuretools[autonormalize]) (2.2.0)
Collecting autonormalize>=1.0.0; extra == "autonormalize" (from featuretools[autonormalize])
  Using cached https://files.pythonhosted.org/packages/39/39/2a5166a7b4b5508942dfb0ec6f4aee6338ceba5456f69b08de12a7892f8e/autonormalize-1.0.1-py3-none-any.whl
Requirement already satisfied: botocore>=1.12.91 in /usr/local/lib/python3.7/site-packages (from s3fs>=0.2.2->featuretools[autonormalize]) (1.12.200)
Requirement already satisfied: boto3>=1.9.91 in /usr/local/lib/python3.7/site-packages (from s3fs>=0.2.2->featuretools[autonormalize]) (1.9.217)
Requirement already satisfied: fsspec>=0.2.2 in /usr/local/lib/python3.7/site-packages (from s3fs>=0.2.2->featuretools[autonormalize]) (0.4.3)
Requirement already satisfied: requests in /usr/local/lib/python3.7/site-packages (from smart-open>=1.8.4->featuretools[autonormalize]) (2.19.1)
Requirement already satisfied: boto>=2.32 in /usr/local/lib/python3.7/site-packages (from smart-open>=1.8.4->featuretools[autonormalize]) (2.49.0)
Requirement already satisfied: tornado>=5 in /usr/local/lib/python3.7/site-packages (from distributed>=1.24.2; python_version >= "3"->featuretools[autonormalize]) (5.1.1)
Requirement already satisfied: six in /usr/local/lib/python3.7/site-packages (from distributed>=1.24.2; python_version >= "3"->featuretools[autonormalize]) (1.11.0)
Requirement already satisfied: tblib in /usr/local/lib/python3.7/site-packages (from distributed>=1.24.2; python_version >= "3"->featuretools[autonormalize]) (1.3.2)
Requirement already satisfied: zict>=0.1.3 in /usr/local/lib/python3.7/site-packages (from distributed>=1.24.2; python_version >= "3"->featuretools[autonormalize]) (0.1.3)
Requirement already satisfied: sortedcontainers!=2.0.0,!=2.0.1 in /usr/local/lib/python3.7/site-packages (from distributed>=1.24.2; python_version >= "3"->featuretools[autonormalize]) (2.1.0)
Requirement already satisfied: msgpack in /usr/local/lib/python3.7/site-packages (from distributed>=1.24.2; python_version >= "3"->featuretools[autonormalize]) (0.6.0)
Requirement already satisfied: scipy>=0.17.0 in /usr/local/lib/python3.7/site-packages (from scikit-learn>=0.20.0; python_version >= "3"->featuretools[autonormalize]) (1.3.0)
Requirement already satisfied: joblib>=0.11 in /usr/local/lib/python3.7/site-packages (from scikit-learn>=0.20.0; python_version >= "3"->featuretools[autonormalize]) (0.12.4)
Requirement already satisfied: python-dateutil>=2.5.0 in /usr/local/lib/python3.7/site-packages (from pandas>=0.23.0->featuretools[autonormalize]) (2.7.5)
Requirement already satisfied: pytz>=2011k in /usr/local/lib/python3.7/site-packages (from pandas>=0.23.0->featuretools[autonormalize]) (2018.5)
Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /usr/local/lib/python3.7/site-packages (from botocore>=1.12.91->s3fs>=0.2.2->featuretools[autonormalize]) (0.9.3)
Requirement already satisfied: docutils<0.15,>=0.10 in /usr/local/lib/python3.7/site-packages (from botocore>=1.12.91->s3fs>=0.2.2->featuretools[autonormalize]) (0.14)
Requirement already satisfied: urllib3<1.26,>=1.20; python_version >= "3.4" in /usr/local/lib/python3.7/site-packages (from botocore>=1.12.91->s3fs>=0.2.2->featuretools[autonormalize]) (1.23)
Requirement already satisfied: s3transfer<0.3.0,>=0.2.0 in /usr/local/lib/python3.7/site-packages (from boto3>=1.9.91->s3fs>=0.2.2->featuretools[autonormalize]) (0.2.1)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/site-packages (from requests->smart-open>=1.8.4->featuretools[autonormalize]) (2018.4.16)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.7/site-packages (from requests->smart-open>=1.8.4->featuretools[autonormalize]) (3.0.4)
Requirement already satisfied: idna<2.8,>=2.5 in /usr/local/lib/python3.7/site-packages (from requests->smart-open>=1.8.4->featuretools[autonormalize]) (2.7)
Requirement already satisfied: heapdict in /usr/local/lib/python3.7/site-packages (from zict>=0.1.3->distributed>=1.24.2; python_version >= "3"->featuretools[autonormalize]) (1.0.0)
Installing collected packages: autonormalize, featuretools
Successfully installed autonormalize-1.0.1 featuretools-0.10.1
maxpagels@Maxs-MacBook-Pro:~$ python3
Python 3.7.4 (default, Jul  9 2019, 18:13:23) 
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from featuretools.autonormalize import autonormalize as an
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'featuretools.autonormalize'
>>> 

Importing featuretools itself works fine. OS X 10.14.4, Python installed via brew.

maxpagels avatar Aug 28 '19 06:08 maxpagels

@maxpagels there may be some issue with entrypoints. are you able to run import autonormalize to import the library directly?

kmax12 avatar Aug 28 '19 12:08 kmax12

@kmax12 import autonormalize works as expected, thanks! Is that the standard way or importing? I was following https://github.com/FeatureLabs/autonormalize/blob/master/autonormalize/demos/AutoNormalize%20%2B%20FeatureTools%20Demo.ipynb.

maxpagels avatar Aug 28 '19 16:08 maxpagels

Technically, either works, so use whatever you prefer.

We need to investigate why from featuretools.autonormalize import autonormalize as an isn't working for you (and probably others) since that is what we recommend

kmax12 avatar Aug 28 '19 22:08 kmax12

This seems related to FeatureLabs/featuretools/issues/841. It would be good to include a way to get the stack trace of the failed import, after receiving the warning.

rwedge avatar Jan 10 '20 16:01 rwedge