CoolProp / CoolProp.jl

A Julia wrapper for CoolProp, offering access to thermodynamic properties for fluids and mixtures.
http://www.coolprop.org
Other
32 stars 15 forks source link

Does not work for Julia 1.3 on Windows #10

Open samiit opened 4 years ago

samiit commented 4 years ago

I tried to install it on Windows 64 bit machine, using Julia 1.3 and it fails:

Error: Error building `CoolProp`:
ERROR: LoadError: ArgumentError: isdefined: too few arguments (expected 2)
Stacktrace:
 [1] top-level scope at C:\Users\Sam M\.julia\dev\CoolProp\deps\build.jl:6
 [2] include at .\boot.jl:328 [inlined]
 [3] include_relative(::Module, ::String) at .\loading.jl:1105
 [4] include(::Module, ::String) at .\Base.jl:31
 [5] include(::String) at .\client.jl:424
 [6] top-level scope at none:5
in expression starting at C:\Users\Sam\.julia\dev\CoolProp\deps\build.jl:5
@ Pkg.Operations D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib
1.3\Pkg\src\backwards_compatible_isolation.jl:649

Any way this can be solved?

Thanks in advance!

cstook commented 4 years ago

Make sure you are using CoolProp/CoolProp.jl not vimalaad/CoolProp.jl.

See this discourse thread and this pull request.

samiit commented 4 years ago

Thanks @cstook. I had followed the instruction (blindly) on the Readme of this repo.

I found the solution from your instructions on discourse thread. I will just write it here in case someone looks for a solution here (tried out on 1.3): Step 1: deleting .julia/dev/CoolProp and .julia/registries/* Step 2: On Julia REPL, get into the Pkg mode, by typing ] And then type the following:

dev https://github.com/CoolProp/CoolProp.jl.git
build CoolProp

Step 3: Try out CoolProp in Julia:

using CoolProp
PropsSI("D", "T", 300, "P", 101325, "Water")
PropsSI("Dmass", "T", 300, "P", 101325, "R125[0.7]&R32[0.3]")

This is in spite of the fact that the unit tests fail, which you can try on the Julia REPL, by getting into the Pkg mode, after typing ]:

test CoolProp

As of today, the test fails for critical calculations of a few fluids:

Test Failed at C:\Users\Sam\.julia\dev\CoolProp\test\testFluids.jl:33
  Expression: uneq == Set(fails_tcrit_eq_treducing)
   Evaluated: Set(Any["R11", "R134a", "n-Undecane", "Helium", "MDM", "Fluorine",
 "Isohexane", "R116", "R41", "HydrogenChloride", "n-Pentane", "Oxygen", "MM", "I
soButane", "n-Nonane"]) == Set(["R11", "R134a", "n-Undecane", "Neon", "Helium",
"MDM", "Fluorine", "Isohexane", "R116", "R41", "n-Pentane", "Oxygen", "MM", "Iso
Butane", "D5", "n-Nonane"])
ERROR: LoadError: LoadError: There was an error during testing
in expression starting at C:\Users\Sam\.julia\dev\CoolProp\test\testFluids.jl:
33
in expression starting at C:\Users\Sam\.julia\dev\CoolProp\test\runtests.jl:44