This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author peter.roelants
Recipients FFY00, Mark.Shannon, graingert, iritkatriel, nedbat, pablogsal, peter.roelants
Date 2022-03-02.13:41:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1646228514.41.0.352838522055.issue44446@roundup.psfhosted.org>
In-reply-to
Content
If I understand correctly this should be fixed? In which 3.10.* version should this be fixed?

The reason why I'm asking is that I ran into this issue when using Dask (2022.02.0) with multithreading on Python 3.10.2:

Exception in thread Profile:
Traceback (most recent call last):
  File "./lib/python3.10/site-packages/distributed/profile.py", line 115, in process
    d = state["children"][ident]
KeyError: '_all_objs;./lib/python3.10/site-packages/bokeh/embed/bundle.py;357'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./lib/python3.10/threading.py", line 1009, in _bootstrap_inner
    self.run()
  File "./lib/python3.10/threading.py", line 946, in run
    self._target(*self._args, **self._kwargs)
  File "./lib/python3.10/site-packages/distributed/profile.py", line 274, in _watch
    process(frame, None, recent, omit=omit)
  File "./lib/python3.10/site-packages/distributed/profile.py", line 119, in process
    "description": info_frame(frame),
  File "./lib/python3.10/site-packages/distributed/profile.py", line 72, in info_frame
    line = linecache.getline(co.co_filename, frame.f_lineno, frame.f_globals).lstrip()
  File "./lib/python3.10/linecache.py", line 31, in getline
    if 1 <= lineno <= len(lines):
TypeError: '<=' not supported between instances of 'int' and 'NoneType'
History
Date User Action Args
2022-03-02 13:41:54peter.roelantssetrecipients: + peter.roelants, nedbat, Mark.Shannon, graingert, pablogsal, FFY00, iritkatriel
2022-03-02 13:41:54peter.roelantssetmessageid: <1646228514.41.0.352838522055.issue44446@roundup.psfhosted.org>
2022-03-02 13:41:54peter.roelantslinkissue44446 messages
2022-03-02 13:41:54peter.roelantscreate