Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: py2exe failed to compiled
Post: RE: py2exe failed to compiled

(Feb-27-2019, 08:49 PM)snippsat Wrote: A quick test,an you have to read the doc. So can use spec file that get create every time run pyinstaller or add stuff with commands. Adding binary from comman...
gahhon General Coding Help 9 7,530 Mar-04-2019, 03:29 AM
    Thread: Directory path
Post: RE: Directory path

Hello?
gahhon General Coding Help 3 2,959 Mar-03-2019, 03:14 PM
    Thread: Directory path
Post: Directory path

I do have some issues regarding the directory path value. Let's say my folder structure is like this Python config folder (containing several .ini files) log folder (containing several .log fil...
gahhon General Coding Help 3 2,959 Mar-01-2019, 02:49 PM
    Thread: py2exe failed to compiled
Post: RE: py2exe failed to compiled

(Feb-27-2019, 08:49 PM)snippsat Wrote: A quick test,an you have to read the doc. So can use spec file that get create every time run pyinstaller or add stuff with commands. Adding binary from comman...
gahhon General Coding Help 9 7,530 Feb-28-2019, 10:26 AM
    Thread: py2exe failed to compiled
Post: RE: py2exe failed to compiled

(Feb-27-2019, 06:05 PM)snippsat Wrote: (Feb-27-2019, 05:45 PM)gahhon Wrote: Then in my script, I must add the pyglet.lib.load_library('avbin.dll') pyglet.have_avbin=True But in your post, you were...
gahhon General Coding Help 9 7,530 Feb-27-2019, 07:07 PM
    Thread: py2exe failed to compiled
Post: RE: py2exe failed to compiled

(Feb-27-2019, 04:47 PM)snippsat Wrote: (Feb-27-2019, 03:44 PM)gahhon Wrote: But if convert to .exe by using pyinstaller, the client computers are not able to execute the .exe files due to their co...
gahhon General Coding Help 9 7,530 Feb-27-2019, 05:45 PM
    Thread: py2exe failed to compiled
Post: RE: py2exe failed to compiled

(Feb-27-2019, 01:28 PM)snippsat Wrote: Py2exe stopped develop at Python 3.4 and do not work for newer versions. Use pyinstaller work Python 3.7. Look at posts in this Thread and my run in this post....
gahhon General Coding Help 9 7,530 Feb-27-2019, 03:44 PM
    Thread: py2exe failed to compiled
Post: py2exe failed to compiled

I am using Python 3.7.2 and py2exe 0.9.2.2 I have followed the tutorial from Py2exe Tutorial But I am still failed to convert the script into executable file as I can't find any right solution through...
gahhon General Coding Help 9 7,530 Feb-27-2019, 12:44 PM
    Thread: webdriver.remote to connect back existing browser without open new browser?
Post: RE: webdriver.remote to connect back existing brow...

I have resolved the issue, but I am not sure whether is it the quotation issue or not. driverOtp = webdriver.ChromeOptions() driverOtp.add_argument('--headless') driverOtp.add_argument('--disable-gpu...
gahhon Web Scraping & Web Development 6 6,769 Feb-26-2019, 03:53 PM
    Thread: Selenium how to detect if browser is close?
Post: RE: Selenium how to detect if browser is close?

Found my own solution. Just use try-catch method on WebDriverException and NoSuchWindowException then create new instance of webdriver.
gahhon Web Scraping & Web Development 2 12,446 Feb-26-2019, 01:57 PM
    Thread: Selenium how to detect if browser is close?
Post: Selenium how to detect if browser is close?

CommonChrome.py from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from se...
gahhon Web Scraping & Web Development 2 12,446 Feb-25-2019, 02:13 PM
    Thread: webdriver.remote to connect back existing browser without open new browser?
Post: RE: webdriver.remote to connect back existing brow...

I follow this guideline here Set ChromeOption with RemoteDriver So my code would like like: sID = ch.get("session_id") sURL = ch.get("url") options = webdriver.ChromeOptions() ## options.add_argumen...
gahhon Web Scraping & Web Development 6 6,769 Feb-25-2019, 01:40 PM
    Thread: webdriver.remote to connect back existing browser without open new browser?
Post: RE: webdriver.remote to connect back existing brow...

(Feb-24-2019, 01:26 PM)metulburr Wrote: (Feb-23-2019, 05:57 AM)gahhon Wrote: So how can I launch new browser in hidden mode?add this argument driverOtp.add_argument("--headless") I did try that, b...
gahhon Web Scraping & Web Development 6 6,769 Feb-24-2019, 06:58 PM
    Thread: webdriver.remote to connect back existing browser without open new browser?
Post: RE: webdriver.remote to connect back existing brow...

Anyone? hmmm
gahhon Web Scraping & Web Development 6 6,769 Feb-24-2019, 10:06 AM
    Thread: webdriver.remote to connect back existing browser without open new browser?
Post: webdriver.remote to connect back existing browser ...

CommonChrome.py from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from se...
gahhon Web Scraping & Web Development 6 6,769 Feb-23-2019, 05:57 AM
    Thread: wait.until(EC.element_to_be_clickable) failed to click
Post: RE: wait.until(EC.element_to_be_clickable) failed ...

(Feb-22-2019, 05:47 PM)metulburr Wrote: did you raise the number to 30? IF so then you just need more time before timeout. https://selenium-python.readthedocs.io/a...pport.wait Another option is t...
gahhon Web Scraping & Web Development 4 8,009 Feb-23-2019, 04:58 AM
    Thread: wait.until(EC.element_to_be_clickable) failed to click
Post: RE: wait.until(EC.element_to_be_clickable) failed ...

(Feb-21-2019, 05:35 PM)metulburr Wrote: (Feb-21-2019, 04:11 PM)gahhon Wrote: def FindElementById(Element): clickable = wait.until(EC.element_to_be_clickable((By.ID, Element)))What exactly is y...
gahhon Web Scraping & Web Development 4 8,009 Feb-22-2019, 04:20 PM
    Thread: wait.until(EC.element_to_be_clickable) failed to click
Post: wait.until(EC.element_to_be_clickable) failed to c...

def FindElementById(Element): clickable = wait.until(EC.element_to_be_clickable((By.ID, Element))) clickable.click()Chrome.FindElementById("user-id")It is not able to perform the click functio...
gahhon Web Scraping & Web Development 4 8,009 Feb-21-2019, 04:11 PM
    Thread: Selenium Webdriver Automate
Post: Selenium Webdriver Automate

As I can build a simple python script to perform automate process on some website, by using the webdriver. as my simple python script, basically is using like .find_element_by_id, .find_element_by_nam...
gahhon Web Scraping & Web Development 1 2,876 Feb-19-2019, 03:35 PM
    Thread: How to call a function from exe file via CMD
Post: How to call a function from exe file via CMD

It is possible to do that so? This is also due to the same reason as previous posts (if you got read them) I am using AutoIT to design fancy GUI, which consists of several of buttons. If different bu...
gahhon General Coding Help 0 1,598 Feb-19-2019, 03:21 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020