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.

New release of ax-platform is raising `ModuleNotFoundError`

See original GitHub issue

Is there a workaround for this?

(base) ➜  ~ git:(master) ✗ pip install -U ax-platform
Collecting ax-platform
  Downloading https://files.pythonhosted.org/packages/22/94/4664137378b701f1b5fe2612e2b111a20c05e88abaeeef9e44eee048ffa8/ax_platform-0.1.15-py3-none-any.whl (599kB)
     |████████████████████████████████| 604kB 3.0MB/s
Requirement already satisfied, skipping upgrade: pandas in ~/miniconda3/lib/python3.7/site-packages (from ax-platform) (1.0.5)
Requirement already satisfied, skipping upgrade: jinja2 in ~/miniconda3/lib/python3.7/site-packages (from ax-platform) (2.11.2)
Requirement already satisfied, skipping upgrade: plotly in ~/miniconda3/lib/python3.7/site-packages (from ax-platform) (4.9.0)
Requirement already satisfied, skipping upgrade: scipy in ~/miniconda3/lib/python3.7/site-packages (from ax-platform) (1.4.1)
Requirement already satisfied, skipping upgrade: botorch>=0.2.2 in ~/miniconda3/lib/python3.7/site-packages (from ax-platform) (0.3.0)
Requirement already satisfied, skipping upgrade: scikit-learn in ~/miniconda3/lib/python3.7/site-packages (from ax-platform) (0.22.2)
Requirement already satisfied, skipping upgrade: python-dateutil>=2.6.1 in ~/miniconda3/lib/python3.7/site-packages (from pandas->ax-platform) (2.8.1)
Requirement already satisfied, skipping upgrade: numpy>=1.13.3 in ~/miniconda3/lib/python3.7/site-packages (from pandas->ax-platform) (1.18.1)
Requirement already satisfied, skipping upgrade: pytz>=2017.2 in ~/miniconda3/lib/python3.7/site-packages (from pandas->ax-platform) (2020.1)
Requirement already satisfied, skipping upgrade: MarkupSafe>=0.23 in ~/miniconda3/lib/python3.7/site-packages (from jinja2->ax-platform) (1.1.1)
Requirement already satisfied, skipping upgrade: six in ~/miniconda3/lib/python3.7/site-packages (from plotly->ax-platform) (1.12.0)
Requirement already satisfied, skipping upgrade: retrying>=1.3.3 in ~/miniconda3/lib/python3.7/site-packages (from plotly->ax-platform) (1.3.3)
Requirement already satisfied, skipping upgrade: torch>=1.5 in ~/miniconda3/lib/python3.7/site-packages (from botorch>=0.2.2->ax-platform) (1.5.1)
Requirement already satisfied, skipping upgrade: gpytorch>=1.1.1 in ~/miniconda3/lib/python3.7/site-packages (from botorch>=0.2.2->ax-platform) (1.2.0)
Requirement already satisfied, skipping upgrade: joblib>=0.11 in ~/miniconda3/lib/python3.7/site-packages (from scikit-learn->ax-platform) (0.15.1)
Requirement already satisfied, skipping upgrade: future in ~/miniconda3/lib/python3.7/site-packages (from torch>=1.5->botorch>=0.2.2->ax-platform) (0.18.2)
Installing collected packages: ax-platform
  Found existing installation: ax-platform 0.1.14
    Uninstalling ax-platform-0.1.14:
      Successfully uninstalled ax-platform-0.1.14
Successfully installed ax-platform-0.1.15
(base) ➜  ~ git:(master) ✗ ipython
iPython 3.7.4 (default, Aug 13 2019, 15:17:50)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.16.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import ax
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-709cd9cacec7> in <module>
----> 1 import ax

~/miniconda3/lib/python3.7/site-packages/ax/__init__.py in <module>
     29     Trial,
     30 )
---> 31 from ax.modelbridge import Models
     32 from ax.service import OptimizationLoop, optimize
     33 from ax.storage import load, save

~/miniconda3/lib/python3.7/site-packages/ax/modelbridge/__init__.py in <module>
      8 from ax.modelbridge import transforms
      9 from ax.modelbridge.base import ModelBridge
---> 10 from ax.modelbridge.factory import (
     11     Models,
     12     get_factorial,

~/miniconda3/lib/python3.7/site-packages/ax/modelbridge/factory.py in <module>
     20 from ax.modelbridge.multi_objective_torch import MultiObjectiveTorchModelBridge
     21 from ax.modelbridge.random import RandomModelBridge
---> 22 from ax.modelbridge.registry import (
     23     Cont_X_trans,
     24     Models,

~/miniconda3/lib/python3.7/site-packages/ax/modelbridge/registry.py in <module>
     46 from ax.models.torch.botorch_kg import KnowledgeGradient
     47 from ax.models.torch.botorch_mes import MaxValueEntropySearch
---> 48 from ax.models.torch.botorch_modular.model import BoTorchModel
     49 from ax.models.torch.botorch_moo import MultiObjectiveBotorchModel
     50 from ax.utils.common.kwargs import (

ModuleNotFoundError: No module named 'ax.models.torch.botorch_modular'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
stevemandalacommented, Sep 30, 2020

Update: Found the source of the problem, currently working on getting a fix committed (should be out in a bit) after which we will release a new version.

0reactions
richardliawcommented, Oct 1, 2020

Thanks for the fast turnaround!

On Wed, Sep 30, 2020 at 5:22 PM Steve Mandala notifications@github.com wrote:

Closed #387 https://github.com/facebook/Ax/issues/387.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/facebook/Ax/issues/387#event-3826940311, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCRZZJUU5A6AIZWHZEHQZDSIPDVFANCNFSM4R7OC4SA .

Read more comments on GitHub >

github_iconTop Results From Across the Web

ax-platform - PyPI
Ax is an accessible, general-purpose platform for understanding, managing, deploying, and automating adaptive experiments. Adaptive experimentation is the ...
Read more >
spyder- anaconda stop working suddenly after installing ax ...
i working in spyder for long time, but after i install ax-platform lib it stop working and out this error massage i tried...
Read more >
[Fixed] ModuleNotFoundError: No module named 'platformdirs'
If you create a new Python project in PyCharm and try to import the platformdirs library, it'll raise the following error message:.
Read more >
ModuleNotFoundError: No module named 'ax' - RoseIndia.Net
Hi, My Python program is throwing following error: ModuleNotFoundError: No ... 'ax-platform' How to remove the ModuleNotFoundError: No module named 'ax.
Read more >
conda-forge feedstocks | community driven packaging for conda
... pythonqwt: pythonqwt-feedstock · python-lalinspiral: lalinspiral-feedstock · python-lrcalc: lrcalc-feedstock · pytest-raises: pytest-raises-feedstock ...
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