Skip to content

Chapter 5 import error when running pymc model #201

Open
@EAly

Description

@EAly

I get the following error when I try to run any pymc model from chapter 5, e.g. Code 5.3, Code 5.6, Code 5.10:

ImportError                               Traceback (most recent call last)
File ~/miniconda3/envs/StatsReth_Py39/lib/python3.9/site-packages/aesara/link/c/lazylinker_c.py:79, in <module>
     78         if version != actual_version:
---> 79             raise ImportError(
     80                 "Version check of the existing lazylinker compiled file."
     81                 f" Looking for version {version}, but found {actual_version}. "
     82                 f"Extra debug information: force_compile={force_compile}, _need_reload={_need_reload}"
     83             )
     84 except ImportError:

ImportError: Version check of the existing lazylinker compiled file. Looking for version 0.212, but found 0.211. Extra debug information: force_compile=False, _need_reload=True

During handling of the above exception, another exception occurred:

ImportError                               Traceback (most recent call last)
File ~/miniconda3/envs/StatsReth_Py39/lib/python3.9/site-packages/aesara/link/c/lazylinker_c.py:100, in <module>
     99     if version != actual_version:
--> 100         raise ImportError(
    101             "Version check of the existing lazylinker compiled file."
    102             f" Looking for version {version}, but found {actual_version}. "
    103             f"Extra debug information: force_compile={force_compile}, _need_reload={_need_reload}"
    104         )
    105 except ImportError:
    106     # It is useless to try to compile if there isn't any
...
    329     del sys.path[0]
--> 331 assert fullpath.startswith(rval.__file__)
    332 return rval

AssertionError: 

I exported the details of the environment I'm using to the attached txt files (I'm sorry if this is not the optimal way to share environments, but this is the best of my knowledge)
stats_reth2_ea_env.txt

stats_reth2_ea_envExport.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions