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

Pylint fails on Python 3.11 due to issue in 'dill' package #2948

Closed
andy-maier opened this issue Oct 13, 2022 · 2 comments · Fixed by #2903
Closed

Pylint fails on Python 3.11 due to issue in 'dill' package #2948

andy-maier opened this issue Oct 13, 2022 · 2 comments · Fixed by #2903

Comments

@andy-maier
Copy link
Contributor

When using dill 0.3.5.1 on Python 3.11.0-rc.2, using Pylint fails with the following AttributeError in dill.

The complete log is in https://github.com/pywbem/pywbem/actions/runs/3240123940/jobs/5310365651

  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/pickle.py", line 560, in save
    f(self, obj)  # Call unbound method with explicit self
    ^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/dill/_dill.py", line 1187, in save_code
    obj.co_firstlineno, obj.co_lnotab, obj.co_endlinetable,
                                       ^^^^^^^^^^^^^^^^^^^
AttributeError: 'code' object has no attribute 'co_endlinetable'. Did you mean: 'co_linetable'?

This has been reported as uqfoundation/dill#514 and is supposed to be fixed in dill 0.3.6 which is not yet released.

@andy-maier andy-maier self-assigned this Oct 13, 2022
@andy-maier andy-maier added this to the 1.6.0 milestone Oct 13, 2022
@andy-maier andy-maier changed the title dill fails on Python 3.11 Pylint fails on Python 3.11 due to issue in 'dill' package Oct 13, 2022
@andy-maier
Copy link
Contributor Author

dill 0.3.6 has been released in 10/2022

@andy-maier
Copy link
Contributor Author

PR #2903 has been upgraded to increase the minimUm version of dill to 0.3.6 for Python >=3.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant