Comments (2)
This happens when Browser() is initialized, on line 66 from the code provided above.
The traceback for webbot is:
File "lib\site-packages\webbot\webbot.py", line 50, in __init__
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\Users\loksa\AppData\Local\Temp\_MEI215642\webbot\drivers\chrome_windows.exe'
from webbot.
I found a way to fix the issue but it is not the best one.
In fact, the problem comes from the file "webbot.py" at line 48
driverpath = os.path.join(os.path.split(__file__)[0] , 'drivers{0}{1}'.format(os.path.sep , driverfilename))
if you print each elements
print(os.path.split(__file__)[0]) print('drivers{0}{1}'.format(os.path.sep , driverfilename)) print(driverpath)
We see that the path is set akwardly: backslash are not all the same. I think it is a problem for pyinstaller, because it is not able to take the chrome driver in account.
C:/Users/xavie/Anaconda3/Lib/site-packages/webbot drivers\chrome_windows.exe C:/Users/xavie/Anaconda3/Lib/site-packages/webbot\drivers\chrome_windows.exe
I replaced line 48 by
driverpath = 'C:/Users/xavie/Anaconda3/Lib/site-packages/webbot/drivers/chrome_windows.exe'
and it worked just fine. Of course you need to change the user name, and check in which library webbot is. But you can find it out by making some print as I did.
from webbot.
Related Issues (20)
- Error running on AWS lambda.
- How to perform right click using webbot HOT 3
- Webbot is not working on linux(parrot) HOT 3
- Chrome processes stay open after usage HOT 2
- How to change browser to firefox? HOT 3
- where is version 0.1.4 ? HOT 1
- New Issue 2022
- session not created exception: Missing or invalid capabilities HOT 3
- Traceback and cannot find Chrome binary
- Error about Selenium version HOT 1
- Cannot Run In VSCode
- web.go_to('siteurl.com') kills webbot
- switch_to_alert removal in webbot.py
- Incorrect error check?
- Web = Browser() , Error HOT 6
- When I try to do web = Browser() I get this error: ValueError: Timeout value connect was <object object at 0x00000277138947B0>, but it must be an int, float or None. HOT 4
- [Guide] Running a working version of `webbot` HOT 2
- It didn't work for me
- Issue in web = Browser() HOT 2
- Working version of Webbot
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webbot.