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

multiprocessing problem. #45

Open
jerzyorlowskimim opened this issue Jul 29, 2022 · 0 comments
Open

multiprocessing problem. #45

jerzyorlowskimim opened this issue Jul 29, 2022 · 0 comments

Comments

@jerzyorlowskimim
Copy link

I try to run pileline using mutliprocessing with hyperscan.

i use with closing(Pool(args.nr_proc)) as pool: to define process_pool
I use pool.apply_async() to generate list of testks

When I run tasks I get:

    raise self._value
  File "/usr/lib/python3.9/multiprocessing/pool.py", line 537, in _handle_tasks
    put(task)
  File "/usr/lib/python3.9/multiprocessing/connection.py", line 211, in send
    self._send_bytes(_ForkingPickler.dumps(obj))
  File "/usr/lib/python3.9/multiprocessing/reduction.py", line 51, in dumps
    cls(buf, protocol).dump(obj)
TypeError: cannot pickle 'hyperscan.Database' object```
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

1 participant