You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure exactly how I manage to get this error, but here is the traceback I get:
Error in callback <function sys_pipes_forever at 0x11a0d49d8> (for pre_execute):
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/wurlitzer.py", line 320, in sys_pipes_forever
_mighty_wurlitzer.__enter__()
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/contextlib.py", line 110, in __enter__delself.args, self.kwds, self.func
AttributeError: args
Looking at the sys_pipes_forever function, it looks like __enter__ is called even if wurlitzer already called __enter__. As pointed out in the comment above line 110:
# do not keep args and kwds alive unnecessarily
# they are only needed for recreation, which is not possible anymore
This means that __enter__ can not be called more than once.
Maybe this could be fixed by changing the indentation of line 320?
The text was updated successfully, but these errors were encountered:
impact27
added a commit
to impact27/wurlitzer
that referenced
this issue
Jun 4, 2019
I am not sure exactly how I manage to get this error, but here is the traceback I get:
Looking at the
sys_pipes_forever
function, it looks like__enter__
is called even if wurlitzer already called__enter__
. As pointed out in the comment above line 110:This means that
__enter__
can not be called more than once.Maybe this could be fixed by changing the indentation of line 320?
The text was updated successfully, but these errors were encountered: