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!
This error happened to me to with fiedialog.askopenfilename() when my google drive was not on. so my Google drive I: looked like I:?.
`2023-01-06T09:07:05.111ZE [12776:ShellIpcClient] shell_ipc_client.cc:129:Connect Can't connect to socket at: \\.\Pipe\GoogleDriveFSPipe_Y_shell `
After opening google drive app and trying filedialog.askopenfilename() again it worked without problem
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With