PhysicalConstants package with Julia 1.0.1.1?

package

#1

Hello,

I’ve been using thePhysicalConstants.jl package for some time now, and greatly appreciate the ability to define CGS or MKS units. We use CGS units in astrophysics.

The PhysicalConstants package was developed about 3 years ago - I think Julia was in beta? I’ve been able to install and use it up to Julia 1.0.1.


However, I can’t seem to install it with Julia 1.0.1.1. Is there a way around this error? Also, I would appreciate any recommendations for similar packages.


package installation issue: julia 1.0.1 (pro)
#2

That package seems to be abandoned, however there is another package with the same name that is still under active development:

This new package fully hooks into the Unitful.jl ecosystem, so it should be possible to convert the constants into whichever unit system suits you best.


#3

My download experience for Unitful:

Press Enter to start Julia.
Starting Julia...
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.0.1 (2018-09-29)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(JuliaPro_v1.0.1.1) pkg> st
    Status `J:\JuliaPro-1.0.1.1\pkgs-1.0.1.1\environments\JuliaPro_v1.0.1.1\Project.toml`
  [c52e3926] Atom v0.7.6
  [682c06a0] JSON v0.19.0
  [e5e0dc1b] Juno v0.5.3

(JuliaPro_v1.0.1.1) pkg> add Unitful
  Updating registry at `J:\JuliaPro-1.0.1.1\pkgs-1.0.1.1\registries\JuliaPro`
  Updating git-repo `https://pkg.juliacomputing.com/registry/JuliaPro`
ERROR: The following package names could not be resolved:
 * Unitful (not found in project, manifest or registry)
Please specify by known `name=uuid`.

(JuliaPro_v1.0.1.1) pkg>

Use:

JuliaPro-v1.0.1.1

Windows 10 - x64


#4

Apparently JuliaPro does not come with the General package registry, so you only have access to a subset of packages.


#5

Yes, JuliaRun uses a smaller registry of supported packages. We do need to

a) document this better
b) document the list of packages
c) document a way to switching to the General registry.

All of this is forthcoming. Apologies for the trouble, but we wanted to get the bits out while we round out the documentation around it.

Regards

Avik


Unsatisfiable requirements detected. And now?
#6

Where does the Julia Computing registry live?


#7

So can I change the Julia_Pkg_Server in JuliaPro?


#8

It appears that you can switch to the General registry in JuliaPro by deleting the following folder:

C:\Users\Name\AppData\Local\JuliaPro-1.0.1.1\pkgs-1.0.1.1\registries

Next time you use add <package> it will clone the General registry before attempting to install the requested package.


#9

It really, really, really, really would be a good idea to flag the specialist package registry to Juliapro users. I have just spent half a day wondering what had gone wrong.

I am a bit bewildered as to what the logic for a different registry is?


#10

Everytime I see the headline Julia 1.0.1.1 I think there has been a new minor-minor release of Julia. Then I realize it’s just JuliaPro.