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

This platform lacks of sem_open #67

Open
fagci opened this issue Feb 4, 2021 · 2 comments
Open

This platform lacks of sem_open #67

fagci opened this issue Feb 4, 2021 · 2 comments

Comments

@fagci
Copy link

fagci commented Feb 4, 2021

Using Termux on Android.

Solution:

try:
    from multiprocessing import Process, Queue
except ImportError:
    from threading import Thread as Process
    from queue import Queue

asciinema/asciinema#271 (comment)

@maaaaz
Copy link
Owner

maaaaz commented Feb 4, 2021

Hello,
What do you mean ? I should not use multiprocessing.Pool ?

@fagci
Copy link
Author

fagci commented Feb 5, 2021

I think so, maybe this can be solution:
https://stackoverflow.com/a/3386632

Can be implemented same way, I think, using try/except and

from multiprocessing.pool import ThreadPool as Pool

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

2 participants