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

xarray 0.16.1 breaks compatibility #1387

Closed
kiudee opened this issue Sep 20, 2020 · 8 comments
Closed

xarray 0.16.1 breaks compatibility #1387

kiudee opened this issue Sep 20, 2020 · 8 comments

Comments

@kiudee
Copy link

kiudee commented Sep 20, 2020

Describe the bug
arviz.utils.HtmlTemplate depends on xarray.core.formatting_html.CSS_STYLE:

css_template = f"<style> {xr.core.formatting_html.CSS_STYLE}{specific_style} </style>"

This was just removed in 0.16.1 of xarray. Here is the corresponding pull request:
pydata/xarray#4297

To Reproduce

  1. Install arviz==0.9.0 and xarray==0.16.1.
  2. import arviz

Expected behavior
No error during import.

Additional context
arviz==0.9.0 and xarray==0.16.1.
Happens on both Windows and Linux.

@ahartikainen
Copy link
Contributor

We are going to make a new release soon, so this is probably going to be only a small annoyance until we have release ready.

lgbouma added a commit to lgbouma/betty that referenced this issue Sep 21, 2020
@ahartikainen
Copy link
Contributor

fixed by #1389

jdehning added a commit to jdehning/pymc4 that referenced this issue Sep 22, 2020
jdehning added a commit to jdehning/pymc4 that referenced this issue Sep 22, 2020
…batching is performed by adding an event_ndims attribute to the Transform class

Fixes that log-likelelihoods are correctly reduced when no automatic batching is performed by adding an event_ndims attribute to the Transform class

Fixes that log-likelelihoods are correctly reduced when no automatic batching is performed by adding an event_ndims attribute to the Transform class

Fix some doctests and excludes import of xarray>=0.6.1 because of an import error (arviz-devs/arviz#1387)

Fix some doctests and exclude import of version >=0.6.1 of xarray because of arviz-devs/arviz#1387
@nicospinu
Copy link

Hi, the issue still persists on macOS Catalina v.10.15.6 giving the same message as described by kiudee. Shall I create a new issue?

@ahartikainen
Copy link
Contributor

have you tried installing from github

pip install git+https://github.com/arviz-devs/arviz

@kiudee
Copy link
Author

kiudee commented Sep 23, 2020

@nicospinu the fix is not yet on PyPI (still v0.9.0) there.

@nicospinu
Copy link

have you tried installing from github

pip install git+https://github.com/arviz-devs/arviz

Thank you!
The Arviz gets installed together with Pymc3 v3.9.3 and gives the error. Shall I wait until the fix is on PyPI?

@ahartikainen
Copy link
Contributor

then you can do

pip install xarray==0.16.0 -U

@nicospinu
Copy link

Thank you so much! It works

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