JuliaLang / julia

The Julia Programming Language
https://julialang.org/
MIT License
45.59k stars 5.48k forks source link

Pkg.update() fails using fresh install (2014-07-22 23:47 UTC) #7707

Closed pkoppstein closed 9 years ago

pkoppstein commented 10 years ago
$ date
Wed Jul 23 14:28:44 EDT 2014

$ uname -a
Darwin Mac-mini.local 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun  3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64

$ ./julia
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "help()" to list help topics
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.3.0-rc1+136 (2014-07-22 23:47 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit 24b2363* (0 days old master)
|__/                   |  x86_64-apple-darwin13.3.0

julia> Pkg.update()
INFO: Updating METADATA...
INFO: Cloning cache of Clustering from git://github.com/JuliaStats/Clustering.jl.git
INFO: Cloning cache of ICU from git://github.com/nolta/ICU.jl.git
INFO: Cloning cache of Devectorize from git://github.com/lindahua/Devectorize.jl.git
INFO: Cloning cache of NHST from git://github.com/johnmyleswhite/NHST.jl.git
INFO: Cloning cache of NumericExtensions from git://github.com/lindahua/NumericExtensions.jl.git
INFO: Cloning cache of ClusterManagers from git://github.com/nlhepler/ClusterManagers.jl.git
INFO: Cloning cache of JSON from git://github.com/JuliaLang/JSON.jl.git
INFO: Cloning cache of Calculus from git://github.com/johnmyleswhite/Calculus.jl.git
INFO: Cloning cache of DataFrames from git://github.com/JuliaStats/DataFrames.jl.git
INFO: Cloning cache of Distributions from git://github.com/JuliaStats/Distributions.jl.git
INFO: Cloning cache of Calendar from git://github.com/nolta/Calendar.jl.git
INFO: Cloning cache of Stats from git://github.com/JuliaStats/Stats.jl.git
INFO: Cloning cache of UTF16 from git://github.com/nolta/UTF16.jl.git
INFO: Cloning cache of GZip from git://github.com/JuliaLang/GZip.jl.git
INFO: Cloning cache of RDatasets from git://github.com/johnmyleswhite/RDatasets.jl.git
WARNING: unknown Stats commit 8208e29a, metadata may be ahead of package cache
WARNING: unknown Stats commit 5113ce60, metadata may be ahead of package cache
INFO: Computing changes...
INFO: Cloning cache of ArrayViews from git://github.com/lindahua/ArrayViews.jl.git
INFO: Cloning cache of BinDeps from git://github.com/JuliaLang/BinDeps.jl.git
INFO: Cloning cache of DataArrays from git://github.com/JuliaStats/DataArrays.jl.git
INFO: Cloning cache of PDMats from git://github.com/JuliaStats/PDMats.jl.git
INFO: Cloning cache of Reexport from git://github.com/simonster/Reexport.jl.git
INFO: Cloning cache of SortingAlgorithms from git://github.com/JuliaLang/SortingAlgorithms.jl.git
INFO: Cloning cache of StatsBase from git://github.com/JuliaStats/StatsBase.jl.git
INFO: Cloning cache of URIParser from git://github.com/Keno/URIParser.jl.git
INFO: Installing ArrayViews v0.4.6
INFO: Installing BinDeps v0.2.14
INFO: Upgrading Calculus: v0.1.1 => v0.1.4
INFO: Upgrading Calendar: v0.3.3 => v0.4.2
INFO: Upgrading ClusterManagers: v0.0.0- => v0.0.2
INFO: Upgrading Clustering: v0.2.1 => v0.2.6
INFO: Installing DataArrays v0.2.0
INFO: Upgrading DataFrames: v0.3.8 => v0.5.7
INFO: Upgrading Distance: v0.2.1 => v0.4.0
INFO: Rolling back DataFrames from v0.5.7 to v0.3.8
INFO: Rolling back install of DataArrays
INFO: Rolling back Clustering from v0.2.6 to v0.2.1
INFO: Rolling back ClusterManagers from v0.0.2 to v0.0.0-
SystemError("opening file METADATA/ClusterManagers/versions/0.0.0-/sha1",2)INFO: Rolling back Calendar from v0.4.2 to v0.3.3
INFO: Rolling back Calculus from v0.1.4 to v0.1.1
INFO: Rolling back install of BinDeps
INFO: Rolling back install of ArrayViews
ERROR: opening file METADATA/ClusterManagers/versions/0.0.0-/sha1: No such file or directory
 in open at ./iostream.jl:117
 in open at ./iostream.jl:135
 in readall at io.jl:247
 in readstrip at pkg/read.jl:6
 in sha1 at pkg/read.jl:9
 in resolve at ./pkg/entry.jl:9
 in update at ./pkg/entry.jl:278
 in anonymous at pkg/dir.jl:28
 in cd at ./file.jl:20
 in __cd#226__ at ./pkg/dir.jl:28
 in update at ./pkg.jl:41

julia> 
pkoppstein commented 10 years ago

Julia said "Please file a bug" so here are the details:

$ ./julia
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "help()" to list help topics
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.3.0-rc1+136 (2014-07-22 23:47 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit 24b2363* (0 days old master)
|__/                   |  x86_64-apple-darwin13.3.0

julia> Pkg.rm("ClusterManagers")
WARNING: unknown Stats commit 8208e29a, metadata may be ahead of package cache
WARNING: unknown Stats commit 5113ce60, metadata may be ahead of package cache
INFO: Installing ArrayViews v0.4.6
INFO: Installing BinDeps v0.2.14
INFO: Upgrading Calculus: v0.1.1 => v0.1.4
INFO: Upgrading Calendar: v0.3.3 => v0.4.2
INFO: Upgrading Clustering: v0.2.1 => v0.2.6
INFO: Installing DataArrays v0.2.0
INFO: Upgrading DataFrames: v0.3.8 => v0.5.7
INFO: Upgrading Distance: v0.2.1 => v0.4.0
INFO: Rolling back DataFrames from v0.5.7 to v0.3.8
INFO: Rolling back install of DataArrays
INFO: Rolling back Clustering from v0.2.6 to v0.2.1
INFO: Rolling back Calendar from v0.4.2 to v0.3.3
INFO: Rolling back Calculus from v0.1.4 to v0.1.1
INFO: Rolling back install of BinDeps
INFO: Rolling back install of ArrayViews
ERROR: Distance: fetch failed to get commit 9bd05a6b0b, please file a bug
 in fetch at pkg/write.jl:15
 in update at pkg/write.jl:36
 in resolve at ./pkg/entry.jl:419
 in edit at pkg/entry.jl:24
 in rm at pkg/entry.jl:74
 in anonymous at pkg/dir.jl:28
 in cd at ./file.jl:20
 in __cd#226__ at ./pkg/dir.jl:28
 in rm at pkg.jl:19

julia> 
jiahao commented 10 years ago

I've never seen Pkg.update try to upgrade a package and then roll it back to the original version in the same step.

pkoppstein commented 10 years ago

Just to be clear: "fresh install" refers to Julia itself. The directory ~/.julia was retained.

jakebolewski commented 9 years ago

Closing this. Feel free to reopen if this is still an issue.