You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across an odd issue today, it could be an issue with the Windows Command prompt, but wonder if anyone has seen this issue before. I am getting some information from a vendor's site using Selenium and webdriver-manager. I traced the stack down to a subprocess.Popen().communicate() function, more specifically, line 1196 of subprocess.py (python v 3.12.2 32bit) trying to stdout.read(). It seems to be some issue reading standard out, it hangs (no error, just continues to run) on that line. I ran the code from within PowerShell (as opposed to VS Code which seems to be using CMD) and it worked. If I don't use stdout=subprocess.PIPE, it does print CMD (result of the command in webdriver-manager is cmd = "(dir 2>&1 *`|echo CMD);&<# rem #>echo powershell") and doesn't error, but obviously that isn't all that helpful other than knowing CMD runs a command, just not getting the std out. I have tried other commands too with no such luck.
One of the strangest things is it ran just fine daily for at least a year and suddenly had this issue. I tried the same code on another machine and it works as expected but it needs to run on an automation machine. Its a Windows 10 machine... I wouldn't do it if I didn't have to but the legacy program I'm automating only runs on Windows Desktops.
I would override the library but it uses subprocess also to get the current version of Chrome to install and use the proper driver. I have tried for hours and this is the dead end I hit.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.
Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.
🎥 Watch TMZ Live
TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.
Uh oh!
There was an error while loading. Please reload this page.
-
I came across an odd issue today, it could be an issue with the Windows Command prompt, but wonder if anyone has seen this issue before. I am getting some information from a vendor's site using
Selenium
andwebdriver-manager
. I traced the stack down to asubprocess.Popen().communicate()
function, more specifically, line 1196 of subprocess.py (python v 3.12.2 32bit) trying tostdout.read()
. It seems to be some issue reading standard out, it hangs (no error, just continues to run) on that line. I ran the code from within PowerShell (as opposed to VS Code which seems to be using CMD) and it worked. If I don't usestdout=subprocess.PIPE
, it does print CMD (result of the command in webdriver-manager iscmd = "(dir 2>&1 *`|echo CMD);&<# rem #>echo powershell")
and doesn't error, but obviously that isn't all that helpful other than knowing CMD runs a command, just not getting the std out. I have tried other commands too with no such luck.One of the strangest things is it ran just fine daily for at least a year and suddenly had this issue. I tried the same code on another machine and it works as expected but it needs to run on an automation machine. Its a Windows 10 machine... I wouldn't do it if I didn't have to but the legacy program I'm automating only runs on Windows Desktops.
I would override the library but it uses subprocess also to get the current version of Chrome to install and use the proper driver. I have tried for hours and this is the dead end I hit.
Beta Was this translation helpful? Give feedback.
All reactions