Hmm. Do you get anything from the print statements?
What about any uplink scripts?
The thing that I know gave me dramas like this was an uplink script that was running selenium that wasn’t reporting back from PyCharm.
Once I realised it was the uplink script, debugging it locally sorted it out.