Comments (4)
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.
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.
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.
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)
- Parsing failure with as_symbols=true and commands_are_required=false HOT 3
- Using arguments in the REPL HOT 3
- TagBot trigger issue HOT 6
- `required` arguments are called optional in help text HOT 3
- Parsing a numeric vector HOT 1
- Argument missing from parsed dict HOT 2
- First argument parsed incorrectly
- Make the "type:" and "default:" string automatically generated by `--help` optional
- Support nested options
- How to separate julia options? HOT 1
- ArgParse modifies global random state? HOT 2
- Required argument listed as optional in arg table for command HOT 1
- Allow default values convertible to arg_type
- Customize the handling of unrecognized options.
- Feature request: support REPL usage
- as_symbols not working on :_COMMAND_ entry HOT 3
- Idea to update `parse_item`? HOT 2
- Use constructors in addition to `convert` to parse unknown types
- Type conversion fails on valid input HOT 5
- Shell completion generation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from argparse.jl.