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

PyMC3/Theano conflict #277

Open
benston3 opened this issue Dec 8, 2020 · 0 comments
Open

PyMC3/Theano conflict #277

benston3 opened this issue Dec 8, 2020 · 0 comments

Comments

@benston3
Copy link
Member

benston3 commented Dec 8, 2020

Look like there is a problem that needs to be sorted out by PyMC3. When building Docker Cluster with latest version of Ubuntu/Theano/PyMC3 we get the following error:

private_server | Traceback (most recent call last):
private_server |   File "grpc/server.py", line 2, in <module>
private_server |     from Private.semantics import private_semantic_analyser
private_server |   File "/opt/venv/lib/python3.8/site-packages/Private/semantics.py", line 3, in <module>
private_server |     from Private.builtins import show_builtins, show_prob_builtins, commands, plot_builtins
private_server |   File "/opt/venv/lib/python3.8/site-packages/Private/builtins.py", line 11, in <module>
private_server |     import pymc3 as pm
private_server |   File "/opt/venv/lib/python3.8/site-packages/pymc3/__init__.py", line 39, in <module>
private_server |     __set_compiler_flags()
private_server |   File "/opt/venv/lib/python3.8/site-packages/pymc3/__init__.py", line 33, in __set_compiler_flags
private_server |     import theano
private_server |   File "/opt/venv/lib/python3.8/site-packages/theano/__init__.py", line 110, in <module>
private_server |     from theano.compile import (
private_server |   File "/opt/venv/lib/python3.8/site-packages/theano/compile/__init__.py", line 28, in <module>
private_server |     from theano.compile.function import function, function_dump
private_server |   File "/opt/venv/lib/python3.8/site-packages/theano/compile/function/__init__.py", line 7, in <module>
private_server |     from theano.compile.function.pfunc import pfunc
private_server |   File "/opt/venv/lib/python3.8/site-packages/theano/compile/function/pfunc.py", line 10, in <module>
private_server |     from theano.compile.function.types import UnusedInputError, orig_function
private_server |   File "/opt/venv/lib/python3.8/site-packages/theano/compile/function/types.py", line 23, in <module>
private_server |     from theano.gof.toolbox import is_same_graph
private_server | ImportError: cannot import name 'is_same_graph' from 'theano.gof.toolbox' (/opt/venv/lib/python3.8/site-packages/theano/gof/toolbox.py)

In the short term, freezing Theano and PyMC3 at the following versions until the problem is sorted out.

pymc3==3.8
Theano==1.0.4

We need to investigate further and if need be inform PyMC3 of the problem.

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