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

pip install stepfunctions fails in SageMaker Studio Notebook

Đang mở
#188 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Python
Star
299
Fork
84
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Tái hiện lỗi với `pip install stepfunctions` trong SageMaker Studio Notebook sử dụng Python 3.7, sau đó bắt đầu từ bước metadata của `setup.py` và traceback của `_finalize_feature_opts`. Xác nhận rằng package có thể được cài đặt trong môi trường đó mà không có lỗi tạo metadata; issue không nêu tên tệp kiểm thử nào.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
aws, python
Lĩnh vực
build-system, cloud
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
28/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.