Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CredentialsHandler not found in a registry (visualize.ipynb) #1

Open
Alexander-Barth opened this issue Oct 1, 2019 · 8 comments
Open

Comments

@Alexander-Barth
Copy link

Alexander-Barth commented Oct 1, 2019

I am try to follow the Knet lecture visualize.ipynb, but the installation (very first cell):

import Pkg; Pkg.add(Pkg.PackageSpec(url="https://github.com/JuliaComputing/JuliaAcademyData.jl"))
using JuliaAcademyData; activate("World of machine learning")

fails with

  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
   Cloning git-repo `https://github.com/JuliaComputing/JuliaAcademyData.jl`
  Updating git-repo `https://github.com/JuliaComputing/JuliaAcademyData.jl`ng: [===============>                         ]  35.6 %Fetching: [====================>                    ]  48.9 %Fetching: [=====================>                   ]  52.4 %Fetching: [=======================>                 ]  55.4 %Fetching: [========================>                ]  58.4 %Fetching: [========================>                ]  59.7 %Fetching: [=========================>               ]  61.4 %Fetching: [=========================>               ]  61.8 %Fetching: [===========================>             ]  66.5 %
  Updating git-repo `https://github.com/JuliaComputing/JuliaAcademyData.jl`
 Resolving package versions...
  Updating `/mnt/data1/abarth/.julia/environments/v1.2/Project.toml`
  [18b7da76] + JuliaAcademyData v0.1.0 #master (https://github.com/JuliaComputing/JuliaAcademyData.jl)
  Updating `/mnt/data1/abarth/.julia/environments/v1.2/Manifest.toml`
  [18b7da76] + JuliaAcademyData v0.1.0 #master (https://github.com/JuliaComputing/JuliaAcademyData.jl)

┌ Info: Precompiling JuliaAcademyData [18b7da76-0988-5e3b-acac-6290be3a708f]
└ @ Base loading.jl:1242

Activating environment at `~/.julia/packages/JuliaAcademyData/II8LR/courses/World of machine learning/Project.toml`

Package CredentialsHandler [864e158e-919d-11e8-198e-cfe890ec4681] not found in a registry.

Stacktrace:
 [1] pkgerror(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Pkg/src/Types.jl:112
 [2] check_registered(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Pkg/src/Operations.jl:924
 [3] #instantiate#81(::Nothing, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(Pkg.API.instantiate), ::Pkg.Types.Context) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Pkg/src/API.jl:480
 [4] instantiate at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Pkg/src/API.jl:461 [inlined]
 [5] #instantiate#80 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Pkg/src/API.jl:458 [inlined]
 [6] instantiate at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Pkg/src/API.jl:458 [inlined]
 [7] activate(::String) at /home/abarth/.julia/packages/JuliaAcademyData/II8LR/src/JuliaAcademyData.jl:30
 [8] top-level scope at In[1]:2

The package is referenced in the manifest file:
https://github.com/JuliaComputing/JuliaAcademyData.jl/blob/master/courses/World%20of%20machine%20learning/Manifest.toml#L148

Could it be that the package has been deleted and that the Manifest file has to be updated?

I am using Julia 1.2.0 on Linux.

@logankilpatrick
Copy link
Member

Hey @Alexander-Barth this should be resolved now. I tested on the LTS release v1.0.5 and the Current stable release 1.3.1 and the above commands worked. Please ping me here if this continues to be an issue and I will re-open this issue and help.

@logankilpatrick
Copy link
Member

Thanks for reporting!

@ayadlin
Copy link

ayadlin commented Mar 19, 2020

I am actually having the same problem on julia 1.3.1.

@logankilpatrick
Copy link
Member

I'll check into this!

@logankilpatrick
Copy link
Member

Please ping me if I forget to follow up

@ayadlin
Copy link

ayadlin commented Mar 19, 2020 via email

@ayadlin
Copy link

ayadlin commented Mar 20, 2020

I noticed if I remove TOML and Credentials from Manifest.toml at least I can get through installations... and then I need to re-add some packages.

@davidstreader
Copy link

Just starting out learning Julia and tryoing to follow the Flux tutorial on https://juliaacademy.com/courses/526449/lectures/9600470 But:

import Pkg; Pkg.add(Pkg.PackageSpec(url="https://github.com/JuliaComputing/JuliaAcademyData.jl"))
using JuliaAcademyData; activate("Deep learning with Flux")

Fails with

┌ Warning: The active manifest file is an older format with no julia version entry. Dependencies may have been resolved with a different julia version.
└ @ nothing /Users/dstr/.julia/packages/JuliaAcademyData/3C2GY/courses/Deep learning with Flux/Manifest.toml:0
Precompiling project...
  ✓ RangeArrays
  ✓ NaNMath
  ✓ OrderedCollections
  ✓ Compat
  ✓ Requires
  ✓ Distances
  ✓ CUDAapi
  ✓ Parsers
  ✓ InvertedIndices
  ✓ AbstractFFTs
  ✓ FillArrays
  ✓ Reexport
  ✓ IndirectArrays
  ✓ FixedPointNumbers
  ✓ URIParser
  ✓ RecipesBase
  ✓ AbstractTrees
  ✓ IntervalSets
  ✓ DataAPI
  ✓ Adapt
  ✓ FilePathsBase
  ✓ WoodburyMatrices
  ✓ TimerOutputs
  ✓ CommonSubexpressions
  ✓ CustomUnitRanges
  ✓ IterTools
  ✓ ComputationalResources
  ✓ Showoff
  ✓ VersionParsing
  ✓ CEnum
  ✓ MappedArrays
  ✓ TableTraits
  ✓ OffsetArrays
  ✓ FFMPEG
  ✓ GR
  ✓ Ratios
  ✓ TranscodingStreams
  ✓ JSON
  ✓ StaticArrays
  ✓ WeakRefStrings
  ✗ ZipFile
  ✓ Missings
  ✓ BinDeps
  ✓ PooledArrays
  ✓ AxisAlgorithms
  ✗ NNlib
  ✓ DataStructures
  ✓ PaddedViews
  ✓ IdentityRanges
  ✓ Tables
  ✓ AxisArrays
  ✓ TiledIteration
  ✓ CatIndices
  ✓ GPUArrays
  ✓ DiffResults
  ✓ Contour
  ✗ CodecZlib
  ✓ FileIO
  ✗ Conda
  ✓ SortingAlgorithms
  ✓ Rotations
  ✗ SpecialFunctions
  ✓ Interpolations
  ✓ DiffRules
  ✗ FFTW
  ✓ MacroTools
  ✓ CoordinateTransformations
  ✓ StatsBase
  ✓ ZygoteRules
  ✓ Media
  ✓ ColorTypes
  ✓ Juno
  ✓ LLVM
  ✓ IRTools
  ✗ CUDAdrv
  ✓ CategoricalArrays
  ✓ SimpleTraits
  ✗ FFTViews
  ✗ ForwardDiff
  ✓ Colors
  ✓ GeometryTypes
  ✓ Graphics
  ✗ Zygote
  ✓ ImageCore
  ✓ PlotUtils
  ✗ ColorVectorSpace
  ✓ DataFrames
  ✓ ImageMorphology
  ✓ ImageShow
  ✓ ImageAxes
  ✗ CUDAnative
  ✓ CSV
  ✓ PlotThemes
  ✗ ImageDistances
  ✗ ImageTransformations
  ✗ ImageMetadata
  ✗ ImageFiltering
  ✗ CuArrays
  ✗ Flux
  ✗ Images
  ✓ Plots
  82 dependencies successfully precompiled in 64 seconds (4 already precompiled)
  3 dependencies precompiled but different versions are currently loaded. Restart julia to access the new versions
  19 dependencies errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the packages

and import Pkg; Pkg.precompile() tells me

The following 2 direct dependencies failed to precompile:

Flux [587475ba-b771-5e3f-ad9e-33799f191a9c]

Failed to precompile Flux [587475ba-b771-5e3f-ad9e-33799f191a9c] to /Users/dstr/.julia/compiled/v1.7/Flux/jl_ca5DDX.
ERROR: LoadError: UndefVarError: __source__ not defined
Stacktrace:

Alas I do not have the skill to make use of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants