# \[ANN\] Introducing Upgradathon Fridays

**URL:** https://discourse.julialang.org/t/ann-introducing-upgradathon-fridays/12047
**Category:** Community
**Created:** [June 28, 2018, 10:03pm UTC](https://discourse.julialang.org/t/ann-introducing-upgradathon-fridays/12047 "2018-06-28T22:03:18Z")
**Posts on this page:** 14
**Page:** 3

<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: [July 7, 2018, 8:34pm UTC](https://discourse.julialang.org/t/ann-introducing-upgradathon-fridays/12047/41 "2018-07-07T20:34:54Z")

</div>

You need master GitHub.jl for `Checks` I believe.

---

<div class="post-metadata">

### Author: ![jlapeyre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jlapeyre/32/4514_2.png) [@jlapeyre](https://discourse.julialang.org/u/jlapeyre)
#### Post date: [July 7, 2018, 9:03pm UTC](https://discourse.julialang.org/t/ann-introducing-upgradathon-fridays/12047/42 "2018-07-07T21:03:48Z")

</div>

`FemtoCleaner` is working for me. I confirm I am on master `GitHub`, which is tagged `v4.1.0`

```julia

```

---

<div class="post-metadata">

### Author: ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)
#### Post date: [July 7, 2018, 9:10pm UTC](https://discourse.julialang.org/t/ann-introducing-upgradathon-fridays/12047/43 "2018-07-07T21:10:58Z")

</div>

I tried to upgrade Ipopt.jl . Femtocleaner did not find anything.  
Warning when using Ipopt:

```julia
julia> @time using Ipopt
WARNING: importing deprecated binding Base.Libdl into Sys.
WARNING: Base.Libdl is deprecated, run `using Libdl` instead
 in module Ipopt
in __init__ at /home/ufechner/.julia/packages/Ipopt/udV2/src/Ipopt.jl
┌ Warning: `contains(haystack, needle)` is deprecated, use `occursin(needle, haystack)` instead.
│ caller = (::getfield(Ipopt, Symbol("##1#2")))(::String) at Ipopt.jl:26
└ @ Ipopt Ipopt.jl:26
  1.425591 seconds (2.26 M allocations: 118.443 MiB, 4.80% gc time) 

```

The last warning was easy to fix. But how can I fix the first two warnings regarding Base.Libdl? I did not find where this depreciated code is used. It does not seam to happen in Ipopt.jl, but in some dependency.  
Any idea?

---

<div class="post-metadata">

### Author: ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)
#### Post date: [July 8, 2018, 8:03am UTC](https://discourse.julialang.org/t/ann-introducing-upgradathon-fridays/12047/44 "2018-07-08T08:03:44Z")

</div>

Pkg3 question: if I want to keep up with the new package developments generally, do I have to

```julia
pkg> activate . 
pkg> up

```

**separately in each package/project I am working on?** My understanding is that unless I do this, the manifest in each project just remains fixed.

In contrast to v0.6, where the package state was global and a single `Pkg.update()` would update everything. Note that I am not complaining, I think the new way makes more sense, just asking a clarifying question.

---

<div class="post-metadata">

### Author: ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)
#### Post date: [July 8, 2018, 8:34am UTC](https://discourse.julialang.org/t/ann-introducing-upgradathon-fridays/12047/45 "2018-07-08T08:34:34Z")

</div>

No the package manifests are ignored on the global level AFAICT, so `up` in the top level environment is enough.

---

<div class="post-metadata">

### Author: ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)
#### Post date: [July 8, 2018, 4:10pm UTC](https://discourse.julialang.org/t/ann-introducing-upgradathon-fridays/12047/46 "2018-07-08T16:10:38Z")

</div>

I found Base.Libdl in Ipopt.jl and replaced it with Libdl.

In addition I added at the top:

```julia
if VERSION >= v"0.7.0-DEV.3382"
    using Libdl
end

```

Is it suggested to use such an if statement?

---

<div class="post-metadata">

### Author: ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)
#### Post date: [July 8, 2018, 4:20pm UTC](https://discourse.julialang.org/t/ann-introducing-upgradathon-fridays/12047/47 "2018-07-08T16:20:32Z")

</div>

Sure, or you can include `using Compat.Libdl`, which should work on both 0.6 and 0.7.

---

<div class="post-metadata">

### Author: ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)
#### Post date: [July 8, 2018, 6:17pm UTC](https://discourse.julialang.org/t/ann-introducing-upgradathon-fridays/12047/48 "2018-07-08T18:17:23Z")

</div>

Thanks!  
I started to fix the depreciations in the tests of Ipopt, but I realized that most of the depreciations appear in MathProgBase.jl, which is used by Ipopt. Unfortunately the tests of MathProgBase.jl fail, and fixing them is beyond my skills.  
Have a look:  
[https://github.com/JuliaOpt/MathProgBase.jl/issues/213](https://github.com/JuliaOpt/MathProgBase.jl/issues/213)  
Any hints welcome!

---

<div class="post-metadata">

### Author: ![cscherrer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cscherrer/32/7631_2.png) [@cscherrer](https://discourse.julialang.org/u/cscherrer)
#### Post date: [July 11, 2018, 9:08pm UTC](https://discourse.julialang.org/t/ann-introducing-upgradathon-fridays/12047/49 "2018-07-11T21:08:30Z")

</div>

Is there a standardized way of telling where a given package is in this upgrade process? For example, Trying to use [Distributions.jl](https://github.com/JuliaStats/Distributions.jl) led me to problems with [Arpack.jl](https://github.com/JuliaLinearAlgebra/Arpack.jl/issues/21), which were quickly fixed. `Distributions` still isn’t working. There a a few commits mentioning v0.7, but strangely there’s not a single issue mentioning it. Still, I can’t imagine I’m the only one trying to use it with 0.7 - is that possible?

I’m happy to learn the upgrade process and try to do a couple. But the uncertainty makes it really hard to judge what the road ahead looks like before I can get started on my own project. Any suggestions?

---

<div class="post-metadata">

### Author: ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)
#### Post date: [July 11, 2018, 9:22pm UTC](https://discourse.julialang.org/t/ann-introducing-upgradathon-fridays/12047/50 "2018-07-11T21:22:22Z")

</div>

Just create an issue “Update Distributions.jl for Julia 0.7” and discuss the needed work with collaborators. ☀

---

<div class="post-metadata">

### Author: ![cscherrer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cscherrer/32/7631_2.png) [@cscherrer](https://discourse.julialang.org/u/cscherrer)
#### Post date: [July 11, 2018, 9:24pm UTC](https://discourse.julialang.org/t/ann-introducing-upgradathon-fridays/12047/51 "2018-07-11T21:24:08Z")

</div>

Fair enough, maybe others are wondering the same as me. Thanks 🙂

---

<div class="post-metadata">

### Author: ![tawheeler](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tawheeler/32/17657_2.png) [@tawheeler](https://discourse.julialang.org/u/tawheeler)
#### Post date: [July 29, 2018, 9:55pm UTC](https://discourse.julialang.org/t/ann-introducing-upgradathon-fridays/12047/52 "2018-07-29T21:55:39Z")

</div>

I was able to install FemtoCleaner as instructed (had to run Pkg.update() a few times). Now, when running the FemtoCleaner, I get an error:

```julia
julia> import FemtoCleaner

julia> FemtoCleaner.cleanrepo("home/tim/.julia/dev/Discretizers"; show_diff=true, delete_local=false)
INFO: Cloning home/tim/.julia/dev/Discretizers to /tmp/tmpArNh0h...
ERROR: GitError(Code:ERROR, Class:Net, Unsupported URL protocol)
Stacktrace:
 [1] macro expansion at ./libgit2/error.jl:99 [inlined]
 [2] clone(::String, ::String, ::Base.LibGit2.CloneOptions) at ./libgit2/repository.jl:276
 [3] #clone#100(::String, ::Bool, ::Ptr{Void}, ::Nullable{Base.LibGit2.AbstractCredentials}, ::Function, ::String, ::String) at ./libgit2/libgit2.jl:562
 [4] #cleanrepo#23(::Bool, ::Bool, ::Function, ::String) at /home/tim/.julia/v0.6/FemtoCleaner/src/FemtoCleaner.jl:301
 [5] (::FemtoCleaner.#kw##cleanrepo)(::Array{Any,1}, ::FemtoCleaner.#cleanrepo, ::String) at ./<missing>:0
fatal: Not a git repository (or any of the parent directories): .git
ERROR: failed process: Process(`git status`, ProcessExited(128)) [128]
Stacktrace:
 [1] pipeline_error(::Base.Process) at ./process.jl:682
 [2] run(::Cmd) at ./process.jl:651
 [3] #24 at /home/tim/.julia/v0.6/FemtoCleaner/src/FemtoCleaner.jl:313 [inlined]
 [4] cd(::FemtoCleaner.##24#25, ::String) at ./file.jl:70
 [5] #cleanrepo#23(::Bool, ::Bool, ::Function, ::String) at /home/tim/.julia/v0.6/FemtoCleaner/src/FemtoCleaner.jl:312
 [6] (::FemtoCleaner.#kw##cleanrepo)(::Array{Any,1}, ::FemtoCleaner.#cleanrepo, ::String) at ./<missing>:0

```

Any suggestions on how to overcome this?

---

<div class="post-metadata">

### Author: ![Keno](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/keno/32/285_2.png) [@Keno](https://discourse.julialang.org/u/Keno)
#### Post date: [July 29, 2018, 10:35pm UTC](https://discourse.julialang.org/t/ann-introducing-upgradathon-fridays/12047/53 "2018-07-29T22:35:00Z")

</div>

Try using an absolute path.

---

<div class="post-metadata">

### Author: ![tawheeler](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tawheeler/32/17657_2.png) [@tawheeler](https://discourse.julialang.org/u/tawheeler)
#### Post date: [July 29, 2018, 11:52pm UTC](https://discourse.julialang.org/t/ann-introducing-upgradathon-fridays/12047/54 "2018-07-29T23:52:25Z")

</div>

Thanks, looks like I blindly followed the example code without thinking. Needed a ‘/’ before “home”.

[Previous page](https://discourse.julialang.org/t/ann-introducing-upgradathon-fridays/12047.md?page=2)
