# DataLore — ImportError: cannot import name 'FLAX\_WEIGHTS\_NAME'

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdatalore-importerror-cannot-import-name-flax-weights-name%2F34407%3E%5C
**Category:** 🧨 Diffusers\
**Created:** [March 22, 2023, 3:37pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdatalore-importerror-cannot-import-name-flax-weights-name%2F34407 "2023-03-22T15:37:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chudotony](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/chudotony/32/34046_2.png) [@chudotony](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fchudotony)%5C
**Post date:** [March 22, 2023, 3:37pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdatalore-importerror-cannot-import-name-flax-weights-name%2F34407%2F1 "2023-03-22T15:37:56Z")

</div>

Hi guys! I work in DataLore, a service for jupiter notebooks like Colab. I try to import `DDPMScheduler, UNet2DModel` from `diffusers` and receive this error:

```auto
ImportError: cannot import name 'FLAX_WEIGHTS_NAME' from 'transformers.utils' (/opt/python/envs/default/lib/python3.8/site-packages/transformers/utils/ __init__.py)

```

Btw, in Colab it works fine. How to fix this in DataLore?

---

<div class="post-metadata">

**Author:** ![pcuenq](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/pcuenq/32/32135_2.png) [@pcuenq](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fpcuenq)%5C
**Post date:** [March 29, 2023, 9:59am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdatalore-importerror-cannot-import-name-flax-weights-name%2F34407%2F2 "2023-03-29T09:59:57Z")

</div>

Hi @chudotony, I’m not familiar with DataLore unfortunately. Would it be possible for you to upgrade `transformers` to the latest version?

---

<div class="post-metadata">

**Author:** ![chudotony](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/chudotony/32/34046_2.png) [@chudotony](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fchudotony)%5C
**Post date:** [April 13, 2023, 9:08am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdatalore-importerror-cannot-import-name-flax-weights-name%2F34407%2F3 "2023-04-13T09:08:58Z")

</div>

Hi, I updated from 4.14 to 4.28 and now it works! Thanks!
