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

AttributeError: module 'os' has no attribute 'errno' #115

Open
marked opened this issue Oct 21, 2019 · 1 comment
Open

AttributeError: module 'os' has no attribute 'errno' #115

marked opened this issue Oct 21, 2019 · 1 comment
Labels

Comments

@marked
Copy link

marked commented Oct 21, 2019

File "/home/marked/.local/lib/python3.7/site-packages/seesaw/runner.py", line 187, in _handle_item_output

if e.errno != os.errno.EINTR:
AttributeError: module 'os' has no attribute 'errno'
ERROR:tornado.application:Uncaught exception, closing connection.
Traceback (most recent call last):
File "/home/marked/.local/lib/python3.7/site-packages/seesaw/runner.py", line 182, in _handle_item_output
sys.stdout.flush()
BrokenPipeError: [Errno 32] Broken pipe
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/marked/.local/lib/python3.7/site-packages/tornado/iostream.py", line 562, in wrapper return callback(*args)
File "/home/marked/.local/lib/python3.7/site-packages/tornado/stack_context.py", line 345, in wrapped
raise_exc_info(exc)
File "", line 4, in raise_exc_info
File "/home/marked/.local/lib/python3.7/site-packages/tornado/stack_context.py", line 357, in _handle_exception
if tail.exit(*exc):
File "/home/marked/.local/lib/python3.7/site-packages/tornado/stack_context.py", line 188, in exit return self.exception_handler(type, value, traceback)
File "/usr/lib/python3.7/contextlib.py", line 239, in helper
return _GeneratorContextManager(func, args, kwds)
File "/usr/lib/python3.7/contextlib.py", line 82, in init
self.gen = func(*args, **kwds)
File "/home/marked/.local/lib/python3.7/site-packages/seesaw/pipeline.py", line 51, in handle_item_exception
item.log_output("Failed %s for %s\n" % (task, item.description()))
File "/home/marked/.local/lib/python3.7/site-packages/seesaw/item.py", line 194, in log_output self.on_output(self, data)
File "/home/marked/.local/lib/python3.7/site-packages/seesaw/event.py", line 31, in fire handler(*args, **kargs)
File "/home/marked/.local/lib/python3.7/site-packages/seesaw/runner.py", line 187, in _handle_item_output
if e.errno != os.errno.EINTR: AttributeError: module 'os' has no attribute 'errno'
ERROR:tornado.application:Exception in callback functools.partial(<function wrap..null_wrapper at 0x7fc6fb8068c8>)
Traceback (most recent call last):
File "/home/marked/.local/lib/python3.7/site-packages/seesaw/runner.py", line 182, in _handle_item_output
sys.stdout.flush()
BrokenPipeError: [Errno 32] Broken pipe
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/marked/.local/lib/python3.7/site-packages/tornado/ioloop.py", line 605, in _run_callback
ret = callback()
File "/home/marked/.local/lib/python3.7/site-packages/tornado/stack_context.py", line 277, in null_wrapper
return fn(*args, **kwargs)
File "/home/marked/.local/lib/python3.7/site-packages/tornado/iostream.py", line 562, in wrapper return callback(*args)
File "/home/marked/.local/lib/python3.7/site-packages/tornado/stack_context.py", line 345, in wrapped
raise_exc_info(exc)
File "", line 4, in raise_exc_info
File "/home/marked/.local/lib/python3.7/site-packages/tornado/stack_context.py", line 357, in _handle_exception
if tail.exit(*exc):
File "/home/marked/.local/lib/python3.7/site-packages/tornado/stack_context.py", line 188, in exit return self.exception_handler(type, value, traceback)
File "/usr/lib/python3.7/contextlib.py", line 239, in helper
return _GeneratorContextManager(func, args, kwds)
File "/usr/lib/python3.7/contextlib.py", line 82, in init
self.gen = func(*args, **kwds)
File "/home/marked/.local/lib/python3.7/site-packages/seesaw/pipeline.py", line 51, in handle_item_exception
item.log_output("Failed %s for %s\n" % (task, item.description()))
File "/home/marked/.local/lib/python3.7/site-packages/seesaw/item.py", line 194, in log_output self.on_output(self, data)
File "/home/marked/.local/lib/python3.7/site-packages/seesaw/event.py", line 31, in fire handler(*args, **kargs)
File "/home/marked/.local/lib/python3.7/site-packages/seesaw/runner.py", line 187, in _handle_item_output
if e.errno != os.errno.EINTR:
AttributeError: module 'os' has no attribute 'errno'

@JustAnotherArchivist
Copy link

Yeah, os had an import errno until this commit, but using it as os.errno was never intended.

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

No branches or pull requests

2 participants