-
Notifications
You must be signed in to change notification settings - Fork 831
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
Can't pickle local object 'main.<locals>.grpc_prediction_server' #3410
Comments
I see you are using python 3.9 see #1230 Can you try with python 3.7 for your use case? |
FYI: Reading the linked issue, it seems that Python 3.8 support has been merged, but I am still facing the same error reported above on 3.8.5. |
Thanks @damosuzuki can you give any further insight into the issue? |
Not sure I have more insight, but I can be more verbose :) I am trying to follow the same instructions as @minhdang241 (https://docs.seldon.io/projects/seldon-core/en/v1.1.0/python/python_component.html), and I receive the same error when trying to start the example model with |
I see now that |
Please reopen if still an issue on MacOS |
Have the same problem. Can i support to debug this issue? |
Thanks. Do you have any further logs or insights here @kfleischmann |
Hitting this error on Python 3.9.9 using MacOS Big Sur 11.6.2
Also seeing this error on Python 3.8.9 using MacOS Big Sur 11.6.2
|
Facing same with 3.9 |
Same error with 3.8.6 |
Did anyone manage to reproduce issue in Linux environment? |
It looks like it's related to the way multiprocessing is implemented on MacOs and is the same issue as reported here: pydoit/doit#372 I've checked the PR which resolves it and modified
That fixed the issue for me. I have |
This is great - thanks @gerilya - we can include this in the next release @RafalSkolasinski |
Nice. However, rather then defaulting to the multiprocess library if it is installed I would suggest to have it driven by an environmental variable. |
Describe the bug
I have follow the tutorial here and got the error as
Environment
OS: MacOS
Python version: 3.9.5
The text was updated successfully, but these errors were encountered: