Skip to content
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

Closed
lidgen opened this issue Nov 24, 2022 · 5 comments
Closed

Bug: Update kappa dependency version to 0.7.0 #1195

lidgen opened this issue Nov 24, 2022 · 5 comments

Comments

@lidgen
Copy link

lidgen commented Nov 24, 2022

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

  1. Run pip install zappa in any linux docker

Your Environment

  • Zappa version used: 0.54.1
  • Operating System and Python version: public.ecr.aws/sam/build-python3.8:latest, AWS_Lambda_python3.8
  • The output of pip freeze:zappa==0.54.1, kappa==0.6.0
  • Link to your project (optional):
  • Your zappa_settings.json:
@sridhar562345
Copy link
Contributor

@lidgen What's your pip and setuptools version?

Did you try upgrading pip and setuptools version?

pip install -U pip setuptools

@lidgen
Copy link
Author

lidgen commented Nov 24, 2022

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.
pypa/setuptools#3707

@sridhar562345
Copy link
Contributor

@lidgen setuptools released a new version 65.6.3 fixing this issue.

@lidgen
Copy link
Author

lidgen commented Nov 24, 2022

Thanks

@monkut
Copy link
Collaborator

monkut commented Aug 17, 2023

fixed via setuptools update.
Closing.

NOTE: we do need to upgrade or move off of kappa at some point.

@monkut monkut closed this as completed Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants