# Problem installing SigmoidalProgramming

**URL:** https://discourse.julialang.org/t/problem-installing-sigmoidalprogramming/98731
**Category:** Optimization (Mathematical)
**Tags:** package, optimization
**Created:** [May 12, 2023, 10:11am UTC](https://discourse.julialang.org/t/problem-installing-sigmoidalprogramming/98731 "2023-05-12T10:11:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![meet.saiya](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/meet.saiya/32/49312_2.png) [@meet.saiya](https://discourse.julialang.org/u/meet.saiya)
#### Post date: [May 12, 2023, 10:11am UTC](https://discourse.julialang.org/t/problem-installing-sigmoidalprogramming/98731/1 "2023-05-12T10:11:44Z")

</div>

I tried installing SigmoidalProgramming in Julia 1.8.5 and it gave the following error.

```julia
julia> using SigmoidalProgramming
[Info: Precompiling SigmoidalProgramming [ce2a0656-6bed-5c64-9e01-e7b1ac833b80]
ERROR: LoadError: You have installed version 1.17.7 of Clp, which is not supported by Clp.jl. If the version change was breaking, changes will need to be made to the Julia code. Please open an issue at https://github.com/jump-dev/Clp.jl.
Stacktrace:
 [1] error(s::String)
   @ Base .\error.jl:35
 [2] top-level scope
   @ C:\Users\meets\.julia\packages\Clp\nnuI6\src\Clp.jl:24
 [3] include
   @ .\Base.jl:419 [inlined]
 [4] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
   @ Base .\loading.jl:1554
 [5] top-level scope
   @ stdin:1
in expression starting at C:\Users\meets\.julia\packages\Clp\nnuI6\src\Clp.jl:1
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile Clp [e2554f3b-3117-50c0-817c-e040a3ddf72d] to C:\Users\meets\.julia\compiled\v1.8\Clp\jl_B53A.tmp.
Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base .\loading.jl:1707
  [3] compilecache
    @ .\loading.jl:1651 [inlined]
  [4] _require(pkg::Base.PkgId)
    @ Base .\loading.jl:1337
  [5] _require_prelocked(uuidkey::Base.PkgId)
    @ Base .\loading.jl:1200
  [6] macro expansion
    @ .\loading.jl:1180 [inlined]
  [7] macro expansion
    @ .\lock.jl:223 [inlined]
  [8] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:1144
  [9] include(mod::Module, _path::String)
    @ Base .\Base.jl:419
 [10] include(x::String)
    @ SigmoidalProgramming C:\Users\meets\.julia\packages\SigmoidalProgramming\kLcUj\src\SigmoidalProgramming.jl:1
 [11] top-level scope
    @ C:\Users\meets\.julia\packages\SigmoidalProgramming\kLcUj\src\SigmoidalProgramming.jl:6
 [12] include
    @ .\Base.jl:419 [inlined]
 [13] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
    @ Base .\loading.jl:1554
 [14] top-level scope
    @ stdin:1
in expression starting at C:\Users\meets\.julia\packages\SigmoidalProgramming\kLcUj\src\sp.jl:2
in expression starting at C:\Users\meets\.julia\packages\SigmoidalProgramming\kLcUj\src\SigmoidalProgramming.jl:1
in expression starting at stdin:1
ERROR: Failed to precompile SigmoidalProgramming [ce2a0656-6bed-5c64-9e01-e7b1ac833b80] to C:\Users\meets\.julia\compiled\v1.8\SigmoidalProgramming\jl_A698.tmp.
Stacktrace:
 [1] error(s::String)
   @ Base .\error.jl:35
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
   @ Base .\loading.jl:1707
 [3] compilecache
   @ .\loading.jl:1651 [inlined]
 [4] _require(pkg::Base.PkgId)
   @ Base .\loading.jl:1337
 [5] _require_prelocked(uuidkey::Base.PkgId)
   @ Base .\loading.jl:1200
 [6] macro expansion
   @ .\loading.jl:1180 [inlined]
 [7] macro expansion
   @ .\lock.jl:223 [inlined]
 [8] require(into::Module, mod::Symbol)
   @ Base .\loading.jl:1144

```

I tired installing the older version of clp as specified by Sigmoidal programming git but that did not work. Can anyone help me?

---

<div class="post-metadata">

### Author: ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)
#### Post date: [May 14, 2023, 11:12pm UTC](https://discourse.julialang.org/t/problem-installing-sigmoidalprogramming/98731/2 "2023-05-14T23:12:36Z")

</div>

I made a couple of changes so that it should work with the latest versions of JuMP and the solvers. You should be able to install it via my branch: [Bump compat versions to support JuMP v1 by odow · Pull Request #14 · madeleineudell/SigmoidalProgramming.jl · GitHub](https://github.com/madeleineudell/SigmoidalProgramming.jl/pull/14)

But note that SigmoidalProgramming is old, has no tests, and is not supported. I’ll suggest again that the best course of action is for you to download the code and fix it locally:

> [@Error code for GLPK and SigmoidalProgramming](https://discourse.julialang.org/t/error-code-for-glpk-and-sigmoidalprogramming/98043/2):
>
> Do you have a reproducible example? This just looks like a bug. It looks like [GitHub - madeleineudell/SigmoidalProgramming.jl: Julia Package for Sigmoidal Programming](https://github.com/madeleineudell/SigmoidalProgramming.jl) hasn’t been updated in a number of years, so I wouldn’t expect this to get fixed unless you download and edit the code yourself.

x-ref [Using custom built Clp binaries for v1.0.1 · Issue #136 · jump-dev/Clp.jl · GitHub](https://github.com/jump-dev/Clp.jl/issues/136#issuecomment-1545472905)
