nateshmbhat / webbot

Web automation library for simple and easy end to end testing and web browser automation that offers super charged features while keeping it simple to use and master
https://pypi.org/project/webbot/
Mozilla Public License 2.0
239 stars 87 forks source link

permission error while init Browser() #2

Closed gagahan closed 5 years ago

gagahan commented 5 years ago

I get permission error when i try to init Browser().

Python 3.5.2 (default, Nov 23 2017, 16:37:01) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>> from webbot import Browser
>> Browser()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.5/dist-packages/webbot/webbot.py", line 45, in __init__
    os.chmod(driverpath , 0o755 ) 
PermissionError: [Errno 1] Operation not permitted: '/usr/local/lib/python3.5/dist-packages/webbox/drivers/chrome_linux'
nateshmbhat commented 5 years ago

Go to the folder /usr/local/lib/python3.5/dist-packages/webbot/drivers/chrome_linux and give the executable permission to the file chrome_linux using this command in your terminal .

chmod +x chrome_linux

ghost commented 5 years ago

Just add sudo while executing the python file

pvandegeer commented 5 years ago

I'm getting the same error. Running as su returns a FileNotFoundError. There is no chrome_linux at the specified path. It is at /usr/local/lib/python3.5/dist-packages/webbot/drivers/chrome_linux, not webboX