Selenium error

pikki123

Newbie
Joined
Apr 10, 2009
Messages
25
Reaction score
3
Hi,
I´m trying to run Instapy on pythonanyware, but I always have this issue:

error.jpg


It seems the problem is the selenium version, but I don´t know which version I should to install.
Could you please help me to fix it?
Thanks a lot in advanced!!
 
browser = webdriver.Firefox()

than you need to import the Options for Firefox and define them later before you launch the browser...
 
You can find the answer here. selenium firefox typeerror init got an unexpected keyword argument opt
 
Have you checked these things:
  1. Did you run the script locally (on your machine) to see if it's setup correctly?
  2. Does pythonanyware comes with a desktop environment? (I am not sure, but for the driver, I think you need a desktop environment and some linux cloulds do not come with one, unless you install it).
  3. Do you have the firefox driver downloaded for the pythonanyware app OS (it might be that pythonanyware runs Linux instances and the firefox driver you downloaded could be Windows-based).
 
I don't think the problem is in selenium version. However, if you think so, why not try to downgrade it by manual
 
Pretty sure the library InstaPy doesn't support firefox, because it has built in "ChromeOptions" as an argument.
Therefore you can't use Chrome with it.

Also; InstaPy is obsolete and you're better off making a selenium bot from scratch than using InstaPy, InstaPy will just get your accounts insta-banned, trust me.
 
Thanks a lot for your replies.
I could fix that issue, but now, I have this one

Desktop.jpg
 
Have you checked these things:
  1. Did you run the script locally (on your machine) to see if it's setup correctly?
  2. Does pythonanyware comes with a desktop environment? (I am not sure, but for the driver, I think you need a desktop environment and some linux cloulds do not come with one, unless you install it).
  3. Do you have the firefox driver downloaded for the pythonanyware app OS (it might be that pythonanyware runs Linux instances and the firefox driver you downloaded could be Windows-based).
1- Locally runs great!
2- I don´t know how can I check it?
3- Yep, It had benn installed

Thanks a lot!
 
2- I don´t know how can I check it?

You can either try to connect via remote desktop to your VPS or contact your VPS provider and ask them if your package/plan comes with a desktop environment.
 
Back
Top