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

RuntimeError (This version of jaxlib was built using AVX instructions) on importing optimize_media from lightweight_mmm in a conda environment on M1 mac. #230

Open
SergeyBondarev opened this issue Aug 8, 2023 · 1 comment

Comments

@SergeyBondarev
Copy link

Description:

After setting up a new conda environment and installing the lightweight_mmm package, I encountered a RuntimeError when attempting to import the optimize_media function.

Steps to Reproduce:

  • Create a new conda environment: conda create --name test_env python=3.10
  • Activate the environment: conda activate test_env
  • Install the package: pip install lightweight_mmm
  • Attempt to import the function: from lightweight_mmm import optimize_media

Expected Behavior:
The optimize_media function should be imported without any errors.

Actual Behavior:
I received the following error:

RuntimeError: This version of jaxlib was built using AVX instructions, which your CPU and/or operating system do not support. You may be able work around this issue by building jaxlib from source.

Environment:

Operating System: macOS Monterey, version 12.2
Python Version: 3.10 (using conda)
lightweight_mmm Version: 0.1.9

Possible Solution:
I thought that building jaxlib from source might work around the issue, as suggested by the error message. But I wasn't able to build it on my machine. Solutions with isolation of environment in docker also didn't work.

Is there any idea how can I fix this error?

@80boys
Copy link

80boys commented May 28, 2024

pip uninstall jax jaxlib
conda install -c conda-forge jaxlib
conda install -c conda-forge jax

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

2 participants