aws / aws/aws-step-functions-data-science-sdk-python

pip install stepfunctions fails in SageMaker Studio Notebook

Ouverte
#188 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug
Langage dominant
Python
Étoiles
299
Forks
84
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

### 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: Bug Report

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Reproduisez l’échec avec `pip install stepfunctions` dans un SageMaker Studio Notebook utilisant Python 3.7, puis commencez par l’étape des métadonnées de `setup.py` et le traceback de `_finalize_feature_opts`. Confirmez que le package peut être installé dans cet environnement sans erreurs de génération des métadonnées ; aucun fichier de test n’est nommé dans l’issue.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
aws, python
Domaine
build-system, cloud
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
28/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.