# MethodError: no method matching floatrange when running histogram. 1.7.0 Win 11 21H2 AMD 5900Hx

**URL:** <https://discourse.julialang.org/t/methoderror-no-method-matching-floatrange-when-running-histogram-1-7-0-win-11-21h2-amd-5900hx/72679>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [December 6, 2021, 8:49pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-floatrange-when-running-histogram-1-7-0-win-11-21h2-amd-5900hx/72679 "2021-12-06T20:49:16Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![AmiranB](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/amiranb/32/30162_2.png) [@AmiranB](https://discourse.julialang.org/u/AmiranB)\
**Post date:** [December 6, 2021, 8:49pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-floatrange-when-running-histogram-1-7-0-win-11-21h2-amd-5900hx/72679/1 "2021-12-06T20:49:16Z")

</div>

````julia
julia> histogram(eruptions,label="eruptions")

MethodError: no method matching floatrange(::Type{Float64}, ::Int64, ::Int64, ::Float64, ::Int64)
Closest candidates are:
  floatrange(::Type{T}, ::Integer, ::Integer, ::Integer, ::Integer) where T at C:\Users\bokhu\AppData\Local\Programs\Julia-1.7.0\share\julia\base\twiceprecision.jl:370
  floatrange(::AbstractFloat, ::AbstractFloat, ::Real, ::AbstractFloat) at C:\Users\bokhu\AppData\Local\Programs\Julia-1.7.0\share\julia\base\twiceprecision.jl:384

Stacktrace:
  [1] floatrange(a::Float64, st::Float64, len::Float64, divisor::Float64)
    @ Base .\twiceprecision.jl:392
  [2] histrange(lo::Float64, hi::Float64, n::Int64, closed::Symbol)
    @ StatsBase C:\Users\bokhu\.julia\packages\StatsBase\DU1bT\src\hist.jl:99
  [3] histrange(v::Vector{Float64}, n::Int64, closed::Symbol)
    @ StatsBase C:\Users\bokhu\.julia\packages\StatsBase\DU1bT\src\hist.jl:39
  [4] _hist_edge
    @ C:\Users\bokhu\.julia\packages\Plots\FKcum\src\recipes.jl:806 [inlined]
  [5] _hist_edge
    @ C:\Users\bokhu\.julia\packages\Plots\FKcum\src\recipes.jl:808 [inlined]
  [6] #205
    @ C:\Users\bokhu\.julia\packages\Plots\FKcum\src\recipes.jl:822 [inlined]
  [7] map
    @ .\tuple.jl:221 [inlined]
  [8] _hist_edges
    @ C:\Users\bokhu\.julia\packages\Plots\FKcum\src\recipes.jl:822 [inlined]
  [9] _make_hist(vs::Tuple{Vector{Float64}}, binning::Symbol; normed::Bool, weights::Nothing)
    @ Plots C:\Users\bokhu\.julia\packages\Plots\FKcum\src\recipes.jl:841
 [10] macro expansion
    @ C:\Users\bokhu\.julia\packages\Plots\FKcum\src\recipes.jl:865 [inlined]
 [11] apply_recipe(plotattributes::AbstractDict{Symbol, Any}, #unused#::Type{Val{:barhist}}, x::Any, y::Any, z::Any)
    @ Plots C:\Users\bokhu\.julia\packages\RecipesBase\qpxEX\src\RecipesBase.jl:289
 [12] _process_seriesrecipe(plt::Any, plotattributes::Any)
    @ RecipesPipeline C:\Users\bokhu\.julia\packages\RecipesPipeline\bexlW\src\series_recipe.jl:50
 [13] _process_seriesrecipe(plt::Any, plotattributes::Any)
    @ RecipesPipeline C:\Users\bokhu\.julia\packages\RecipesPipeline\bexlW\src\series_recipe.jl:60
 [14] _process_seriesrecipes!(plt::Any, kw_list::Any)
    @ RecipesPipeline C:\Users\bokhu\.julia\packages\RecipesPipeline\bexlW\src\series_recipe.jl:27
 [15] recipe_pipeline!(plt::Any, plotattributes::Any, args::Any)
    @ RecipesPipeline C:\Users\bokhu\.julia\packages\RecipesPipeline\bexlW\src\RecipesPipeline.jl:97
 [16] _plot!(plt::Plots.Plot, plotattributes::Any, args::Any)
    @ Plots C:\Users\bokhu\.julia\packages\Plots\FKcum\src\plot.jl:172
 [17] #plot#150
    @ C:\Users\bokhu\.julia\packages\Plots\FKcum\src\plot.jl:58 [inlined]
 [18] histogram(args::Any; kw::Base.Pairs{Symbol, V, Tuple{Vararg{Symbol, N}}, NamedTuple{names, T}} where {V, N, names, T<:Tuple{Vararg{Any, N}}})
    @ Plots C:\Users\bokhu\.julia\packages\RecipesBase\qpxEX\src\RecipesBase.jl:410
 [19] top-level scope
    @ In[25]:1
 [20] eval
    @ .\boot.jl:373 [inlined]
 [21] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
    @ Base .\loading.jl:1196```

That is from the course below:
https://juliaacademy.com/courses/937702/lectures/17339512

Apologies if this is really basic, absolute beginner here.
````

---

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [December 6, 2021, 8:54pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-floatrange-when-running-histogram-1-7-0-win-11-21h2-amd-5900hx/72679/2 "2021-12-06T20:54:36Z")

</div>

Please make it easier to help you my writing a Minimum Working Example so we can reproduce your problem. Read [this guide](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757) for more information on how to structure a question.

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [December 6, 2021, 10:05pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-floatrange-when-running-histogram-1-7-0-win-11-21h2-amd-5900hx/72679/3 "2021-12-06T22:05:21Z")

</div>

Update StatsBase ([https://github.com/JuliaStats/StatsBase.jl/pull/703](https://github.com/JuliaStats/StatsBase.jl/pull/703))

---

<div class="post-metadata">

**Author:** ![enzomar](https://avatars.discourse-cdn.com/v4/letter/e/b4bc9f/32.png) [@enzomar](https://discourse.julialang.org/u/enzomar)\
**Post date:** [January 21, 2022, 9:30pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-floatrange-when-running-histogram-1-7-0-win-11-21h2-amd-5900hx/72679/4 "2022-01-21T21:30:38Z")

</div>

Hi. I still have the same problem in the same course on Julia Academy - on 21/January/2022.

I’ve installed Julia 1.7.1 on Ubuntu 20.04.

To reproduce the problem, please run the following notebook [https://github.com/JuliaAcademy/DataScience/blob/main/03.%20Statistics.ipynb](https://github.com/JuliaAcademy/DataScience/blob/main/03.%20Statistics.ipynb)

---

<div class="post-metadata">

**Author:** ![Stephen\_Knipe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stephen_knipe/32/33079_2.png) [@Stephen\_Knipe](https://discourse.julialang.org/u/Stephen_Knipe)\
**Post date:** [January 23, 2022, 7:25pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-floatrange-when-running-histogram-1-7-0-win-11-21h2-amd-5900hx/72679/5 "2022-01-23T19:25:43Z")

</div>

Just echoing this ^, still seeing the same issue on a fresh Julia 1.7.1 install and in the same part of the same notebook from the Academy. would a rollback in StatsBase build help maybe? If so, anyone know the last build that this worked on?

---

<div class="post-metadata">

**Author:** ![enzomar](https://avatars.discourse-cdn.com/v4/letter/e/b4bc9f/32.png) [@enzomar](https://discourse.julialang.org/u/enzomar)\
**Post date:** [January 26, 2022, 11:36am UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-floatrange-when-running-histogram-1-7-0-win-11-21h2-amd-5900hx/72679/6 "2022-01-26T11:36:40Z")

</div>

Hi. After spending literally hours to understand the cause of this problem, I can report that now histogram works correctly!

I found the problem being that the DataScience repository contains old Manifest / Project files that some how create the problem.  
If you delete them in the repository you are good to go.

---

<div class="post-metadata">

**Author:** ![Stephen\_Knipe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stephen_knipe/32/33079_2.png) [@Stephen\_Knipe](https://discourse.julialang.org/u/Stephen_Knipe)\
**Post date:** [January 31, 2022, 1:06am UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-floatrange-when-running-histogram-1-7-0-win-11-21h2-amd-5900hx/72679/8 "2022-01-31T01:06:10Z")

</div>

thanks @enzomar ! Just to be clear we should delete specific line items in the manifest/project files, or delete them entirely and manually add the packages to recreate them?

Thanks again

---

<div class="post-metadata">

**Author:** ![Stephen\_Knipe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stephen_knipe/32/33079_2.png) [@Stephen\_Knipe](https://discourse.julialang.org/u/Stephen_Knipe)\
**Post date:** [February 4, 2022, 3:07am UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-floatrange-when-running-histogram-1-7-0-win-11-21h2-amd-5900hx/72679/9 "2022-02-04T03:07:37Z")

</div>

Deleting the files did not resolve the issue for me, but thanks for trying to find something!

---

<div class="post-metadata">

**Author:** ![Gabriele\_Lucchetti11](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gabriele_lucchetti11/32/33774_2.png) [@Gabriele\_Lucchetti11](https://discourse.julialang.org/u/Gabriele_Lucchetti11)\
**Post date:** [February 13, 2022, 11:08am UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-floatrange-when-running-histogram-1-7-0-win-11-21h2-amd-5900hx/72679/10 "2022-02-13T11:08:22Z")

</div>

Same problem here… any chance someone found a solution?

---

<div class="post-metadata">

**Author:** ![BadBoy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/badboy/32/202815_2.png) [@BadBoy](https://discourse.julialang.org/u/BadBoy)\
**Post date:** [January 4, 2023, 5:43pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-floatrange-when-running-histogram-1-7-0-win-11-21h2-amd-5900hx/72679/11 "2023-01-04T17:43:49Z")

</div>

I am also getting the same error with Julia 1.7.3 version. Please help me out. Thank you in advance.
