X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2A617385840B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1705819056; bh=KN6urq8WWklPMgIgcaFH0puVDJ1NfGgajNXzdafhWjc=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=plpDXGCUr3wHbz+QtcH7z+EvXunaPvoE2Ni0oFUbTO4oawB+tYiOFofIYMkx/KHXn tijO3QlhBxhDMfs2dBYm1l+k1IPtD/45QmdyH+BTj0ZgUsqg7RGWxr+mLuUXPaA8Xy GP97JLWCiWEhogD+Wp6GwABD+XEh7OSvYcRHyrSI= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 00D963858D33 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 00D963858D33 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705819033; cv=none; b=f8dzOFMWCVn466rPmKWLOndN/AsWOHPwtmTHZuDlE6t02w+wFPfUDyo6tuKcFMLPsHN3/xU8hbBouuGfncFoycmW8yGr7SX/QJ6jzfZ9H8IchrZo3gB6nNK6BLMikDZ2lHcYW8UIeXBiTU4+R6DFJUG4HXek5xkdAE4Oro8uSO4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705819033; c=relaxed/simple; bh=0UKJwKCBAt2kq3cDhnXyfQOakdO7fGsBVM5CcZc5usM=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=W6X8Vqu7YJtebW9K/4EpcDzWlRQGsVUvga8yG6pH8QS1Eg17SC2gX5/DfXHmRMpr6Cp9EVfv9D1GfmmNeniUBuKvapi1zfodKO38kbsEER4o3h+QmsQsqHwyMNeZLibAWvycumlrcZjFmvqlGq5Kx3i8DemujN96Osw1CYHto/g= ARC-Authentication-Results: i=1; server2.sourceware.org X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705819029; x=1706423829; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Xil1TJpFOOjS5CD0ALwFeT38RnQ9llFUduTq9kgC6KA=; b=obpomYV4ypdmCKe9gyZ0nsip4tQkgMtfUvfg0GW4rMkoGp8Q4Ke6kz0DaKbLoDohtT SCFoCT/Jp7axvQpcaF5q+dUD42H/SZChruzrYvsmm2eIAbFbIL3LmLK6DXqj42LnKgWS 3yMaJzC/2K+SQpXVkzVDVrbGWeSQmBGHC49WpHxB5AkDbn+M5T6ErZc6LJKPww//rlqB h237lstuwkdJrr1rpOlPZNWT82jn4AhYcpYlsDmxoQPtMwlUIVjwVhkbXxvzLv3tIr4r rTyvhAw+ZQU5UZoX/KO28rqP34sO5WlDrpv6y2S8DeKg0tDMhjAdfZSzLHHvhc9mvTnX DckA== X-Gm-Message-State: AOJu0YynQ9M3lR7co1u+wwkKR63G8wR+7mHDndcWVp8ymo3WoWBC+T3s RE0GQPjGiTGevmRBBij5a0QjVchvN3PI9cXpZ4kru3GGC6U16wA3QoAzYZj4 X-Google-Smtp-Source: AGHT+IFRRXTcDVbIpftZ+sNz647sy8sthsjEJdcs2yISyvQVrPe5/gAPHZnDblvmkJpHkaRbG9LIEg== X-Received: by 2002:a05:6402:51d1:b0:55c:2db1:ef8b with SMTP id r17-20020a05640251d100b0055c2db1ef8bmr41491edd.1.1705819029486; Sat, 20 Jan 2024 22:37:09 -0800 (PST) Message-ID: Date: Sun, 21 Jan 2024 07:37:08 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Chromedriver does not launch from python 3.9 script Content-Language: en-US To: cygwin AT cygwin DOT com References: In-Reply-To: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Marco Atzeri via Cygwin Reply-To: Marco Atzeri Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "Cygwin" On 20/01/2024 21:26, James via Cygwin wrote: > Latest version of Cygwin installed and updated. > > I'm trying to run this python script which uses chromium in order to execute. > > I got it all installed, and I'm just now trying to run the script and login, but it keeps saying it cannot find the chromedriver.exe. > > But the file exists and I know it's looking in the right place because I pasted the linux version in the same spot and renamed it to chromedriver.exe and it gave me an error about running a 16 bit program. I also dropped in the latest version from the google archive for chromedriver.exe and when I ran the script, it said the new version was not compatible with my current version, so I know for a fact it is reading the file. > > So why is it telling me it doesn't exist? > > But, this works: > > $ pip show selenium > Name: selenium > Version: 4.16.0 > Summary: > Home-page: https://www.selenium.dev > Author: > Author-email: > License: Apache 2.0 > Location: /home/User/Teachable-Dl/env/lib/python3.9/site-packages > Requires: certifi, trio, trio-websocket, urllib3 > Required-by: seleniumbase > > In any case, here is the error I get when I try to run the script: > > User AT User-PC ~/Teachable-Dl > $ python3 main.py --url https://courseurl.com/courses/enrolled/869509 --man_login_url https://sso.teachable.com/secure/1096/identity/login/password --verbose > Traceback (most recent call last): > File "/home/User/Teachable-Dl/env/lib/python3.9/site-packages/seleniumbase/core/browser_launcher.py", line 2963, in get_local_driver ... > FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\User\\.cache\\selenium\\chromedriver\\win64\\109.0.5414.74\\chromedriver.exe' > (env) > have you tried replacing with a POSIX path ? https://cygwin.com/cygwin-ug-net/using.html#using-pathnames To have it use cygpath $ cygpath -u "C:\\Users\\User\\.cache\\selenium\\chromedriver\\win64\\109.0.5414.74\\chromedriver.exe" /cygdrive/c/Users/User/.cache/selenium/chromedriver/win64/109.0.5414.74/chromedriver.exe > Now if I directly run that path: > > cygstart "C:\\Users\\User\\.cache\\selenium\\chromedriver\\win64\\109.0.5414.74\\chromedriver.exe" > > It runs same as clicking on it, so the file exists and the path is right. The popup window is a command window which starts with "Starting ChromeDriver 109...." and the last line is "ChromeDriver was started successfully" > > But the same file is saying doesn't exist when I try to run the script. > > I also pasted the chromedriver.exe file into /env/bin/ folder in the working directory, but it still says doesn't exist, yet now it says the file at the new correct path doesn't exist, so in other words it detected and found it at the new location but still is saying it didn't exist but it does. > > Also, if I delete the folder at that path and then run the script again, it still fails but it also creates the directory at that path and puts the chromedriver.exe in the directory - that means it literally put the file there itself but it's saying that it isn't found. > The Cygwin DLL and some programs like cygstart can handle the Windows PATH style, but most of the applications don't, so use POSIX Regards Marco -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple