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

CI failure in tests/test_get_epsilon_grid #2855

Closed
stevengj opened this issue Jun 28, 2024 · 2 comments · Fixed by #2857
Closed

CI failure in tests/test_get_epsilon_grid #2855

stevengj opened this issue Jun 28, 2024 · 2 comments · Fixed by #2857
Labels

Comments

@stevengj
Copy link
Collaborator

I'm currently seeing failures like:

FAIL: tests/test_get_epsilon_grid
=================================

Traceback (most recent call last):
  File "/home/runner/work/meep/meep/build/meep-1.30.0-beta/_build/sub/python/../../../python/tests/test_get_epsilon_grid.py", line 3, in <module>
    import meep.adjoint as mpa
  File "/home/runner/work/meep/meep/build/meep-1.30.0-beta/_build/sub/python/meep/adjoint/__init__.py", line 13, in <module>
    from .optimization_problem import OptimizationProblem
  File "/home/runner/work/meep/meep/build/meep-1.30.0-beta/_build/sub/python/meep/adjoint/optimization_problem.py", line 5, in <module>
    from autograd import grad, jacobian
  File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/autograd/__init__.py", line 2, in <module>
    from .differential_operators import (
  File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/autograd/differential_operators.py", line 16, in <module>
    import autograd.numpy as np
  File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/autograd/numpy/__init__.py", line 5, in <module>
    from . import numpy_vjps
  File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/autograd/numpy/numpy_vjps.py", line 563, in <module>
    defvjp(anp.msort, grad_sort)  # Until multi-D is allowed, these are the same.
           ^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/autograd/tracer.py", line 48, in f_wrapped
    return f_raw(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/numpy/__init__.py", line 410, in __getattr__
    raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'msort'. Did you mean: 'sort'?

Seems to be an autograd change that has broken things.

@stevengj stevengj added the bug label Jun 28, 2024
@oskooi
Copy link
Collaborator

oskooi commented Jun 28, 2024

I pointed out the cause of this error which is indeed related to Autograd in #2792 (comment).

@stevengj
Copy link
Collaborator Author

Oh, so we just need to wait for a new autograd release to make its way to the CI servers?

That might take a while. Maybe in the meantime we can tell CI to install an older version of numpy?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants