Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work for Julia 1.3 on Windows #10

Open
samiit opened this issue Jan 27, 2020 · 2 comments
Open

Does not work for Julia 1.3 on Windows #10

samiit opened this issue Jan 27, 2020 · 2 comments

Comments

@samiit
Copy link

samiit commented Jan 27, 2020

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
Copy link

cstook commented Jan 27, 2020

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

See this discourse thread and this pull request.

@samiit
Copy link
Author

samiit commented Jan 28, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants