# Issues with AxisArrays on 0.6

**URL:** <https://discourse.julialang.org/t/issues-with-axisarrays-on-0-6/8064>\
**Category:** General Usage\
**Created:** [December 29, 2017, 6:55pm UTC](https://discourse.julialang.org/t/issues-with-axisarrays-on-0-6/8064 "2017-12-29T18:55:03Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![tobias.knopp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tobias.knopp/32/7551_2.png) [@tobias.knopp](https://discourse.julialang.org/u/tobias.knopp)\
**Post date:** [December 29, 2017, 6:55pm UTC](https://discourse.julialang.org/t/issues-with-axisarrays-on-0-6/8064/1 "2017-12-29T18:55:03Z")

</div>

Hi, I have an issue with AxisArrays since Compact (unavoidable) does now export `axes`

```julia
julia> using AxisArrays

julia> using Compat

julia> axes
WARNING: both Compat and AxisArrays export "axes"; uses of it in module Main must be qualified
ERROR: UndefVarError: axes not defined

```

Is this a bug in AxisArrays?

---

<div class="post-metadata">

**Author:** ![tobias.knopp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tobias.knopp/32/7551_2.png) [@tobias.knopp](https://discourse.julialang.org/u/tobias.knopp)\
**Post date:** [December 29, 2017, 7:00pm UTC](https://discourse.julialang.org/t/issues-with-axisarrays-on-0-6/8064/2 "2017-12-29T19:00:29Z")

</div>

and here is what I am actually trying to do:

```julia
julia> using Compat
julia> using ImageAxes
julia> A = AxisArray(zeros(20),1:20)
julia> pixelspacing(A)
WARNING: both AxisArrays and Compat export "axes"; uses of it in module ImageAxes must be qualified
ERROR: UndefVarError: axes not defined
Stacktrace:
 [1] pixelspacing(::AxisArrays.AxisArray{Float64,1,Array{Float64,1},Tuple{AxisArrays.Axis{:row,UnitRange{Int64}}}}) at /Users/knopp/.julia/v0.6/ImageAxes/src/ImageAxes.jl:152

julia> 

```

@tim.holy

---

<div class="post-metadata">

**Author:** ![Evizero](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evizero/32/10118_2.png) [@Evizero](https://discourse.julialang.org/u/Evizero)\
**Post date:** [December 29, 2017, 7:57pm UTC](https://discourse.julialang.org/t/issues-with-axisarrays-on-0-6/8064/3 "2017-12-29T19:57:50Z")

</div>

[https://github.com/JuliaImages/ImageAxes.jl/issues/25](https://github.com/JuliaImages/ImageAxes.jl/issues/25)

---

<div class="post-metadata">

**Author:** ![tobias.knopp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tobias.knopp/32/7551_2.png) [@tobias.knopp](https://discourse.julialang.org/u/tobias.knopp)\
**Post date:** [December 29, 2017, 8:03pm UTC](https://discourse.julialang.org/t/issues-with-axisarrays-on-0-6/8064/4 "2017-12-29T20:03:51Z")

</div>

Ah thanks. Not good that Compat breaks the entire Images package family.

---

<div class="post-metadata">

**Author:** ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Post date:** [December 29, 2017, 8:23pm UTC](https://discourse.julialang.org/t/issues-with-axisarrays-on-0-6/8064/5 "2017-12-29T20:23:17Z")

</div>

> [@tobias.knopp](#):
>
> Ah thanks. Not good that Compat breaks the entire Images package family.

I thought these kind of issues would be avoided because JuliaCIBot would run tests in depending packages? Or is the sampling the issue here, i.e. when that Compat.jl thing was merged, JuliaCIBot ran some depending package tests, but not any in Images.jl?

---

<div class="post-metadata">

**Author:** ![lobingera](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lobingera/32/211_2.png) [@lobingera](https://discourse.julialang.org/u/lobingera)\
**Post date:** [December 29, 2017, 8:38pm UTC](https://discourse.julialang.org/t/issues-with-axisarrays-on-0-6/8064/6 "2017-12-29T20:38:09Z")

</div>

see:  
[http://juliarun-ci.s3.amazonaws.com/760771e2c66eef043a1a5a9b3fecdf83e0c3d2b2/Compat\_reverse\_dependency\_tests.html](http://juliarun-ci.s3.amazonaws.com/760771e2c66eef043a1a5a9b3fecdf83e0c3d2b2/Compat_reverse_dependency_tests.html)

---

<div class="post-metadata">

**Author:** ![tobias.knopp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tobias.knopp/32/7551_2.png) [@tobias.knopp](https://discourse.julialang.org/u/tobias.knopp)\
**Post date:** [December 29, 2017, 8:56pm UTC](https://discourse.julialang.org/t/issues-with-axisarrays-on-0-6/8064/7 "2017-12-29T20:56:47Z")

</div>

I have filed [https://github.com/JuliaLang/Compat.jl/issues/441](https://github.com/JuliaLang/Compat.jl/issues/441)

I think this reveals a general problem with Compat:

1. Master changes something
2. In order to use it a compatibility thing is put into Compat.jl  
=\> Regular changes in the lowest layer of the stable software stack.

Since this is not the first time it would be great discussing if that workflow is really necessary.

---

<div class="post-metadata">

**Author:** ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Post date:** [December 29, 2017, 9:25pm UTC](https://discourse.julialang.org/t/issues-with-axisarrays-on-0-6/8064/8 "2017-12-29T21:25:46Z")

</div>

I do wonder whether METADATA PRs on such a central package as Compat.jl shouldn’t be run on more than just five random depending packages for JuliaCIBot…

---

<div class="post-metadata">

**Author:** ![lobingera](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lobingera/32/211_2.png) [@lobingera](https://discourse.julialang.org/u/lobingera)\
**Post date:** [December 29, 2017, 9:48pm UTC](https://discourse.julialang.org/t/issues-with-axisarrays-on-0-6/8064/9 "2017-12-29T21:48:18Z")

</div>

It’s not clear, if the list of packages is the full one. But it’s visible that previous compat had problems in imageview already
