This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xdegaye
Recipients xdegaye, yselivanov
Date 2017-11-24.17:02:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1511542925.3.0.213398074469.issue32126@psf.upfronthosting.co.za>
In-reply-to
Content
test_get_event_loop_new_process fails on Android API 24 with the error:

======================================================================
ERROR: test_get_event_loop_new_process (test.test_asyncio.test_events.EPollEventLoopTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/sdcard/org.python/lib/python3.7/multiprocessing/synchronize.py", line 29, in <module>
    from _multiprocessing import SemLock, sem_unlink
ImportError: cannot import name 'sem_unlink' from '_multiprocessing' (/data/local/tmp/python/lib/pyt
hon3.7/lib-dynload/_multiprocessing.cpython-37dm.so)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/sdcard/org.python/lib/python3.7/test/test_asyncio/test_events.py", line 2239, in test_get_e
vent_loop_new_process
    self.loop.run_until_complete(main()),
  File "/sdcard/org.python/lib/python3.7/asyncio/base_events.py", line 466, in run_until_complete
    return future.result()
  File "/sdcard/org.python/lib/python3.7/test/test_asyncio/test_events.py", line 2230, in main
    pool = concurrent.futures.ProcessPoolExecutor()
  File "/sdcard/org.python/lib/python3.7/concurrent/futures/process.py", line 410, in __init__
    self._call_queue = mp_context.Queue(queue_size)
  File "/sdcard/org.python/lib/python3.7/multiprocessing/context.py", line 102, in Queue
    return Queue(maxsize, ctx=self.get_context())
  File "/sdcard/org.python/lib/python3.7/multiprocessing/queues.py", line 42, in __init__
    self._rlock = ctx.Lock()
  File "/sdcard/org.python/lib/python3.7/multiprocessing/context.py", line 66, in Lock
    from .synchronize import Lock
  File "/sdcard/org.python/lib/python3.7/multiprocessing/synchronize.py", line 34, in <module>
    " function, see issue 3770.")
ImportError: This platform lacks a functioning sem_open implementation, therefore, the required sync
hronization primitives needed will not function, see issue 3770.
History
Date User Action Args
2017-11-24 17:02:05xdegayesetrecipients: + xdegaye, yselivanov
2017-11-24 17:02:05xdegayesetmessageid: <1511542925.3.0.213398074469.issue32126@psf.upfronthosting.co.za>
2017-11-24 17:02:05xdegayelinkissue32126 messages
2017-11-24 17:02:04xdegayecreate