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

jaxlib: could not find a version that satisfies #136

Closed
mmikhasenko opened this issue Apr 21, 2022 · 7 comments
Closed

jaxlib: could not find a version that satisfies #136

mmikhasenko opened this issue Apr 21, 2022 · 7 comments
Labels
🐛 Bug Something isn't working

Comments

@mmikhasenko
Copy link
Contributor

Bug description

the line

%pip install -q ampform==0.14.0 qrules==0.9.7 sympy==1.10.1 tensorwaves[jax,pwa]==0.4.5

causes the error

Note: you may need to restart the kernel to use updated packages.
ERROR: Could not find a version that satisfies the requirement jaxlib; extra == "jax" (from tensorwaves[jax,pwa]) (from versions: none)
ERROR: No matching distribution found for jaxlib; extra == "jax"

once I remove jax from the tensorwaves options, it works.

System info

I am on the e73542d commit of polarization-sensitivity branch running the notebook 017.ipynb

Bug resulted on the following system:

  • OS: Windows 10
  • Python version: 3.8.13
  • Virtual environment: conda env create from the project folder
@mmikhasenko mmikhasenko added the 🐛 Bug Something isn't working label Apr 21, 2022
@redeboer
Copy link
Member

Seems that this is actually a problem in tensorwaves. In that case, you should have the same effect in the terminal:

conda env create --force  # completely reset the compwa-org environment
pip install tensorwaves[jax,pwa]==0.4.5

Note that tensorwaves etc is not part of the default dependencies defined for the Conda environment. They are installed once a notebook is run. The Conda config for this repo just installs dev tools like jupyter lab, pre-commit and sphinx.

https://github.com/ComPWA/compwa-org/blob/6501662070e2a5f24d01894a24052d9bc78634c0/setup.cfg#L39-L98

@redeboer
Copy link
Member

My guess is that either jaxlib or TF (which comes in through pwa) is not supported on Windows

@redeboer
Copy link
Member

redeboer commented Apr 21, 2022

88374c2 removes the need for TensorWaves TF (through phasespace). Only problem: have to think how to render phase space times intensity in the 1D intensity plots. Previously, those were just 1D histograms, but the Dalitz plot is now a meshgrid, note a generated hit-and-miss phase space sample.

@redeboer
Copy link
Member

My guess is that either jaxlib or TF (which comes in through pwa) is not supported on Windows

See jax-ml/jax#438. Since JAX is quite important in the notebooks, I recommend working with WSL2:
https://docs.microsoft.com/en-us/windows/wsl/install

@redeboer
Copy link
Member

Did you get the numeric computations to work in WSL? If so, I'll close this issue.

@mmikhasenko
Copy link
Contributor Author

mmikhasenko commented Apr 25, 2022

Yes, it works great with WLS

@redeboer
Copy link
Member

Perfect!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants