Skip to content

PyMC3 docker container from version 3.9.3 and above does not find module 'theano' #4386

Closed
@mdapri

Description

@mdapri

Hi, I am using Docker Desktop on windows 10.
I have pulled the version latest, 3.10.0 and 3.9.3 version and the behavior is the same
The issue does not appear in version 3.9.2

opening the api_quickstart.ipynb jupyter notebook located in /home/jovyan/notebooks and running the first cell

import arviz as az
import matplotlib.pyplot as plt
import numpy as np
import pymc3 as pm
import theano.tensor as tt
import warnings

warnings.simplefilter(action="ignore", category=FutureWarning)

the following error appears

.... ModuleNotFoundError: No module named 'arviz'

Commenting the
import arviz as az
the error becomes
ModuleNotFoundErrorTraceback (most recent call last)
...
~/pymc3/__init__.py in __set_compiler_flags()
31 def __set_compiler_flags():
32 # Workarounds for Theano compiler problems on various platforms
---> 33 import theano
34 current = theano.config.gcc.cxxflags
35 theano.config.gcc.cxxflags = f"{current} -Wno-c++11-narrowing"

ModuleNotFoundError: No module named 'theano'

No issue on version 3.9.2

Versions and main components

Docker Desktop with Docker Engine v19.03.13
OS: Windows 10
Docker pull commands:

  • docker pull pymc/pymc3:version-3.9.3
  • docker pull pymc/pymc3:version-3.10.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions