Giter VIP home page Giter VIP logo

Comments (7)

dimaqq avatar dimaqq commented on August 16, 2024

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.

nlgranger avatar nlgranger commented on August 16, 2024

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.

nlgranger avatar nlgranger commented on August 16, 2024

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.

dimaqq avatar dimaqq commented on August 16, 2024

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.

dimaqq avatar dimaqq commented on August 16, 2024

It could be smth like jhenstridge/asyncio-glib#5 πŸ€”

from arsenic.

dimaqq avatar dimaqq commented on August 16, 2024

Given that the last update to asyncio_glib was almost 2 years ago, I'm tempted to point my finger there.

from arsenic.

nlgranger avatar nlgranger commented on August 16, 2024

Indeed, I will try something else for glib event loop interaction. Thanks for looking into this.

from arsenic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.