Consider this Python script, the first lines of which are meant to ask for an input file:
import os
import csv
import tkinter as tk
from tkinter import filedialog
from setup import *
# Input the piece of music
input('Select a piece of music, in XML format.')
print()
root = tk.Tk()
root.withdraw()
piece_path = filedialog.askopenfilename()
file_name = piece_path.split('/')[-1].split('.')[0]
When running this (VS Code 1.63.2, on Win10), execution freezes after the text is displayed:
Select a piece of music, in XML format.
If at that point I press Enter in the terminal, I get:
[10284:ShellIpcClient] shell_ipc_client.cc:116:Connect Can't connect to socket at: \\.\Pipe\GoogleDriveFSPipe_z8080_shell
[10284:ShellIpcClient] shell_ipc_client.cc:116:Connect Can't connect to socket at: \\.\Pipe\GoogleDriveFSPipe_z8080_shell
[13220:ShellIpcClient] shell_ipc_client.cc:116:Connect Can't connect to socket at: \\.\Pipe\GoogleDriveFSPipe_z8080_shell
[9136:ShellIpcClient] shell_ipc_client.cc:116:Connect Can't connect to socket at: \\.\Pipe\GoogleDriveFSPipe_z8080_shell
[10284:ShellIpcClient] shell_ipc_client.cc:116:Connect Can't connect to socket at: \\.\Pipe\GoogleDriveFSPipe_z8080_shell
[9136:ShellIpcClient] shell_ipc_client.cc:116:Connect Can't connect to socket at: \\.\Pipe\GoogleDriveFSPipe_z8080_shell
[9176:ShellIpcClient] shell_ipc_client.cc:116:Connect Can't connect to socket at: \\.\Pipe\GoogleDriveFSPipe_z8080_shell
[9136:ShellIpcClient] shell_ipc_client.cc:116:Connect Can't connect to socket at: \\.\Pipe\GoogleDriveFSPipe_z8080_shell
[10284:ShellIpcClient] shell_ipc_client.cc:116:Connect Can't connect to socket at: \\.\Pipe\GoogleDriveFSPipe_z8080_shell
[9136:ShellIpcClient] shell_ipc_client.cc:116:Connect Can't connect to socket at: \\.\Pipe\GoogleDriveFSPipe_z8080_shell
[9176:ShellIpcClient] shell_ipc_client.cc:116:Connect Can't connect to socket at: \\.\Pipe\GoogleDriveFSPipe_z8080_shell
[9176:ShellIpcClient] shell_ipc_client.cc:116:Connect Can't connect to socket at: \\.\Pipe\GoogleDriveFSPipe_z8080_shell
[9176:ShellIpcClient] shell_ipc_client.cc:116:Connect Can't connect to socket at: \\.\Pipe\GoogleDriveFSPipe_z8080_shell
[9136:ShellIpcClient] shell_ipc_client.cc:116:Connect Can't connect to socket at: \\.\Pipe\GoogleDriveFSPipe_z8080_shell
[9176:ShellIpcClient] shell_ipc_client.cc:116:Connect Can't connect to socket at: \\.\Pipe\GoogleDriveFSPipe_z8080_shell
These error messages aren't very helpful: this .py file is local on my PC, and I have no app open that uses Google Drive in any way. I have a firewall, but these errors happen even if I turn it off. The current directory has been changed to the location of the py file, prior to running.
SHould say that, upon running this code I did get a OpenFile window, which I accidentally closed, and which never appeared again, despite not having changed anything in the code!