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

Import error #169

Open
nothingness6 opened this issue Feb 27, 2023 · 3 comments
Open

Import error #169

nothingness6 opened this issue Feb 27, 2023 · 3 comments

Comments

@nothingness6
Copy link

Hi, I just ran into the import error below:

`SystemError Traceback (most recent call last)

in
8 from PIL import Image
9
---> 10 from stable_diffusion_videos import FlaxStableDiffusionWalkPipeline, Interface
11
12 pipeline, params = FlaxStableDiffusionWalkPipeline.from_pretrained(

12 frames

/usr/local/lib/python3.8/dist-packages/numba/np/ufunc/decorators.py in
1 import inspect
2
----> 3 from numba.np.ufunc import _internal
4 from numba.np.ufunc.parallel import ParallelUFuncBuilder, ParallelGUFuncBuilder
5

SystemError: initialization of _internal failed without raising an exception`

I have no idea what to do. Please give me a solution.
Thank you.

@nateraw
Copy link
Owner

nateraw commented Feb 27, 2023

Can you please refer to solution mentioned in #168 and see if it fixes your problem? comment here. Just don't reinstall jax, then remove the param passed to setup (so should just be jax.tools.colab_tpu.setup_tpu() instead of one with the build string passed).

@nateraw
Copy link
Owner

nateraw commented Feb 27, 2023

Please let me know if it does - I'll hotfix asap

@nothingness6
Copy link
Author

Hi, nateraw.
I appreciate it. Unfortunately, I just faced to another error from the start (Set up JAX). So, I couldn't go further. Here is the error message:

`KeyError Traceback (most recent call last)

in
4
5 import jax.tools.colab_tpu
----> 6 jax.tools.colab_tpu.setup_tpu('tpu_driver_20221011')
7
8 get_ipython().system('pip install flax diffusers transformers ftfy')

1 frames

/usr/lib/python3.8/os.py in getitem(self, key)
673 except KeyError:
674 # raise KeyError with the original key value
--> 675 raise KeyError(key) from None
676 return self.decodevalue(value)
677

KeyError: 'COLAB_TPU_ADDR'`

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

2 participants