Comments (7)
Interesting... any idea what's actually blocking?
Is it trying to spawn geckodriver
?
Or trying to connect to its port?
Or is it the .get(...)
operation, which, in essence is aiohttp
request?
from arsenic.
I do not see any geckodriver process and I just noticed the python process uses 100% of a CPU while blocking on get_session.
from arsenic.
It block when checking the version of geckodriver, here is the call stack:
run_process (.../venv/lib/python3.9/site-packages/arsenic/subprocess.py:46)
_check_version (.../venv/lib/python3.9/site-packages/arsenic/services.py:73)
start (.../venv/lib/python3.9/site-packages/arsenic/services.py:92)
start_session (.../venv/lib/python3.9/site-packages/arsenic/__init__.py:28)
__aenter__ (.../venv/lib/python3.9/site-packages/arsenic/__init__.py:16)
main (.../test.py:18)
_run (/usr/lib/python3.9/asyncio/events.py:80)
_run_once (/usr/lib/python3.9/asyncio/base_events.py:1882)
run_forever (/usr/lib/python3.9/asyncio/base_events.py:596)
run_until_complete (/usr/lib/python3.9/asyncio/base_events.py:629)
run (/usr/lib/python3.9/asyncio/runners.py:44)
<module> (.../test.py:24)
from arsenic.
https://github.com/HDE/arsenic/blob/7323c550a46b94aa0dcda6659b9c3eff11bec3f0/src/arsenic/subprocess.py#L46
code in question...
I wonder if asyncio.create_subprocess_exec
and process.communicate
are supported in this custom event loop π€
from arsenic.
It could be smth like jhenstridge/asyncio-glib#5 π€
from arsenic.
Given that the last update to asyncio_glib
was almost 2 years ago, I'm tempted to point my finger there.
from arsenic.
Indeed, I will try something else for glib event loop interaction. Thanks for looking into this.
from arsenic.
Related Issues (20)
- Auth proxy with user and password HOT 12
- get_attribute("innerHTML") stopped working (chrome) HOT 3
- Any way to controle several tabs async? HOT 2
- How to get page title? HOT 1
- arsenic doesnβt support all ChromeOptions? HOT 3
- Unable to open URLs with chrome driver at all? HOT 1
- Unable to set prefs in arsenic similar to selenium (download files to default directory)
- Any way to avoid close chrome after execution HOT 4
- How does this compare to playwright? HOT 1
- AttributeError: 'str' object has no attribute 'fileno' HOT 1
- Spawning Chrome/Edge browser in Windows from WSL2
- Asyncio TimeoutError HOT 1
- Unable to run tests because of broken dependency
- Post-merge CI build fails HOT 2
- Shall we try goodfirstissue.dev ?
- Getting 'unknown error: net::ERR_CONNECTION_CLOSED' Error HOT 4
- Cloudflare detection HOT 1
- No requirements.txt file and couldn't run the tests with Pytest HOT 5
- FileNotFoundError: [WinError 2] The system cannot find the file specified HOT 5
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 arsenic.