# Can't access some default units in Unitful.jl

**URL:** <https://discourse.julialang.org/t/cant-access-some-default-units-in-unitful-jl/55235>\
**Category:** General Usage\
**Tags:** unitful\
**Created:** [February 14, 2021, 12:00am UTC](https://discourse.julialang.org/t/cant-access-some-default-units-in-unitful-jl/55235 "2021-02-14T00:00:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gregstrq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gregstrq/32/20620_2.png) [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Post date:** [February 14, 2021, 12:00am UTC](https://discourse.julialang.org/t/cant-access-some-default-units-in-unitful-jl/55235/1 "2021-02-14T00:00:54Z")

</div>

I am trying to use Gauss units for magnetic field:

```julia
using Unitful

B = 1u"Gauss"

```

However, for some strange reason I get the error:

> ERROR: LoadError: ArgumentError: Symbol Gauss could not be found in unit modules Module[Unitful]

This unit is defined in [Unitful.jl](https://github.com/PainterQubits/Unitful.jl): see [this line in pkgdefaults.jl](https://github.com/PainterQubits/Unitful.jl/blob/0f0ec3f2856fd31b42e3238de1c3704e4ab6cd29/src/pkgdefaults.jl#L175). **So, what am I doing wrong?**

---

<div class="post-metadata">

**Author:** ![tbeason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tbeason/32/15898_2.png) [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Post date:** [February 14, 2021, 5:48am UTC](https://discourse.julialang.org/t/cant-access-some-default-units-in-unitful-jl/55235/2 "2021-02-14T05:48:30Z")

</div>

Those units become available once you reach Level 2 usage or subscribe to the Premium tier.

  
  
  

No actually it just seems like somehow it isn’t registered. I found `"Oe"` and `"Mx"` suffer the same issue. Looks like those were added recently by

[https://github.com/PainterQubits/Unitful.jl/pull/397](https://github.com/PainterQubits/Unitful.jl/pull/397)

---

<div class="post-metadata">

**Author:** ![sostock](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sostock/32/5546_2.png) [@sostock](https://discourse.julialang.org/u/sostock)\
**Post date:** [February 14, 2021, 12:31pm UTC](https://discourse.julialang.org/t/cant-access-some-default-units-in-unitful-jl/55235/3 "2021-02-14T12:31:11Z")

</div>

Yes, those units were added recently and are only available on `master`, not yet in any released version.

Edit: I just created a [PR](https://github.com/PainterQubits/Unitful.jl/pull/422) to release a new Unitful version that will include the recently added Gauss units.

---

<div class="post-metadata">

**Author:** ![Gregstrq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gregstrq/32/20620_2.png) [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Post date:** [February 14, 2021, 1:22pm UTC](https://discourse.julialang.org/t/cant-access-some-default-units-in-unitful-jl/55235/4 "2021-02-14T13:22:27Z")

</div>

Thank you.
