-
Notifications
You must be signed in to change notification settings - Fork 357
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
Bug: Update kappa dependency version to 0.7.0 #1195
Comments
@lidgen What's your pip and setuptools version? Did you try upgrading pip and setuptools version?
|
Yes, the setuptools is the latest one 65.6.2. They realised it's an regression introduced in their new version but I think Zappa should update as well. |
@lidgen setuptools released a new version 65.6.3 fixing this issue. |
Thanks |
fixed via setuptools update. NOTE: we do need to upgrade or move off of kappa at some point. |
Context
I am running zappa in Python 3.8. The kappa dependency currently in zappa is 0.6.0 and it is very old. It has a problem working with setuptools. But this problem is fixed in 0.7.0. It kept failing our build pipeline, can you fix it.
Expected Behavior
Kappa dependency is 0.7.0
Actual Behavior
Kappa dependency is 0.6.0. And the error is below
Collecting kappa==0.6.0
Downloading kappa-0.6.0.tar.gz (29 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-tc5h6qe1/kappa_98b971f38c4146adb4df073a73d0fe84/setup.py", line 54, in
run_setup()
File "/tmp/pip-install-tc5h6qe1/kappa_98b971f38c4146adb4df073a73d0fe84/setup.py", line 18, in run_setup
setup(
File "/var/venv/lib/python3.8/site-packages/setuptools/init.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/var/venv/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 147, in setup
_setup_distribution = dist = klass(attrs)
File "/var/venv/lib/python3.8/site-packages/setuptools/dist.py", line 475, in init
_Distribution.init(
File "/var/venv/lib/python3.8/site-packages/setuptools/distutils/dist.py", line 258, in init
getattr(self.metadata, "set" + key)(val)
File "/var/venv/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 1242, in set_classifiers
self.classifiers = _ensure_list(value, 'classifiers')
File "/var/venv/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 48, in _ensure_list
log.warning(msg)
AttributeError: module 'distutils.log' has no attribute 'warning'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Possible Fix
Update kappa dependency to 0.7.0
Steps to Reproduce
Your Environment
pip freeze
:zappa==0.54.1, kappa==0.6.0zappa_settings.json
:The text was updated successfully, but these errors were encountered: