Skip to content

Cannot import name 'CloudPickler' from 'cloudpickle.cloudpickle' in tensorflow_probability\python\layers\distribution_layer.py #992

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

Closed
stevenmailca opened this issue Jul 2, 2020 · 2 comments

Comments

@stevenmailca
Copy link

Hi, I got the error message from Julia Shell "The Python package tensorflow_probability could not be found by pyimport." due to "<class 'ImportError'>
ImportError("cannot import name 'CloudPickler' from 'cloudpickle.cloudpickle' (D:\Users\WinUser\AppData\Local\Programs\Python\Python38\lib\site-packages\cloudpickle\cloudpickle.py)")"
File "D:\Users\WinUser\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow_probability\python\layers\distribution_layer.py", line 28, in
from cloudpickle.cloudpickle import CloudPickler

I checked the local folders and confirmed cloudpickle.py is right with the following path
D:\Users\WinUser\AppData\Local\Programs\Python\Python38\Lib\site-packages\cloudpickle\cloudpickle.py ,
but why still import error caused by "from cloudpickle.cloudpickle import CloudPickler" in file distribution_layer.py which locates D:\Users\WinUser\AppData\Local\Programs\Python\Python38\Lib\site-packages\tensorflow_probability\python\layers\distribution_layer.py ?

@stevenmailca stevenmailca changed the title ImportError("cannot import name 'CloudPickler' from 'cloudpickle.cloudpickle' cannot import name 'CloudPickler' from 'cloudpickle.cloudpickle' in tensorflow_probability\python\layers\distribution_layer.py Jul 2, 2020
@stevenmailca stevenmailca changed the title cannot import name 'CloudPickler' from 'cloudpickle.cloudpickle' in tensorflow_probability\python\layers\distribution_layer.py Cannot import name 'CloudPickler' from 'cloudpickle.cloudpickle' in tensorflow_probability\python\layers\distribution_layer.py Jul 2, 2020
@matthewfeickert
Copy link
Contributor

matthewfeickert commented Jul 2, 2020

@stevenmailca This is the same issue as Issue #991. I'm not part of TFP, but it might be more helpful if you closed this and went to discuss on the original issue.

@stevenmailca
Copy link
Author

@matthewfeickert Thank you very much for your kind info. I'll just close this issue and turn to the original issue #991.

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

2 participants