Comments (20)
I also had this problem, even though I was starting chrome in headless mode. For those who come across this in the future, I found adding "--no-sandbox" to the chrome startup arguments solved the problem.
E.g. chrome_options.add_argument('--no-sandbox')
from instagram-profilecrawl.
I had this problem. You need to make sure it's running as headless.
In crawl_profile.py
, add
chrome_options.add_argument('--headless')
below the other similar add_argument lines
from instagram-profilecrawl.
@shapetheLOLa
Have you tried this stackoverflow question ?
Are you running as root?
from instagram-profilecrawl.
@happyhq Version of Chrome browser is the latest. Chromedriver is also up to date. I tried lower versions but error is still same.
from instagram-profilecrawl.
@happyhq I solved my problem. I used procmon to trace what's going on with chromedriver.exe and I found out that the problem was in admin rights. I simply checked to run my IDLE and chromedriver as administrator and now it works just fine.
from instagram-profilecrawl.
@timgrossmann can be closed
@shapetheLOLa please close
from instagram-profilecrawl.
@shapetheLOLa Hmm... this is really weird. Sounds like it's either the wrong chrome driver for your system or your droplet hasn't got enough power (RAM)
from instagram-profilecrawl.
Im using the same chromedriver as in instapy, I've just copied it to the other location.
Not sure what you mean by droplet and enough RAM tho. The Linux server has plenty
from instagram-profilecrawl.
@shapetheLOLa
On the log looks like it´s using selenium webdriver from python2.7
"/home/jwkoch/.local/lib/python2.7/site-packages/selenium/webdriver/chrome/webdriver.py"
Try install selenium for python3
pip3 install selenium
and run with python3
from instagram-profilecrawl.
Oh sorry, yea but same error there. I've just tried it with python 2.7 after 3 didnt work.
I've also tried using a later chromedriver version.
Here is the output
⇒ python3.5 crawl_profile.py Traceback (most recent call last): File "crawl_profile.py", line 18, in <module> browser = webdriver.Chrome('./assets/chromedriver', chrome_options=chrome_options) File "/home/jwkoch/.local/lib/python3.5/site-packages/selenium/webdriver/chrome/webdriver.py", line 69, in __init__ desired_capabilities=desired_capabilities) File "/home/jwkoch/.local/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py", line 98, in __init__ self.start_session(desired_capabilities, browser_profile) File "/home/jwkoch/.local/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py", line 188, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "/home/jwkoch/.local/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py", line 256, in execute self.error_handler.check_response(response) File "/home/jwkoch/.local/lib/python3.5/site-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally (Driver info: chromedriver=2.30.477691 (6ee44a7247c639c0703f291d320bdf05c1531b57),platform=Linux 4.4.0-83-generic x86_64)
from instagram-profilecrawl.
This won't help, will it? the chromedriver is in the assets folder, not /opt/google or /opt/.
I've tried putting it there and put a link to the assets folder, still no luck
from instagram-profilecrawl.
for some reason, wasnt working with chromedriver 2.29, had to update to 2.35 and worked
from instagram-profilecrawl.
Following on from @k1ltr0 - I have just had to update to v2.36 from 2.33 after receiving this error message. It's working fine now.
from instagram-profilecrawl.
Hello,
I got 2 identical Dell computers with both win10.
First one can run selenium via simple python code
from selenium import webdriver
driver = webdriver.Chrome()
driver.get('https://www.google.cz')
Second pc cannot run it. I tried to do everything I read on the internet but still getting error:
selenium.common.exceptions.WebDriverException: Message: unknown error: chrome failed to start
(Driver info: chromedriver=2.37.544315 (730aa6a5fdba159ac9f4c1e8cbc59bf1b5ce12b7),platform=Windows NT 10.0.16299 x86_64)
I tried to add chrome_options.add_argument('--headless') and chrome_options.add_argument('--no-sandbox') + I set Path variable and still getting this error.
Do you know how to solve it?
from instagram-profilecrawl.
@r8w9a5k which your version of python?
from instagram-profilecrawl.
@r8w9a5k
I meet the same problem。before,I think it‘s the version of python。But NOT。
it ’s the veriosn of chrome。
Please choice the right version of chrome and chromedriver。
You can see from https://sites.google.com/a/chromium.org/chromedriver/。
from instagram-profilecrawl.
@happyhq I am using python 3.6.1 and latest chromedriver 2.3.7
from instagram-profilecrawl.
@happyhq Today I tried to run that on python 3.6.5 and chromedriver 2.3.7 with both 32bit or 64 bit and it still doesn't work. I am really angry why two indetical Dell computers differs.
from instagram-profilecrawl.
Please choice the right version of chrome and chromedriver。
You can see from https://sites.google.com/a/chromium.org/chromedriver/。
from instagram-profilecrawl.
@r8w9a5k Maybe the version of chrome is too old.
from instagram-profilecrawl.
Related Issues (20)
- urllib3 MaxRetryError
- Error in line 19 HOT 1
- Getting error in extractor.py HOT 2
- not getting commenst of users and who liked particular photo info HOT 1
- selenium.common.exceptions.NoSuchElementException HOT 5
- Error on crawl_profile.py HOT 3
- login failed HOT 8
- TypeError: get_logger() missing 1 required positional argument: 'show_logs' HOT 14
- webdriver error HOT 1
- unknown error: DevToolsActivePort file doesn't exist HOT 3
- Increase ultimate followers
- List of followings?
- question: is this an archive or is it still open?
- I want to participate in project to fix README.md
- INSTA HACK
- I don't understand what is going wrong? HOT 4
- crawl_profile_pi.py - Is missing.
- A
- Wrong class name
- AttributeError: 'str' object has no attribute 'capabilities'
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 instagram-profilecrawl.