# CoolProp fluid property database reinforces its availability for Julia users

**URL:** <https://discourse.julialang.org/t/coolprop-fluid-property-database-reinforces-its-availability-for-julia-users/1325>\
**Category:** Modelling & Simulations\
**Tags:** announcement\
**Created:** [January 6, 2017, 2:54pm UTC](https://discourse.julialang.org/t/coolprop-fluid-property-database-reinforces-its-availability-for-julia-users/1325 "2017-01-06T14:54:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![DANA-Laboratory](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dana-laboratory/32/375_2.png) [@DANA-Laboratory](https://discourse.julialang.org/u/DANA-Laboratory)\
**Post date:** [January 6, 2017, 2:54pm UTC](https://discourse.julialang.org/t/coolprop-fluid-property-database-reinforces-its-availability-for-julia-users/1325/1 "2017-01-06T14:54:48Z")

</div>

> [CoolProp](http://www.coolprop.org/), Is an open-source, cross-platform, reference-quality fluid property database that mirrors many of the functionalities of REFPROP. The codebase is written in C++ and wrappers are available for Python and C#. A DLL is also available for calling from other languages. It is currently the only open-source package that implements the extended corresponding states model for transport properties.

* * *

I’m pleased to announce that **CoolProp** is currently preparing itself to be a Julia registered package, [discussion here] ([CoolProp.jl as a registered Julia package · Issue #1293 · CoolProp/CoolProp · GitHub](https://github.com/CoolProp/CoolProp/issues/1293#)). Most recent works is pushed [here](https://github.com/vimalaad/CoolProp.jl) (Need your contribution).

Any advice and suggestions will be greatly appreciated  
Regards  
[Reza Afzalan](https://github.com/DANA-Laboratory/ThermodynamicsTable.jl)

* * *

**CoolProp Papers:**

- [Pure and Pseudo-pure Fluid Thermophysical Property Evaluation and the Open-Source Thermophysical Property Library CoolProp](http://pubs.acs.org/doi/abs/10.1021/ie4033999)
- [COOLPROP: AN OPEN-SOURCE REFERENCE-QUALITY  
THERMOPHYSICAL PROPERTY LIBRARY](http://orbit.dtu.dk/fedora/objects/orbit:125540/datastreams/file_fb3666f9-80a6-45da-96d3-a8f5b09e16cd/content)

---

<div class="post-metadata">

**Author:** ![non-Jedi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/non-jedi/32/3645_2.png) [@non-Jedi](https://discourse.julialang.org/u/non-Jedi)\
**Post date:** [March 6, 2018, 6:22pm UTC](https://discourse.julialang.org/t/coolprop-fluid-property-database-reinforces-its-availability-for-julia-users/1325/2 "2018-03-06T18:22:00Z")

</div>

This is awesome! Thanks. Coolprop is one of the things I’ve been missing most  
since switching mostly away from python.

@DANA-Laboratory, did you mean to link to  
[https://github.com/vimalaad/CoolProp.jl](https://github.com/vimalaad/CoolProp.jl) rather than  
[https://github.com/coolprop/CoolProp.jl](https://github.com/coolprop/CoolProp.jl) ? What still needs to happen before  
you’re comfortable registering the package?

---

<div class="post-metadata">

**Author:** ![eftekhari](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/eftekhari/32/37053_2.png) [@eftekhari](https://discourse.julialang.org/u/eftekhari)\
**Post date:** [March 20, 2018, 10:13am UTC](https://discourse.julialang.org/t/coolprop-fluid-property-database-reinforces-its-availability-for-julia-users/1325/3 "2018-03-20T10:13:25Z")

</div>

We discussed it to some extent [here](https://github.com/CoolProp/CoolProp/issues/1293).

---

<div class="post-metadata">

**Author:** ![non-Jedi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/non-jedi/32/3645_2.png) [@non-Jedi](https://discourse.julialang.org/u/non-Jedi)\
**Post date:** [March 20, 2018, 12:56pm UTC](https://discourse.julialang.org/t/coolprop-fluid-property-database-reinforces-its-availability-for-julia-users/1325/4 "2018-03-20T12:56:14Z")

</div>

Yep, I saw that discussion. Still not entirely clear to me what needs to be done  
before its ready to be registered. I want to know if there’s something I can do  
to help.

---

<div class="post-metadata">

**Author:** ![DANA-Laboratory](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dana-laboratory/32/375_2.png) [@DANA-Laboratory](https://discourse.julialang.org/u/DANA-Laboratory)\
**Post date:** [March 21, 2018, 7:07am UTC](https://discourse.julialang.org/t/coolprop-fluid-property-database-reinforces-its-availability-for-julia-users/1325/5 "2018-03-21T07:07:59Z")

</div>

For me it was ready at the time, the only thing was I do not have enough free time to support this kind of works, although I love it.

---

<div class="post-metadata">

**Author:** ![drmartinrohde](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@drmartinrohde](https://discourse.julialang.org/u/drmartinrohde)\
**Post date:** [November 7, 2018, 4:06pm UTC](https://discourse.julialang.org/t/coolprop-fluid-property-database-reinforces-its-availability-for-julia-users/1325/6 "2018-11-07T16:06:53Z")

</div>

In Julia 0.7, I had no problems with installing CoolProp, but in 1.0.1 I cannot make it work. This is the output when I do, in the REPL (see below), Pkg.Clone(“[https://github.com/vimalaad/CoolProp.jl.git](https://github.com/vimalaad/CoolProp.jl.git)”)

Can you help?

Thanks!

julia\> Pkg.clone(“[https://github.com/vimalaad/CoolProp.jl.git](https://github.com/vimalaad/CoolProp.jl.git)”)  
┌ Warning: Pkg.clone is only kept for legacy CI script reasons, please use `add`  
└ @ Pkg.API /Users/osx/buildbot/slave/package\_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:463  
Updating git-repo `https://github.com/vimalaad/CoolProp.jl.git`  
[ Info: Assigning UUID e084ae63-2819-5025-826e-f8e611a84251 to CoolProp  
ERROR: Path `/Users/mrohde/.julia/dev/CoolProp` exists but it does not contain `src/CoolProp.jl  
Stacktrace:  
[1] pkgerror(::String) at /Users/osx/buildbot/slave/package\_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Types.jl:120  
[2] (::getfield(Pkg.Types, Symbol(“##26#29”)){Bool,Pkg.Types.Context,Array{Pkg.Types.PackageSpec,1}})(::LibGit2.CachedCredentials) at /Users/osx/buildbot/slave/package\_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Types.jl:584  
[3] shred!(::getfield(Pkg.Types, Symbol(“##26#29”)){Bool,Pkg.Types.Context,Array{Pkg.Types.PackageSpec,1}}, ::LibGit2.CachedCredentials) at ./secretbuffer.jl:184  
[4] #handle\_repos\_develop!#25 at /Users/osx/buildbot/slave/package\_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Types.jl:511 [inlined]  
[5] #handle\_repos\_develop! at ./none:0 [inlined]  
[6] #add\_or\_develop#13(::Symbol, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/osx/buildbot/slave/package\_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:52  
[7] #add\_or\_develop at ./none:0 [inlined]  
[8] #develop#19 at /Users/osx/buildbot/slave/package\_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:70 [inlined]  
[9] develop at /Users/osx/buildbot/slave/package\_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:70 [inlined]  
[10] macro expansion at ./logging.jl:310 [inlined]  
[11] clone(::String, ::String) at /Users/osx/buildbot/slave/package\_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:463 (repeats 2 times)  
[12] top-level scope at none:0

---

<div class="post-metadata">

**Author:** ![DANA-Laboratory](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dana-laboratory/32/375_2.png) [@DANA-Laboratory](https://discourse.julialang.org/u/DANA-Laboratory)\
**Post date:** [November 14, 2018, 5:10am UTC](https://discourse.julialang.org/t/coolprop-fluid-property-database-reinforces-its-availability-for-julia-users/1325/7 "2018-11-14T05:10:40Z")

</div>

Thanks ([alblaz (Alberto Lazzarotto) · GitHub](https://github.com/alblaz)) for contribution, With ([https://github.com/CoolProp/CoolProp.jl/commit/fe6cc86699520a4efb153e5c8c6a009a12f2889d](https://github.com/CoolProp/CoolProp.jl/commit/fe6cc86699520a4efb153e5c8c6a009a12f2889d)) the amazing CoolProp thermodynamic is ready for Julia1.0

---

<div class="post-metadata">

**Author:** ![drmartinrohde](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@drmartinrohde](https://discourse.julialang.org/u/drmartinrohde)\
**Post date:** [November 24, 2018, 5:25pm UTC](https://discourse.julialang.org/t/coolprop-fluid-property-database-reinforces-its-availability-for-julia-users/1325/8 "2018-11-24T17:25:47Z")

</div>

Thanks a lot, I’ll try the new version out!! 👍👏

---

<div class="post-metadata">

**Author:** ![drmartinrohde](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@drmartinrohde](https://discourse.julialang.org/u/drmartinrohde)\
**Post date:** [November 24, 2018, 5:40pm UTC](https://discourse.julialang.org/t/coolprop-fluid-property-database-reinforces-its-availability-for-julia-users/1325/9 "2018-11-24T17:40:22Z")

</div>

If I use the standard route as above I now get errors during precompiling:

julia\> using CoolProp  
[Info: Precompiling CoolProp [e084ae63-2819-5025-826e-f8e611a84251]  
┌ Warning: Package CoolProp does not have Compat in its dependencies:  
│ - If you have CoolProp checked out for development and have  
│ added Compat as a dependency but haven’t updated your primary  
│ environment’s manifest file, try `Pkg.resolve()`.  
│ - Otherwise you may need to report an issue with CoolProp  
└ Loading Compat into CoolProp from project dependency, future warnings for CoolProp are suppressed.  
ERROR: LoadError: MethodError: no method matching Array(::Type{UInt8}, ::Int64)  
Closest candidates are:  
Array(::LinearAlgebra.UniformScaling, ::Integer, ::Integer) at /Users/osx/buildbot/slave/package\_osx64/build/usr/share/julia/stdlib/v1.0/LinearAlgebra/src/uniformscaling.jl:330  
Stacktrace:  
[1] top-level scope at none:0  
[2] include at ./boot.jl:317 [inlined]  
[3] include\_relative(::Module, ::String) at ./loading.jl:1044  
[4] include(::Module, ::String) at ./sysimg.jl:29  
[5] top-level scope at none:2  
[6] eval at ./boot.jl:319 [inlined]  
[7] eval(::Expr) at ./client.jl:393  
[8] top-level scope at ./none:3  
in expression starting at /Users/mrohde/.julia/dev/CoolProp/src/CoolProp.jl:7  
ERROR: Failed to precompile CoolProp [e084ae63-2819-5025-826e-f8e611a84251] to /Users/mrohde/.julia/compiled/v1.0/CoolProp/TgXq7.ji.  
Stacktrace:  
[1] macro expansion at ./logging.jl:311 [inlined]  
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1190  
[3] macro expansion at ./logging.jl:309 [inlined]  
[4] \_require(::Base.PkgId) at ./loading.jl:947  
[5] require(::Base.PkgId) at ./loading.jl:858  
[6] macro expansion at ./logging.jl:309 [inlined]  
[7] require(::Module, ::Symbol) at ./loading.jl:840

---

<div class="post-metadata">

**Author:** ![cstook](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cstook/32/3731_2.png) [@cstook](https://discourse.julialang.org/u/cstook)\
**Post date:** [November 25, 2018, 11:16pm UTC](https://discourse.julialang.org/t/coolprop-fluid-property-database-reinforces-its-availability-for-julia-users/1325/10 "2018-11-25T23:16:40Z")

</div>

I also had difficulty installing CoolProp. Not the same error you have. After much trial and error, I think the following got it working for me.

delete all previous attempts to install  
delete .julia/registries/General  
dev [https://github.com/CoolProp/CoolProp.jl.git](https://github.com/CoolProp/CoolProp.jl.git)  
use git GUI to switch to origin/master branch and create tracking branch  
]build CoolProp  
using CoolProp

This still throws a warning about Libdl not being listed in CoopProp’s dependencies, but it runs anyway. It does not pass it’s own tests. ]test CoolProp fails, but the examples provided in the docstrings work.

---

<div class="post-metadata">

**Author:** ![marcucius](https://avatars.discourse-cdn.com/v4/letter/m/c68b51/32.png) [@marcucius](https://discourse.julialang.org/u/marcucius)\
**Post date:** [December 20, 2018, 8:10am UTC](https://discourse.julialang.org/t/coolprop-fluid-property-database-reinforces-its-availability-for-julia-users/1325/11 "2018-12-20T08:10:42Z")

</div>

I got it to install just fine by adding

- DataStructures
- Compat
- Libdl
- JSON

Then,

```julia
Pkg.clone("https://github.com/CoolProp/CoolProp.jl.git")
Pkg.build("CoolProp")

```

It installed with no problems on 1.0.2 and 1.2.0-DEV.21

---

<div class="post-metadata">

**Author:** ![drmartinrohde](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@drmartinrohde](https://discourse.julialang.org/u/drmartinrohde)\
**Post date:** [January 16, 2019, 3:58pm UTC](https://discourse.julialang.org/t/coolprop-fluid-property-database-reinforces-its-availability-for-julia-users/1325/12 "2019-01-16T15:58:51Z")

</div>

I still get the same errors when typing “using CoolProp”. Adding and building goes fine. It is the precompiling of CoolProp where I get the error messages.

---

<div class="post-metadata">

**Author:** ![drmartinrohde](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@drmartinrohde](https://discourse.julialang.org/u/drmartinrohde)\
**Post date:** [April 5, 2019, 2:04pm UTC](https://discourse.julialang.org/t/coolprop-fluid-property-database-reinforces-its-availability-for-julia-users/1325/13 "2019-04-05T14:04:28Z")

</div>

> [@cstook](#):
>
> dev [GitHub - CoolProp/CoolProp.jl: A Julia wrapper for CoolProp, offering access to thermodynamic properties for fluids and mixtures.](https://github.com/CoolProp/CoolProp.jl.git)

Still not working and having Julia 1.1 now. Is there already a solution? thanks.

---

<div class="post-metadata">

**Author:** ![drmartinrohde](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@drmartinrohde](https://discourse.julialang.org/u/drmartinrohde)\
**Post date:** [July 8, 2019, 8:05am UTC](https://discourse.julialang.org/t/coolprop-fluid-property-database-reinforces-its-availability-for-julia-users/1325/14 "2019-07-08T08:05:09Z")

</div>

Is there any solution? I still get error messages when trying to install CoolProp for Julia. Thanks!

```julia
Building CoolProp → `~/.julia/dev/CoolProp/deps/build.log`
┌ Error: Error building `CoolProp`: 
│ ERROR: LoadError: ArgumentError: isdefined: too few arguments (expected 2)
│ Stacktrace:
│ [1] top-level scope at /Users/mrohde/.julia/dev/CoolProp/deps/build.jl:6
│ [2] include at ./boot.jl:326 [inlined]
│ [3] include_relative(::Module, ::String) at ./loading.jl:1038
│ [4] include(::Module, ::String) at ./sysimg.jl:29
│ [5] include(::String) at ./client.jl:403
│ [6] top-level scope at none:0
│ in expression starting at /Users/mrohde/.julia/dev/CoolProp/deps/build.jl:5
└ @ Pkg.Operations /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Operations.jl:1075

```

---

<div class="post-metadata">

**Author:** ![akshayb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/akshayb/32/9641_2.png) [@akshayb](https://discourse.julialang.org/u/akshayb)\
**Post date:** [November 17, 2019, 10:40pm UTC](https://discourse.julialang.org/t/coolprop-fluid-property-database-reinforces-its-availability-for-julia-users/1325/15 "2019-11-17T22:40:52Z")

</div>

I’m facing the same issue. I’ve been trying to get CoolProp to work for a while now but haven’t been able to. Did you find a solution to the problem?

---

<div class="post-metadata">

**Author:** ![anon92994695](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Post date:** [November 18, 2019, 12:22am UTC](https://discourse.julialang.org/t/coolprop-fluid-property-database-reinforces-its-availability-for-julia-users/1325/16 "2019-11-18T00:22:56Z")

</div>

I’m a fan of this solo effort project(real preliminary)  
[https://github.com/longemen3000/LavoisierCore.jl](https://github.com/longemen3000/LavoisierCore.jl)

Looks like they are supporting thermodynamic properties of tertiary, and quaternary mixtures. I don’t think CoolProp does that?

The more the merrier though!

---

<div class="post-metadata">

**Author:** ![cstook](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cstook/32/3731_2.png) [@cstook](https://discourse.julialang.org/u/cstook)\
**Post date:** [November 18, 2019, 1:19am UTC](https://discourse.julialang.org/t/coolprop-fluid-property-database-reinforces-its-availability-for-julia-users/1325/17 "2019-11-18T01:19:22Z")

</div>

Are you are using  
[https://github.com/CoolProp/CoolProp.jl.git](https://github.com/CoolProp/CoolProp.jl.git)

not  
[https://github.com/vimalaad/CoolProp.jl.git](https://github.com/vimalaad/CoolProp.jl.git)  
?

---

<div class="post-metadata">

**Author:** ![akshayb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/akshayb/32/9641_2.png) [@akshayb](https://discourse.julialang.org/u/akshayb)\
**Post date:** [November 18, 2019, 1:29am UTC](https://discourse.julialang.org/t/coolprop-fluid-property-database-reinforces-its-availability-for-julia-users/1325/18 "2019-11-18T01:29:32Z")

</div>

I’m using vimalaad/CoolProp.jl; Attached is the issue I am having.

 ![20%20PM](https://global.discourse-cdn.com/julialang/original/3X/0/b/0b08fd046a961ccf0c47b1c513bd994bcf1869e7.png)

---

<div class="post-metadata">

**Author:** ![cstook](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cstook/32/3731_2.png) [@cstook](https://discourse.julialang.org/u/cstook)\
**Post date:** [November 18, 2019, 1:48am UTC](https://discourse.julialang.org/t/coolprop-fluid-property-database-reinforces-its-availability-for-julia-users/1325/19 "2019-11-18T01:48:00Z")

</div>

CoolProp/CoolProp.jl works for me. Ignore the readme which still directs to vimalaad/CoolProp.jl. vimalaad/CoolProp.jl has not been updated for three years.

---

<div class="post-metadata">

**Author:** ![akshayb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/akshayb/32/9641_2.png) [@akshayb](https://discourse.julialang.org/u/akshayb)\
**Post date:** [November 18, 2019, 2:21am UTC](https://discourse.julialang.org/t/coolprop-fluid-property-database-reinforces-its-availability-for-julia-users/1325/20 "2019-11-18T02:21:17Z")

</div>

I tried Pkg.clone(“[https://github.com/CoolProp/CoolProp.jl.git](https://github.com/CoolProp/CoolProp.jl.git)”) as well and I ran into the same error. Do you have any additional dependencies installed?

[Next page](https://discourse.julialang.org/t/coolprop-fluid-property-database-reinforces-its-availability-for-julia-users/1325.md?page=2)
