Coder Social home page Coder Social logo

Comments (4)

carlobaldassi avatar carlobaldassi commented on May 27, 2024

I can't reproduce this. It's possible that you have some fixed package that holds back ArgParse to version 0.4.0 or lower. What is the version of Compat that you have installed, for example? (Pkg.status("Compat")).

from argparse.jl.

karatedog avatar karatedog commented on May 27, 2024

Compat exists, but I did not install it myself directly (I don't know how the package manager works)

julia> Pkg.status("Compat")
 - Compat                        0.4.5+             526a5f5c

I have installed a fresh 0.6.3 (https://julialang-s3.julialang.org/bin/linux/x64/0.6/julia-0.6.3-linux-x86_64.tar.gz), and haven't installed or removed packages until I wanted to install IJulia and did:
julia> Pkg.add("IJulia")
This was the first time I encountered the error message.

Long error message (I should have put it here earlier):

julia> Pkg.update()
INFO: Updating METADATA...
INFO: Updating Options master...
INFO: Computing changes...
ERROR: ArgParse can't be installed because it has no versions that support 0.6.3 of julia. You may need to update METADATA by running `Pkg.update()`
Stacktrace:
 [1] resolve(::Dict{String,Base.Pkg.Types.VersionSet}, ::Dict{String,Dict{VersionNumber,Base.Pkg.Types.Available}}, ::Dict{String,Tuple{VersionNumber,Bool}}, ::Dict{String,Base.Pkg.Types.Fixed}, ::Dict{String,VersionNumber}, ::Set{String}) at ./pkg/entry.jl:488
 [2] update(::String, ::Set{String}) at ./pkg/entry.jl:461
 [3] (::Base.Pkg.Dir.##4#7{Array{Any,1},Base.Pkg.Entry.#update,Tuple{String,Set{String}}})() at ./pkg/dir.jl:36
 [4] cd(::Base.Pkg.Dir.##4#7{Array{Any,1},Base.Pkg.Entry.#update,Tuple{String,Set{String}}}, ::String) at ./file.jl:70
 [5] #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{Any,N} where N) at ./pkg/dir.jl:36
 [6] update() at ./pkg/pkg.jl:228

from argparse.jl.

carlobaldassi avatar carlobaldassi commented on May 27, 2024

You are using a very old version of Compat and it's not being upgraded since you might have checked it out, or modified it. This acts as a hard-constraint for all other packages, and in particular doesn't allow the package manager to even consider newer versions of ArgParse. In any case, you could try Pkg.free("Compat") and see if that works. If not, you could go to the directory .julia/v0.6/Compat and reset the git repository, and then try to Pkg.free it again.

from argparse.jl.

karatedog avatar karatedog commented on May 27, 2024

Thank you, Pkg.free("Compat") worked.

julia> Pkg.free("Compat")
INFO: Freeing Compat
INFO: Cloning cache of DataStructures from https://github.com/JuliaCollections/DataStructures.jl.git
INFO: Cloning cache of Missings from https://github.com/JuliaData/Missings.jl.git
INFO: Cloning cache of NaNMath from https://github.com/mlubin/NaNMath.jl.git
INFO: Cloning cache of SortingAlgorithms from https://github.com/JuliaCollections/SortingAlgorithms.jl.git
INFO: Cloning cache of StatsBase from https://github.com/JuliaStats/StatsBase.jl.git
INFO: Upgrading BinDeps: v0.3.15 => v0.8.8
INFO: Upgrading Cairo: v0.2.31 => v0.5.2
INFO: Upgrading ColorTypes: v0.2.12 => v0.6.7
INFO: Upgrading Colors: v0.6.4 => v0.8.2
INFO: Upgrading Compat: v0.4.5 => v0.69.0
INFO: Installing DataStructures v0.8.3
INFO: Upgrading FixedPointNumbers: v0.1.2 => v0.4.6
INFO: Upgrading Formatting: v0.3.0 => v0.3.2
INFO: Upgrading Graphics: v0.1.3 => v0.3.0
INFO: Upgrading IniFile: v0.2.4 => v0.4.0
INFO: Installing Missings v0.2.10
INFO: Installing NaNMath v0.3.1
INFO: Upgrading SHA: v0.5.3 => v0.5.7
INFO: Installing SortingAlgorithms v0.2.1
INFO: Installing StatsBase v0.23.1
INFO: Upgrading Tk: v0.3.3 => v0.5.2
INFO: Upgrading URIParser: v0.1.3 => v0.3.1
INFO: Upgrading Winston: v0.11.13 => v0.13.2
INFO: Removing Dates v0.4.4
INFO: Building Cairo
INFO: Building Tk
julia> Pkg.update()
INFO: Updating METADATA...
INFO: Updating Options master...
INFO: Computing changes...
INFO: Upgrading DataStructures: v0.8.3 => v0.8.4
julia> Pkg.add("ArgParse")
INFO: Installing ArgParse v0.6.0
INFO: Installing TextWrap v0.3.0
INFO: Package database updated

from argparse.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.