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

[Human Detection] Console not opening #2007

Closed
pariaspe opened this issue Apr 17, 2023 · 4 comments · Fixed by #2053
Closed

[Human Detection] Console not opening #2007

pariaspe opened this issue Apr 17, 2023 · 4 comments · Fixed by #2053

Comments

@pariaspe
Copy link
Collaborator

Exception happened during processing of request from ('172.17.0.1', 55732)
Traceback (most recent call last):
  File "/usr/lib/python3.8/socketserver.py", line 683, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python3.8/socketserver.py", line 360, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/local/lib/python3.8/dist-packages/websocket_server/websocket_server.py", line 271, in __init__
    StreamRequestHandler.__init__(self, socket, addr, server)
  File "/usr/lib/python3.8/socketserver.py", line 747, in __init__
    self.handle()
  File "/usr/local/lib/python3.8/dist-packages/websocket_server/websocket_server.py", line 284, in handle
    self.read_next_message()
  File "/usr/local/lib/python3.8/dist-packages/websocket_server/websocket_server.py", line 341, in read_next_message
    opcode_handler(self, message_bytes.decode('utf8'))
  File "/usr/local/lib/python3.8/dist-packages/websocket_server/websocket_server.py", line 163, in _message_received_
    self.message_received(self.handler_to_client(handler), self, msg)
  File "/RoboticsAcademy/exercises/static/exercises/human_detection/exercise.py", line 549, in handle
    start_console()
  File "/RoboticsAcademy/exercises/static/exercises/human_detection/console.py", line 11, in start_console
    sys.stderr = open('/dev/pts/' + console_fd, 'w')
OSError: [Errno 5] Input/output error: '/dev/pts/1'
@ammarfitwalla
Copy link

Hi , I am new to open source , can I have this issue resolved?

@pariaspe
Copy link
Collaborator Author

Hi, go ahead and propose a pull request with your solution. Also, take a look at the contributing guide please.

@Bhardwaj-Himanshu
Copy link
Contributor

Let me know what you are upto @ammarfitwalla , and if I could be of any help!

@pawanw17
Copy link
Collaborator

@pariaspe The issue occurs because the console is open at a very early stage of the code, moving to a later stage (similar to other exercises) fixes it.
image

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

Successfully merging a pull request may close this issue.

4 participants