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
nogil + cloudpickle cannot capture imported modules #103
Comments
Hi @YangZhou1997, thanks for the bug report. I'm able to reproduce the issue from nogil installed via pyenv, but not on the most recent builds. I guess I must have fixed something in nogil Python since then. I'll work on getting a new version on pyenv. That may take a little while. What OS are you using? In the meantime you can try: On Linux, you can build from source or use the docker image "nogil/python". |
I've put up a PR on pyenv to add a more recent build pyenv/pyenv#2602 |
Hi @colesbury, I am using Ubuntu20.04 with kennel 5.4.0. I just build from source and now the cloudpickle example works. Thanks for quickly resolving this issue! |
Hi @YangZhou1997, the new version (nogil-3.9.10-1) is on pyenv if you prefer that going forward.
(I think it may take a bit longer to be available on macOS, where pyenv is typically installed via homebrew.) |
Hi
I found that under the nogil python, cloudpickle can no longer capture any imported modules for functions. For example, in the code below,
unpickeld_fn()
will give "NameError: name 'sys' is not defined" error, while gil python would perform normally. Any suggestions or comments on how to fix this issue?I am using Python 3.9.10 nogil, cloudpickle 2.2.1 (which has merged this patch).
Btw, the nogil project is really impressive!
Best,
Yang
The text was updated successfully, but these errors were encountered: