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

Docker AttributeError: module 'jaxlib.pocketfft' has no attribute 'pocketfft #83

Open
cdmichaelb opened this issue Jun 17, 2022 · 5 comments

Comments

@cdmichaelb
Copy link

`Traceback (most recent call last):

File "app.py", line 18, in

from dalle_model import DalleModel

File "/app/dalle_model.py", line 5, in

import jax

File "/usr/local/lib/python3.8/dist-packages/jax/init.py", line 116, in

from .experimental.maps import soft_pmap as soft_pmap

File "/usr/local/lib/python3.8/dist-packages/jax/experimental/maps.py", line 26, in

from .. import numpy as jnp

File "/usr/local/lib/python3.8/dist-packages/jax/numpy/init.py", line 19, in

from . import fft as fft

File "/usr/local/lib/python3.8/dist-packages/jax/numpy/fft.py", line 17, in

from jax._src.numpy.fft import (

File "/usr/local/lib/python3.8/dist-packages/jax/_src/numpy/fft.py", line 19, in

from jax import lax

File "/usr/local/lib/python3.8/dist-packages/jax/lax/init.py", line 332, in

from jax._src.lax.fft import (

File "/usr/local/lib/python3.8/dist-packages/jax/_src/lax/fft.py", line 145, in

xla.backend_specific_translations['cpu'][fft_p] = pocketfft.pocketfft

AttributeError: module 'jaxlib.pocketfft' has no attribute 'pocketfft'`

@hibby50
Copy link

hibby50 commented Jun 17, 2022

Same issue here

@cdmichaelb
Copy link
Author

@hibby50

Fixed with #79

@JoshWarn
Copy link

Still seem to be having this issue while working with MEGA.

@cdmichaelb
Copy link
Author

Still seem to be having this issue while working with MEGA.

Check #79

@Larry-Schultz
Copy link

Larry-Schultz commented Jun 25, 2022

I manually changed my Dockerfile to replicate the changes in #79 and this issue still happens on startup.

EDIT: Looks like I forgot to do docker-compose build after changing the Dockerfile.

After I implemented the changes in PR #79, ran docker-compose build, then ran docker-compose up everything started working.

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

No branches or pull requests

4 participants