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

"ImportError: Cannot import name 'proximal_gradient' from jaxopt" when running python examples/sparse_coding.py #15

Closed
TommasoBendinelli opened this issue Aug 19, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@TommasoBendinelli
Copy link

Hi,
Thank your for the great work.

I am trying to run python examples/sparse_coding.py but I am getting an ImportingError

python examples/sparse_coding.py
Traceback (most recent call last):
File "examples/sparse_coding.py", line 30, in
from jaxopt import proximal_gradient
ImportError: cannot import name 'proximal_gradient' from 'jaxopt' (/home/gem/repos/jaxopt/env/lib/python3.8/site-packages/jaxopt-0.0.1-py3.8.egg/jaxopt/init.py)

@mblondel
Copy link
Collaborator

mblondel commented Aug 19, 2021

Thanks for the report! This is the last example that still needs to be migrated to the new API. We'll do it soon.

@mblondel mblondel added the bug Something isn't working label Sep 21, 2021
@mblondel
Copy link
Collaborator

Fixed in ef169f9

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

2 participants