ChifiSource / Olive.jl

pure julia notebooks
MIT License
152 stars 6 forks source link

basic installation #74

Closed EthanRLeonard closed 1 year ago

EthanRLeonard commented 1 year ago

The basic installation steps don't seem to work for me. (I'm using julia 1.8.5). This is from a fresh REPL, and I don't run into any problems with installing Toolips or other packages. Am I missing something?

julia> using Pkg

julia> Pkg.add("Olive")
    Updating registry at `C:\Users\ethan\.julia\registries\General`
    Updating git-repo `https://github.com/JuliaRegistries/General.git`
ERROR: The following package names could not be resolved:
 * Olive (not found in project, manifest or registry)
   Suggestions: PlutoLiveExport TimeToLive SmoothLivePlot CollectiveSpins
Stacktrace:
  [1] pkgerror(msg::String)
    @ Pkg.Types C:\Users\ethan\AppData\Local\Programs\julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\Types.jl:67
  [2] ensure_resolved(ctx::Pkg.Types.Context, manifest::Pkg.Types.Manifest, pkgs::Vector{Pkg.Types.PackageSpec}; registry::Bool)
    @ Pkg.Types C:\Users\ethan\AppData\Local\Programs\julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\Types.jl:952
  [3] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::Base.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})
    @ Pkg.API C:\Users\ethan\AppData\Local\Programs\julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\API.jl:264
  [4] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Pkg.API C:\Users\ethan\AppData\Local\Programs\julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\API.jl:156
  [5] add(pkgs::Vector{Pkg.Types.PackageSpec})
    @ Pkg.API C:\Users\ethan\AppData\Local\Programs\julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\API.jl:145
  [6] #add#27
    @ C:\Users\ethan\AppData\Local\Programs\julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\API.jl:144 [inlined]
  [7] add
    @ C:\Users\ethan\AppData\Local\Programs\julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\API.jl:144 [inlined]
  [8] #add#26
    @ C:\Users\ethan\AppData\Local\Programs\julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\API.jl:143 [inlined]
    @ REPL[3]:1
emmaccode commented 1 year ago

This is because you are using Windows with 0.0.85 (I am a Linux user and this build was not tested for windows.) 0.0.9 is our current in-progress build on Unstable. This one IS tested and works fine with Windows. Solves a lot of the setup problems that the (crazy) design of the containers in this thing require. We are getting close to completing this release, though there could be some issues. If you would like to add it...

using Pkg
Pkg.add(url = "https://GitHub.com/ChifiSource/Olive.jl", rev = "Unstable")

Or pkg repl (faster)

julia> ]
pkg> add https://github.com/ChifiSource/Olive.jl#Unstable
julia> using Olive; Olive.start()

Let me know if this is good for you and this can be closed !

EthanRLeonard commented 1 year ago

That makes sense. It seems awesome and I'm excited to try it out. Unfortunately, running the ] add https://github.com/ChifiSource/Olive.jl#Unstable command gave me the following error, also on a fresh REPL. Cliff notes: I got an unsatisfiable requirements error, then did a rm HTTP, then tried adding it again, and got the same error again, with the exception of this line: ├─restricted to versions * by an explicit requirement, leaving only versions: 0.6.10-1.9.8.

The whole printout of both commands is below. Any advice on how to fix? (Btw, if it's likely that it will just go away when version 1.9 is ready, don't make yourself crazy, and feel free to close this now. I don't want to drain your time with an issue that will go away by itself. Thanks for doing awesome work.)

julia> using Pkg
(@v1.9) pkg> add https://github.com/ChifiSource/Olive.jl#Unstable
     Cloning git-repo `https://github.com/ChifiSource/Olive.jl`
    Updating git-repo `https://github.com/ChifiSource/Olive.jl`
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package HTTP [cd3eb016]:
 HTTP [cd3eb016] log:
 ├─possible versions are: 0.6.10-1.9.8 or uninstalled
 ├─restricted to versions * by an explicit requirement, leaving only versions: 0.6.10-1.9.8
 ├─restricted by compatibility requirements with Toolips [a47e2ad8] to versions: [0.9.17, 1.5.0-1.9.8]
 │ └─Toolips [a47e2ad8] log:
 │   ├─possible versions are: 0.0.9-0.2.4 or uninstalled
 │   ├─restricted to versions * by Olive [724ecaf6], leaving only versions: 0.0.9-0.2.4
 │   │ └─Olive [724ecaf6] log:
 │   │   ├─possible versions are: 0.0.9 or uninstalled
 │   │   └─Olive [724ecaf6] is fixed to version 0.0.9
 │   ├─restricted by compatibility requirements with ToolipsSession [2fe55384] to versions: 0.1.0-0.2.4
 │   │ └─ToolipsSession [2fe55384] log:
 │   │   ├─possible versions are: 0.1.0-0.3.3 or uninstalled
 │   │   ├─restricted to versions * by Olive [724ecaf6], leaving only versions: 0.1.0-0.3.3
 │   │   │ └─Olive [724ecaf6] log: see above
 │   │   └─restricted by compatibility requirements with ToolipsDefaults [1710be6b] to versions: 0.3.0-0.3.3
 │   │     └─ToolipsDefaults [1710be6b] log:
 │   │       ├─possible versions are: 0.1.0-0.1.1 or uninstalled
 │   │       └─restricted to versions * by Olive [724ecaf6], leaving only versions: 0.1.0-0.1.1
 │   │         └─Olive [724ecaf6] log: see above
 │   ├─restricted by compatibility requirements with ToolipsBase64 [35c70e29] to versions: 0.1.3-0.2.4
 │   │ └─ToolipsBase64 [35c70e29] log:
 │   │   ├─possible versions are: 0.1.0-0.1.4 or uninstalled
 │   │   ├─restricted to versions * by Olive [724ecaf6], leaving only versions: 0.1.0-0.1.4
 │   │   │ └─Olive [724ecaf6] log: see above
 │   │   └─restricted by compatibility requirements with Toolips [a47e2ad8] to versions: 0.1.1-0.1.4 or uninstalled, leaving only versions: 0.1.1-0.1.4
 │   │     └─Toolips [a47e2ad8] log: see above
 │   └─restricted by compatibility requirements with ToolipsDefaults [1710be6b] to versions: 0.2.3-0.2.4
 │     └─ToolipsDefaults [1710be6b] log: see above
 ├─restricted by compatibility requirements with Toolips [a47e2ad8] to versions: 1.5.0-1.9.8
 │ └─Toolips [a47e2ad8] log: see above
 └─restricted by compatibility requirements with JuliaWebAPI [480116ec] to versions: 0.8.0-0.9.17 — no versions left
   └─JuliaWebAPI [480116ec] log:
     ├─possible versions are: 0.4.0-0.6.3 or uninstalled
     ├─restricted by compatibility requirements with HTTP [cd3eb016] to versions: 0.6.3 or uninstalled
     │ └─HTTP [cd3eb016] log: see above
     └─restricted by compatibility requirements with JuliaInXL [9600883c] to versions: 0.6.0-0.6.3, leaving only versions: 0.6.3
       └─JuliaInXL [9600883c] log:
         ├─possible versions are: 0.0.2-1.2.0 or uninstalled
         ├─restricted to versions * by an explicit requirement, leaving only versions: 0.0.2-1.2.0
         └─restricted by compatibility requirements with Reexport [189a3867] to versions: 1.2.0 or uninstalled, leaving only versions: 1.2.0
           └─Reexport [189a3867] log:
             ├─possible versions are: 0.2.0-1.2.2 or uninstalled
             └─restricted by compatibility requirements with LinearSolve [7ed4a6bd] to versions: 1.0.0-1.2.2
               └─LinearSolve [7ed4a6bd] log:
                 ├─possible versions are: 0.1.0-2.3.0 or uninstalled
                 └─restricted to versions * by an explicit requirement, leaving only versions: 0.1.0-2.3.0

(@v1.9) pkg> rm HTTP
    Updating `C:\Users\ethan\.julia\environments\v1.9\Project.toml`
  [cd3eb016] - HTTP v0.9.17
  No Changes to `C:\Users\ethan\.julia\environments\v1.9\Manifest.toml`

(@v1.9) pkg> add https://github.com/ChifiSource/Olive.jl#Unstable
    Updating git-repo `https://github.com/ChifiSource/Olive.jl`
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package HTTP [cd3eb016]:
 HTTP [cd3eb016] log:
 ├─possible versions are: 0.6.10-1.9.8 or uninstalled
 ├─restricted by compatibility requirements with Toolips [a47e2ad8] to versions: [0.9.17, 1.5.0-1.9.8]
 │ └─Toolips [a47e2ad8] log:
 │   ├─possible versions are: 0.0.9-0.2.4 or uninstalled
 │   ├─restricted to versions * by Olive [724ecaf6], leaving only versions: 0.0.9-0.2.4
 │   │ └─Olive [724ecaf6] log:
 │   │   ├─possible versions are: 0.0.9 or uninstalled
 │   │   └─Olive [724ecaf6] is fixed to version 0.0.9
 │   ├─restricted by compatibility requirements with ToolipsSession [2fe55384] to versions: 0.1.0-0.2.4
 │   │ └─ToolipsSession [2fe55384] log:
 │   │   ├─possible versions are: 0.1.0-0.3.3 or uninstalled
 │   │   ├─restricted to versions * by Olive [724ecaf6], leaving only versions: 0.1.0-0.3.3
 │   │   │ └─Olive [724ecaf6] log: see above
 │   │   └─restricted by compatibility requirements with ToolipsDefaults [1710be6b] to versions: 0.3.0-0.3.3
 │   │     └─ToolipsDefaults [1710be6b] log:
 │   │       ├─possible versions are: 0.1.0-0.1.1 or uninstalled
 │   │       └─restricted to versions * by Olive [724ecaf6], leaving only versions: 0.1.0-0.1.1
 │   │         └─Olive [724ecaf6] log: see above
 │   ├─restricted by compatibility requirements with ToolipsBase64 [35c70e29] to versions: 0.1.3-0.2.4
 │   │ └─ToolipsBase64 [35c70e29] log:
 │   │   ├─possible versions are: 0.1.0-0.1.4 or uninstalled
 │   │   ├─restricted to versions * by Olive [724ecaf6], leaving only versions: 0.1.0-0.1.4
 │   │   │ └─Olive [724ecaf6] log: see above
 │   │   └─restricted by compatibility requirements with Toolips [a47e2ad8] to versions: 0.1.1-0.1.4 or uninstalled, leaving only versions: 0.1.1-0.1.4
 │   │     └─Toolips [a47e2ad8] log: see above
 │   └─restricted by compatibility requirements with ToolipsDefaults [1710be6b] to versions: 0.2.3-0.2.4
 │     └─ToolipsDefaults [1710be6b] log: see above
 ├─restricted by compatibility requirements with Toolips [a47e2ad8] to versions: 1.5.0-1.9.8
 │ └─Toolips [a47e2ad8] log: see above
 └─restricted by compatibility requirements with JuliaWebAPI [480116ec] to versions: 0.8.0-0.9.17 — no versions left
   └─JuliaWebAPI [480116ec] log:
     ├─possible versions are: 0.4.0-0.6.3 or uninstalled
     └─restricted by compatibility requirements with JuliaInXL [9600883c] to versions: 0.6.0-0.6.3
       └─JuliaInXL [9600883c] log:
         ├─possible versions are: 0.0.2-1.2.0 or uninstalled
         ├─restricted to versions * by an explicit requirement, leaving only versions: 0.0.2-1.2.0
         └─restricted by compatibility requirements with Reexport [189a3867] to versions: 1.2.0 or uninstalled, leaving only versions: 1.2.0
           └─Reexport [189a3867] log:
             ├─possible versions are: 0.2.0-1.2.2 or uninstalled
             └─restricted by compatibility requirements with LinearSolve [7ed4a6bd] to versions: 1.0.0-1.2.2
               └─LinearSolve [7ed4a6bd] log:
                 ├─possible versions are: 0.1.0-2.3.0 or uninstalled
                 └─restricted to versions * by an explicit requirement, leaving only versions: 0.1.0-2.3.0
77377 commented 1 year ago

hi @emmettgb

Or pkg repl (faster)

julia> ]
pkg> add https://github.com/ChifiSource/Olive.jl#Unstable
julia> using Olive; Olive.start()

Let me know if this is good for you and this can be closed !

Hi, I'm on v1.9.2 and ran into the same problem as @EthanRLeonard did. However installing it directly from github with the codesnippet above worked just fine. Got Olive running. Thought you might wannna know. Cheers!

emmaccode commented 1 year ago

hi @emmettgb

Or pkg repl (faster)

julia> ]
pkg> add https://github.com/ChifiSource/Olive.jl#Unstable
julia> using Olive; Olive.start()

Let me know if this is good for you and this can be closed !

Hi, I'm on v1.9.2 and ran into the same problem as @EthanRLeonard did. However installing it directly from github with the codesnippet above worked just fine. Got Olive running. Thought you might wannna know. Cheers!

Figured that should work, thanks. @EthanRLeonard you might want to try this in a new environment. (What it seems is happening is you have another package that requires a different version of HTTP to Toolips -- two different versions cannot be loaded at once of course.

emmaccode commented 1 year ago

Is this good to be closed, @EthanRLeonard ? :)

EthanRLeonard commented 1 year ago

Yup. That issue is resolved.

On Wed, Jul 19, 2023, 13:51 emmy @.***> wrote:

Is this good to be closed, @EthanRLeonard https://github.com/EthanRLeonard ? :)

— Reply to this email directly, view it on GitHub https://github.com/ChifiSource/Olive.jl/issues/74#issuecomment-1642587881, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZMPDEQXUSNCJXOFS7RKX2DXRAUERANCNFSM6AAAAAAZ4345LM . You are receiving this because you were mentioned.Message ID: @.***>