Potential bug in Pycharm when using with remote debugging

I'm trying to configure remote debugging on an AWS Glue Endpoint as outlined here: https://docs.aws.amazon.com/glue/latest/dg/dev-endpoint-tutorial-pycharm.html.

I receive the following error message

Cannot run the remote Python interpreter: Could not obtain a remote socket from output, stderr
File "<string>", line 1
import socket; s = socket.socket(socket.AF_INET, socket.SOCK_STREAM); s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1); s.bind((, 0)); print(s.getsockname()); s.close()
SyntaxError: invalid syntax

The error message complains (rightfully) that s.bind((, 0)); is a syntax error in Python. I've tried the latest version of PyCharm Pro (2021.1) as well as a bunch of other versions: 2019.3.5, 2018.3.7, and 2018.1.6. The error is still there. I am running on Mac OS Big Sur.

0

Please sign in to leave a comment.