We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you import pymc and try to pickle, as example, Ellipsis object, then sometimes you will see an error ImportError: No module named 'winreg':
Ellipsis
ImportError: No module named 'winreg'
> python -c "import pymc, pickle; pickle.dumps(...)"
It reproduces not all the time, but usually for second or third try.
OS X El Capitan 10.11.5 Python 3.5.1 pymc 2.3.6
As I understand, the reason is that pymc uses outdated version of six library.
The problem is that pymc imports this internally packaged module six. When six is imported, it creates MovedModule objects which will be stored in sys.modules.
six
sys.modules
When Pickle tries to store object by using function save_global it goes through all objects inside sys.modules and try to get attribute by name of saved object.
save_global
When pymc.six.MovedModule.__getattr__ is called, it will try to load this module and will fail if this module is not in the system.
pymc.six.MovedModule.__getattr__
The new version of six package doesn't have this problem inside.
The text was updated successfully, but these errors were encountered:
Thanks. I will remove pymc.six and replace it with a dependency on the current six package.
pymc.six
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
If you import pymc and try to pickle, as example,
Ellipsis
object, then sometimes you will see an errorImportError: No module named 'winreg'
:It reproduces not all the time, but usually for second or third try.
OS X El Capitan 10.11.5
Python 3.5.1
pymc 2.3.6
As I understand, the reason is that pymc uses outdated version of six library.
The problem is that pymc imports this internally packaged module
six
. Whensix
is imported, it creates MovedModule objects which will be stored insys.modules
.When Pickle tries to store object by using function
save_global
it goes through all objects insidesys.modules
and try to get attribute by name of saved object.When
pymc.six.MovedModule.__getattr__
is called, it will try to load this module and will fail if this module is not in the system.The new version of six package doesn't have this problem inside.
The text was updated successfully, but these errors were encountered: