Error-Message when py-File in different folder?
Hello,
i am working on a small webscraping project using selenium -
When i start the program "test2.py" which is in the folder "Python-Diverses" everything works fine:
But when i start - the absolute same program with the name "test2.py" from the sub-folder "WebScraping with Selenium" i get the following error
(trired it also from other folders - same error - it only works directly in the folder "Python-Diverses" from the above example)
How is this possible that the selenium package is only working in this very one folder?
I also tried to deinstall / install the package with pip uninstall selenium / pip install selenium in cmd again - but the same situation.
How could this be...?
Please sign in to leave a comment.
Hi,
Could you please rename the file "Selenium.py" in "WebScraping with Selenium" folder into any name that does not contain the package name as it causes the confusion.
Let me know if it helps.
Yes thanks - this was exactly the problem - now everything works fine.
Thanks and KR.