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

No module named lava.lib.optimization.solvers.qubo #312

Open
jairedc opened this issue Dec 23, 2024 · 0 comments
Open

No module named lava.lib.optimization.solvers.qubo #312

jairedc opened this issue Dec 23, 2024 · 0 comments
Labels
0-needs-review Has to be reviewed. 1-bug Something isn't working

Comments

@jairedc
Copy link

jairedc commented Dec 23, 2024

Bug
Missing qubo solver.

To reproduce
When running tutorial_QUBO_solver.ipynb, I get a module not found error on the first block with imports:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[1], [line 12](vscode-notebook-cell:?execution_count=1&line=12)
      [9](vscode-notebook-cell:?execution_count=1&line=9) from lava.magma.compiler.subcompilers.nc.ncproc_compiler import CompilerOptions
     [10](vscode-notebook-cell:?execution_count=1&line=10) from lava.magma.compiler.subcompilers.nc import partitionable
---> [12](vscode-notebook-cell:?execution_count=1&line=12) from lava.lib.optimization.solvers.qubo.process import QUBOSolverProcess
     [13](vscode-notebook-cell:?execution_count=1&line=13) from lava.lib.optimization.solvers.qubo.utils.hyperparameters import QUBOHyperparameters
     [14](vscode-notebook-cell:?execution_count=1&line=14) from lava.lib.optimization.solvers.qubo.utils.solver_config import SolverConfig

ModuleNotFoundError: No module named 'lava.lib.optimization.solvers.qubo'

It looks as if qubo should appear under src/lava/lib/optimization/solvers/, but I only see bayesian, generic, and lca. Was something missing in the commit that introduced this Jupyter notebook?

This is off a fresh install of lava and lava-optimization. The tutorial_04_lca.ipynb notebook runs without issue for me, so I believe my environment was created correctly.

Expected behavior
All code blocks in tutorial_QUBO_solver.ipynb should run without issue, and the QUBO solver should be available under src/lava/lib/optimization/solvers/.

Environment:

  • Device: Server, Kapoho Point
  • OS: Ubuntu 20.04
  • Lava versions:
lava                      0.9.0              pyhd8ed1ab_0    conda-forge
lava-dl                   0.5.0              pyhd8ed1ab_0    conda-forge
lava-loihi                0.6.0                    pypi_0    pypi
lava-optimization         0.5.0              pyhd8ed1ab_0    conda-forge
@jairedc jairedc added the 1-bug Something isn't working label Dec 23, 2024
@github-actions github-actions bot added the 0-needs-review Has to be reviewed. label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0-needs-review Has to be reviewed. 1-bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant