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

[Bug]: No module named 'ax.analysis' #2711

Closed
1 task done
greg-rezo opened this issue Aug 26, 2024 · 3 comments
Closed
1 task done

[Bug]: No module named 'ax.analysis' #2711

greg-rezo opened this issue Aug 26, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@greg-rezo
Copy link

greg-rezo commented Aug 26, 2024

What happened?

I want to use Scheduler so I created my own Runner and Metric class as instructed.
When I import RegistryBundle with from ax.storage.registry_bundle import RegistryBundle, I run into a missing module exception.

I see that the analysis directory path exists in github under the 0.4.1 tag but it's not getting installed either when I use the wheel or install from git+ssh://git@github.com/facebook/Ax.git@0.4.1 somehow.

Please provide a minimal, reproducible example of the unexpected behavior.

$ pip install "ax-platform[mysql]==0.4.1"

$ python -c "from ax.storage.registry_bundle import RegistryBundle"

Please paste any relevant traceback/logs produced by the example provided.

Traceback (most recent call last)
/Users/gregfriedland/src/internal/ml/bin/run_hpo.py:19 in <module>
from ax.storage.registry_bundle import RegistryBundle
/Users/gregfriedland/src/.venv/lib/python3.10/site-packages/ax/storage/registry_bundle.py:24 in <module>
from ax.storage.sqa_store.decoder import Decoder
/Users/gregfriedland/src/.venv/lib/python3.10/site-packages/ax/storage/sqa_store/__init__.py:12 in <module>
from ax.storage.sqa_store.load import load_experiment as sqa_load
/Users/gregfriedland/src/.venv/lib/python3.10/site-packages/ax/storage/sqa_store/load.py:19 in <module>
from ax.storage.sqa_store.decoder import Decoder
/Users/gregfriedland/src/.venv/lib/python3.10/site-packages/ax/storage/sqa_store/decoder.py:19 in <module>
19 from ax.analysis.base_analysis import BaseAnalysis

ModuleNotFoundError: No module named 'ax.analysis'

Ax Version

0.4.1

Python Version

3.10.14

Operating System

macos

Code of Conduct

  • I agree to follow Ax's Code of Conduct
@greg-rezo greg-rezo added the bug Something isn't working label Aug 26, 2024
@mgarrard mgarrard self-assigned this Aug 27, 2024
@mgarrard
Copy link
Contributor

Hi @greg-rezo, thanks for pointing this out. It looks like this can be traced back to this PR: #2644

If you want to rebase onto main to unblock that should work, but we'll get a fix in soon and i'll comment here when we do :)

@mgarrard
Copy link
Contributor

Hi @greg-rezo just re-following up here, we need to cut a maintenance release of BoTorch before we can cut Ax, we're still working on getting that out, appreciate your patience

@mgarrard
Copy link
Contributor

@greg-rezo we cut a new release today that resolves your issue, check out our release notes for additional changes included :)

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

5 participants
@mgarrard @greg-rezo and others