Giter Site home page Giter Site logo

Error after freezing about webbot HOT 2 OPEN

Overcooking avatar Overcooking commented on August 16, 2024
Error after freezing

from webbot.

Comments (2)

DeeJayhX avatar DeeJayhX commented on August 16, 2024

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.

Xanonymus avatar Xanonymus commented on August 16, 2024

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.

Hope it helps ;)
Capture d’écran (65)

from webbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.