[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2020-05-29 Thread Kyle Stanley
Kyle Stanley added the comment: > is there a workaround for earlier Python versions that does not involve > patching the standard library? You could potentially try using the new default watcher, `ThreadedChildWatcher`, by implementing it locally and setting it as the child watcher to use

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2020-05-29 Thread Deomid Ryabkov
Deomid Ryabkov added the comment: is there a workaround for earlier Python versions that does not involve patching the standard library? -- nosy: +rojer ___ Python tracker

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-07-18 Thread Tim Froehlich
Tim Froehlich added the comment: Is it possible to amend the documentation (https://docs.python.org/3.5/library/asyncio-subprocess.html, etc) to include a note that the loop parameter doesn't work? I'm impacted by this bug and lost a few hours to it. -- nosy: +Tim Froehlich

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-30 Thread miss-islington
miss-islington added the comment: New changeset bf8cb31803558f1105efb15b0ee4bd184f3218c8 by Miss Islington (bot) in branch '3.8': bpo-35621: Support running subprocesses in asyncio when loop is executed in non-main thread (GH-14344)

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-30 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 -Python 3.6, Python 3.7 ___ Python tracker ___

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +14301 pull_request: https://github.com/python/cpython/pull/14484 ___ Python tracker ___

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 0d671c04c39b52e44597491b893eb0b6c86b3d45 by Andrew Svetlov in branch 'master': bpo-35621: Support running subprocesses in asyncio when loop is executed in non-main thread (GH-14344)

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-24 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +14164 pull_request: https://github.com/python/cpython/pull/14344 ___ Python tracker ___

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-03 Thread miss-islington
miss-islington added the comment: New changeset 9535aff9421f0a5639f6e4c4bb0f07a743ea8dba by Miss Islington (bot) (Andrew Svetlov) in branch 'master': Revert "bpo-35621: Support running subprocesses in asyncio when loop is executed in non-main thread (#13630)" (GH-13793)

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-03 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +13678 pull_request: https://github.com/python/cpython/pull/13793 ___ Python tracker ___

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread miss-islington
miss-islington added the comment: New changeset c6789d6c85a290a35f3839efb52a3d34536dcebe by Miss Islington (bot) (Andrew Svetlov) in branch 'master': bpo-35621: Fix tests when SafeChildWatcher is expected instead of ThreadedChildWatcher (GH-13754)

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > The failure depends on tests order execution (maybe you use -jN flag?). Oh, I understand now! > See https://github.com/python/cpython/pull/13754 for the fix Thanks for the fix, Andrew! :) -- ___ Python

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks for the report! The failure depends on tests order execution (maybe you use -jN flag?). Before default child watcher was SafeChildWatcher, not it is ThreaderChildWather. The watcher is a global variable (a property of global event loop policy). The

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +13635 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/13754 ___ Python tracker ___

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: When I ran the tests, the watcher I get is a SafeChildWatcher -- ___ Python tracker ___

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I cannot reproduce this issue locally :( -- ___ Python tracker ___ ___ Python-bugs-list

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: It seems the assertion has to use ThreadedChildWatcher instead of SafeChildWatcher as the default seems to be changed at [0] . If changing assertion fixes the test I am curious why it didn't fail in the primary CI. [0]

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Also seems to occur on Ubuntu : https://buildbot.python.org/all/#/builders/141/builds/1912/steps/5/logs/stdio karthi@ubuntu-s-1vcpu-1gb-blr1-01:~/cpython$ ./python -m unittest test.test_asyncio.test_unix_events ...Exception in

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Kubilay Kocak
Change by Kubilay Kocak : -- resolution: fixed -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Kubilay Kocak
Kubilay Kocak added the comment: New buildbot failure on koobs-freebsd10 that appears related to (includes) this changeset Full log attached -- nosy: +koobs Added file: https://bugs.python.org/file48384/koobs-freebsd-10-non-debug-3x-build-1170.txt

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 13ed07998ad93dbdd94991ba0451b9b559f07972 by Andrew Svetlov in branch 'master': bpo-35621: Support running subprocesses in asyncio when loop is executed in non-main thread (#13630)

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-05-28 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +13530 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13630 ___ Python tracker ___

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-01-24 Thread Alexandre Défossez
Alexandre Défossez added the comment: Also impacted. A fix I found is to add `watcher.attach_loop(self)` just after `with events.get_child_watcher() as watcher:` in `_make_subprocess_transport` in `asyncio/unix_events.py`. -- nosy: +adfz ___

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-01-01 Thread Stefan Seefeld
Change by Stefan Seefeld : -- nosy: +stefan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2018-12-30 Thread Stephan Hohe
New submission from Stephan Hohe : `asyncio.create_subprocess_exec()` accepts a `loop` parameter, but doesn't use it to watch the child process. Instead uses `get_event_loop_policy().get_child_watcher()`, which doesn't doesn't know about `loop` but tries to use the current default event