question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ax installation issue in macOS

See original GitHub issue

I am trying run the custom BOTORCH with Ax. I tried using conda method for Ax installation given as:

conda install pytorch torchvision -c pytorch

It installs with no error.

When I again run the code it gives:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
/var/folders/bt/kqf88mw53h55m9mj35rkwt6h0000gn/T/ipykernel_52027/3312530531.py in <module>
      2 from contextlib import contextmanager
      3 
----> 4 from ax.utils.testing.mock import fast_botorch_optimize_context_manager
      5 import plotly.io as pio
      6 # Ax uses Plotly to produce interactive plots. These are great for viewing and analysis,

ModuleNotFoundError: No module named 'ax'

What am I missing? Thanks.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:17

github_iconTop GitHub Comments

1reaction
Sayantan-1996commented, Jun 25, 2022

Great, @danielcohenlive , its working fine, Thanks for your patience with me. I will close this issue now. Thanks again.

0reactions
danielcohenlivecommented, Jun 24, 2022

everything looks good up until the line branin = glacier(). It looks like glacier is basically your evaluator. So you can substitute it in to the code in the Run optimization loop section, and it would look like:

for i in range(25):  # 25 or whatever number of iterations you want
    parameters, trial_index = ax_client.get_next_trial()
    # Local evaluation here can be replaced with deployment to external system.
    ax_client.complete_trial(trial_index=trial_index, raw_data=glacier(parameters)) # 'glacier' instead of 'evaluate'
Read more comments on GitHub >

github_iconTop Results From Across the Web

The macOS Installation Couldn't Be Completed Error Fix
This short article explains what you can do when you encounter the "The macOS installation couldn't be completed" error message. The error message...
Read more >
How to Fix macOS Installation Couldn't Be Completed
When your Mac gets the error message: the macOS installation couldn't be completed, follow these 8 tips to fix the error and get...
Read more >
If an error occurred while updating or installing macOS
The message might say that an error occurred while downloading, preparing, or installing, or that the installer is damaged or could not be ......
Read more >
How to fix: the macOS installation couldn't be completed (easy ...
How to fix: the macOS installation couldn't be completed (easy steps). 226K views 4 years ago. iSmart. iSmart. 30.7K subscribers. Subscribe.
Read more >
Unable to install on MacOS · Issue #221 · facebook/Ax
Hi, when trying to install into a Python 3.7.5 conda virtual environment on MacOS 10.14.5, after doing the following steps conda install ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found