Hi everyone, I'm seeing a strange issue when using...
# ask-community
a
Hi everyone, I'm seeing a strange issue when using threading with python. A flow runs successfully for a couple of minutes and then gets errors like.
Copy code
asyncio - Exception in callback SubprocessStreamProtocol.pipe_data_received(1, b'accepted: 0...pted: 1 (1)\n')
handle: <Handle SubprocessStreamProtocol.pipe_data_received(1, b'accepted: 0...pted: 1 (1)\n')>
Traceback (most recent call last):
  File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/lib/python3.11/asyncio/subprocess.py", line 72, in pipe_data_received
    reader.feed_data(data)
  File "/usr/lib/python3.11/asyncio/streams.py", line 498, in feed_data
    assert not self._eof, 'feed_data after feed_eof'
           ^^^^^^^^^^^^^
AssertionError: feed_data after feed_eof
I've seen issues raised on github for similar errors using `ShellOperations, but nothing for python with threading. we're using version 2.19.6, self hosted. can anyone help with this?
Does anyone know what might be causing this and if it will be fixed in 3.0?
j
Hi Arthur! Any chance you can provide an MRE? And if so, it might be worth opening an issue for it. Without more info it’s hard to say if it’ll be fixed in 3.0 but you can try upgrading and see if the issue persists.
a
Hi @Jenny, i am trying to create an MRE but the issue is we're not entirely sure where this is coming from (threading, torch multiprocessing, etc) so it's pretty hard to do. There are several issues already open for similar issues (although with the ShellOperation command), so are any of those actively being worked on/fixed in 3.0?
j
Thanks - I just tried the MREs that use ShellOperation - both ran successfully for me in 3.0