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

Troubleshooting installation issues with M1P MBP, conda environment, and arviz #85

Open
HaXAlvin opened this issue Apr 1, 2023 · 2 comments

Comments

@HaXAlvin
Copy link

HaXAlvin commented Apr 1, 2023

Hi, just want to let you know, and hope can help somebody who also has the same problem.

I am using M1P MBP (Ventura 13.2.1).
I faced some issues when running conda env create -f bap.yml.
Sorry that I can't reproduce the error, but the error is about installing hdf5 and netcdf
I ran brew install hdf5 netcdf first to stove the problem.

The env installed successfully, but I still have an error trying to import arviz
The error shows:
ImportError: dlopen(/Users/alvin/opt/anaconda3/envs/bap/lib/python3.6/site-packages/netCDF4/_netCDF4.cpython-36m-darwin.so, 0x0002): symbol not found in flat namespace '_nc_close'
There's also a warning:
WARNING (theano.configdefaults): install mkl with ``conda install mkl-service``: No module named 'mkl'

I ran conda install -c conda-forge netCDF4 to fix them.

@canyon289
Copy link
Collaborator

Thanks for sharing this fix!

@Tiansang-Psy
Copy link

Great! I had this problem when I created my env with conda env create -f bap.yml !
Thanks for sharing, I always encounter various version incompatibilities when running code in my own created environment, it's more friendly to use the book's environment!

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

3 participants