Skip to content

pip install stepfunctions fails in SageMaker Studio Notebook #188

Open
@steven-morin

Description

@steven-morin

What did you do?

pip install stepfunctions fails in SageMaker Studio Notebook

Notebook is using the Python3 (Data Science) kernel.

Reproduction Steps

pip install stepfunctions

What did you expect to happen?

I expected to be able to install AWS stepfunctions.

What actually happened?

/opt/conda/lib/python3.7/site-packages/secretstorage/dhcrypto.py:16: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead

from cryptography.utils import int_from_bytes
/opt/conda/lib/python3.7/site-packages/secretstorage/util.py:25: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
Collecting stepfunctions
Using cached stepfunctions-2.3.0.tar.gz (67 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
/opt/conda/lib/python3.7/site-packages/setuptools/dist.py:760: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
% (opt, underscore_opt)
Traceback (most recent call last):
File "", line 36, in
File "", line 34, in
File "/tmp/pip-install-a9sl8pu9/stepfunctions_fec8ededb6d5452993a38c0c5620f20d/setup.py", line 70, in
"IPython",
File "/opt/conda/lib/python3.7/site-packages/setuptools/init.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/opt/conda/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 109, in setup
_setup_distribution = dist = klass(attrs)
File "/opt/conda/lib/python3.7/site-packages/setuptools/dist.py", line 466, in init
for k, v in attrs.items()
File "/opt/conda/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 293, in init
self.finalize_options()
File "/opt/conda/lib/python3.7/site-packages/setuptools/dist.py", line 885, in finalize_options
for ep in sorted(loaded, key=by_order):
File "/opt/conda/lib/python3.7/site-packages/setuptools/dist.py", line 884, in
loaded = map(lambda e: e.load(), filtered)
File "/opt/conda/lib/python3.7/site-packages/setuptools/_vendor/importlib_metadata/init.py", line 196, in load
return functools.reduce(getattr, attrs, module)
AttributeError: type object 'Distribution' has no attribute '_finalize_feature_opts'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Environment

  • **AWS Step Functions Data Science Python SDK version : 2.3.0
  • Python Version: 3.7

Other


This is 🐛 Bug Report

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions