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

Bus error when importing keras_nlp before tensorflow #18801

Closed
yaddayaddayaddayadda opened this issue Nov 20, 2023 · 1 comment
Closed

Bus error when importing keras_nlp before tensorflow #18801

yaddayaddayaddayadda opened this issue Nov 20, 2023 · 1 comment

Comments

@yaddayaddayaddayadda
Copy link

Importing keras_nlp (version 0.6.3) before importing Tensorflw in a python package results in bus error on mac M1.
I.e, this gives an error:
import keras_nlp
import tensorflow
While this doesn't:
import tensorflow
import keras_nlp

Running on a M1 machine with tensorflow-macos 2.14 and keras_nlp 0.6.3

@sachinprasadhs
Copy link
Collaborator

I was able to import keras_nlp and tensorflow on my M1 Mac.

Can you try to install TensorFlow 2.15 using pip install tensorflow==2.15 and install keras_nlp(0.6.3) using pip install keras-nlp.
Create a new environment to to fresh install to avoid other package conflicts if there is any.
Screenshot 2023-11-20 at 1 19 45 PM

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

No branches or pull requests

2 participants