Well I fixed several issues I was experiencing, however I cannot get past this error:
Traceback (most recent call last):
File "C:\pancakeswapbot\abi.py", line 17, in tokenAbi
with open(f"data/{filename}") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'data/ABI_0x679D5b2d94f454c950d683D159b87aa8eae37C9e.txt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\pancakeswapbot\DeFiTranscation.py", line 291, in <module>
runCode()
File "C:\pancakeswapbot\DeFiTranscation.py", line 133, in runCode
BNB_balance, TokenSymbol, NoOfTokens, params = InitializeTrade()
File "C:\pancakeswapbot\DeFiTranscation.py", line 66, in InitializeTrade
sellTokenAbi = tokenAbi(TokenToSellAddress, driver)
File "C:\pancakeswapbot\abi.py", line 21, in tokenAbi
abi = findAbi(address, driver)
File "C:\pancakeswapbot\abi.py", line 41, in findAbi
driver.get("chrome://settings/clearBrowserData");
File "C:\Users\IEUser\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 333, in get
self.execute(Command.GET, {'url': url})
File "C:\Users\IEUser\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\IEUser\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.InvalidArgumentException: Message: Malformed URL: URL constructor: chrome://settings/clearBrowserData is not a valid URL.
Also this line is weird: FileNotFoundError: [Errno 2] No such file or directory: 'data/ABI_0x679D5b2d94f454c950d683D159b87aa8eae37C9e.txt'
The file is in there! So no clue why he cannot find it. The script even created it!
Though it only has empty variables in it...
Any idea perhaps? Thanks.