sisl / tufte_algorithms_book

A template for textbooks in the same style as Algorithms for Optimization
352 stars 66 forks source link

working on Julia 1.2? #13

Closed AshtonSBradley closed 5 years ago

AshtonSBradley commented 5 years ago

not sure if this is expected, but on Julia 1.2

gink:tufte_algorithms_book abradley$ julia install_pkgs.jl REQUIRE
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
 Resolving package versions...
  Updating `~/.julia/environments/v1.2/Project.toml`
  [92933f4c] + ProgressMeter v1.0.0
  Updating `~/.julia/environments/v1.2/Manifest.toml`
  [92933f4c] ↑ ProgressMeter v0.9.0 ⇒ v1.0.0
 Resolving package versions...
 Installed Suppressor ─ v0.1.1
  Updating `~/.julia/environments/v1.2/Project.toml`
  [fd094767] + Suppressor v0.1.1
  Updating `~/.julia/environments/v1.2/Manifest.toml`
  [fd094767] + Suppressor v0.1.1

[ Info: add and build julia 1.1
Progress:   9%|███▊                                     |  ETA: 0:00:06
[ Info: add and build Colors
ERROR: LoadError: MethodError: no method matching iterate(::Nothing)
Closest candidates are:
  iterate(!Matched::Core.SimpleVector) at essentials.jl:604
  iterate(!Matched::Core.SimpleVector, !Matched::Any) at essentials.jl:604
  iterate(!Matched::ExponentialBackOff) at error.jl:214
  ...
Stacktrace:
 [1] first(::Nothing) at ./abstractarray.jl:342
 [2] |>(::Nothing, ::typeof(first)) at ./operators.jl:854
 [3] macro expansion at /Users/abradley/Dropbox/tufte_algorithms_book/install_pkgs.jl:41 [inlined]
 [4] macro expansion at /Users/abradley/.julia/packages/ProgressMeter/NIpPa/src/ProgressMeter.jl:606 [inlined]
 [5] top-level scope at /Users/abradley/Dropbox/tufte_algorithms_book/install_pkgs.jl:30
 [6] include at ./boot.jl:328 [inlined]
 [7] include_relative(::Module, ::String) at ./loading.jl:1094
 [8] include(::Module, ::String) at ./Base.jl:31
 [9] exec_options(::Base.JLOptions) at ./client.jl:295
 [10] _start() at ./client.jl:464
in expression starting at /Users/abradley/Dropbox/tufte_algorithms_book/install_pkgs.jl:29
julia> versioninfo()
Julia Version 1.2.0
Commit c6da87ff4b (2019-08-20 00:03 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.6.0)
  CPU: Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)
Environment:
  JULIA_NUM_THREADS = 4
johnnychen94 commented 5 years ago

Looks like install-pkgs.jl is broken here. Can you try to install packages using the jlpkg tool?

jlpkg --project=@. add $(cat REQUIRE | grep -v julia)
AshtonSBradley commented 5 years ago

that worked, thanks!