Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems downloading #4

Open
gabo52 opened this issue May 30, 2024 · 0 comments
Open

Problems downloading #4

gabo52 opened this issue May 30, 2024 · 0 comments

Comments

@gabo52
Copy link

gabo52 commented May 30, 2024

I had this message when I tried to run the code:
...Downloading ButterflyNetwork zip file...

AttributeError Traceback (most recent call last)
in <cell line: 6>()
4
5 # simulatting button click to download the zip file
----> 6 browser = webdriver.Chrome(chromedriver) #, options=chrome_options)
7 browser.get(butterfly_url)
8

3 frames
/usr/local/lib/python3.10/dist-packages/selenium/webdriver/common/driver_finder.py in _binary_paths(self)
54 return self._paths
55
---> 56 browser = self._options.capabilities["browserName"]
57 try:
58 path = self._service.path

AttributeError: 'str' object has no attribute 'capabilities'

I tried to ommit the chromedriver and I got this error:

...Downloading ButterflyNetwork zip file...

SessionNotCreatedException Traceback (most recent call last)
in <cell line: 6>()
4
5 # simulatting button click to download the zip file
----> 6 browser = webdriver.Chrome()
7 browser.get(butterfly_url)
8

5 frames
/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/errorhandler.py in check_response(self, response)
227 alert_text = value["alert"].get("text")
228 raise exception_class(message, screen, stacktrace, alert_text) # type: ignore[call-arg] # mypy is not smart enough here
--> 229 raise exception_class(message, screen, stacktrace)

SessionNotCreatedException: Message: session not created: Chrome failed to start: exited normally.
(session not created: DevToolsActivePort file doesn't exist)
(The process started from chrome location /root/.cache/selenium/chrome/linux64/125.0.6422.141/chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Stacktrace:
#0 0x578a4b075e3a
#1 0x578a4ad5f45c
#2 0x578a4ad946f8
#3 0x578a4ad9063b
#4 0x578a4addab19
#5 0x578a4adce253
#6 0x578a4ad9e1c7
#7 0x578a4ad9eb3e
#8 0x578a4b03c27b
#9 0x578a4b040327
#10 0x578a4b028dae
#11 0x578a4b040df2
#12 0x578a4b00d74f
#13 0x578a4b065128
#14 0x578a4b0652fb
#15 0x578a4b074f6c
#16 0x7ae0fe1e3ac3

I think that this is because the butterfly links are obsolote, and the versions of the libraries isnt the same.
Can you fix it, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant