uqfoundation/dill

AttributeError on co_endlinetable on Python 3.11

Closed this issue · 1 comments

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'?

I just saw that issue #514 reported the same problem and that it is fixed in master, but not yet released, and that a release is coming out shortly.

This issue can be closed. Sorry for not checking this out in the first place.