'Script no longer works after pytoexe conversion
I have created a script in python that you can find attached, if I run it from visual code it works perfectly, but if I convert it with pytoexe I get the error shown below.
I installed the packages in the virtual environment where I saved the script
############# USER FINDER ##############
userfinder = soup.find('span', class_='ivupad-user-first-name')
user = (userfinder.text)
############# USER FINDER ##############
scraping()
while True:
scraping()
if input("Möchtest du fortfahren? Weiter mit 'j' oder 'n'").strip().upper() != 'j':
break
driver.close()
And this is the error:
Traceback (most recent call last):
File "Monatseint_Tool_v0.5.py", line 349, in <module>
File "Monatseint_Tool_v0.5.py", line 86, in scraping
AttributeError: 'NoneType' object has no attribute 'text'
[4144] Failed to execute script 'Monatseint_Tool_v0.5' due to unhandled exception!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
