maaaaz / webscreenshot

A simple script to screenshot a list of websites
GNU Lesser General Public License v3.0
653 stars 162 forks source link

This platform lacks of sem_open #67

Open fagci opened 3 years ago

fagci commented 3 years ago

Using Termux on Android.

Solution:

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

https://github.com/asciinema/asciinema/issues/271#issuecomment-372113307

maaaaz commented 3 years ago

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

fagci commented 3 years ago

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