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

Fix compatibility with Python 3.11 by updating the vendored version of attrs #5449

Closed
torsava opened this issue Oct 31, 2022 · 2 comments
Closed

Comments

@torsava
Copy link
Contributor

torsava commented Oct 31, 2022

Issue description

When running latest version of pipenv (2022.10.25) on Python 3.11 it shows a runtime warning:

$ pipenv --version
/__venv__/lib64/python3.11/site-packages/pipenv/vendor/attr/_make.py:876: RuntimeWarning: Running interpreter doesn't sufficiently support code object introspection.  Some features like bare super() or accessing __class__ will not work with slotted classes.
  set_closure_cell(cell, cls)
pipenv, version 2022.10.25

This has been fixed in attrs version 22.1.0 (see python-attrs/attrs#969). However, pipenv currently vendors version 21.2.0 (see https://github.com/pypa/pipenv/blob/main/pipenv/vendor/vendor.txt#L1).

Please update the vendored version of attrs to 22.1.0 or later to fix compatibility with Python 3.11

Expected result

$ pipenv --version
pipenv, version 2022.10.25

Actual result

See issue description.

Steps to replicate

Launch any pipenv command on Python 3.11.

$ pipenv --version
@torsava
Copy link
Contributor Author

torsava commented Oct 31, 2022

Note that this is blocking the update of pipenv in Fedora: https://src.fedoraproject.org/rpms/pipenv/pull-request/56

oz123 added a commit that referenced this issue Nov 1, 2022
See also issue #5449 - Fix Python 3.11 compat.
@oz123
Copy link
Contributor

oz123 commented Nov 4, 2022

Fix by #5450.

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

2 participants