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

"Cannot pickle 'builtins.NacosNamingClient' object" in multiprocessing #2

Closed
boholder opened this issue Mar 15, 2024 · 0 comments
Closed

Comments

@boholder
Copy link

boholder commented Mar 15, 2024

Rua,我不会写这么复杂的rust...那我还是用进程池吧,期待有能人通过我们的讨论提PR

Originally posted by @boholder in #1 (comment)

呃。。就像昨天说的,我用asyncio提供的API loop.run_in_executor(),把对这个库的调用包装并跑在process pool里。

然后撞上了PyO3的第二个坑:简而言之,PyO3把对象放到builtin模块里,pickle库按着找找不到。
PyO3/pyo3#100 (comment)

这个issue里也有解决方案示例。。

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