I just started using Julia and installed the FITSIO package. When loading it I get the following error
julia> using FITSIO
[ Info: Precompiling FITSIO [525bcba6-941b-5504-bd06-fd0dc1a4d2eb]
ERROR: LoadError: syntax: extra token "ImageHDU" after end of expression
Stacktrace:
[1] include at .\boot.jl:317 [inlined]
[2] include_relative(::Module, ::String) at .\loading.jl:1038
[3] include(::Module, ::String) at .\sysimg.jl:29
[4] top-level scope at none:2
[5] eval at .\boot.jl:319 [inlined]
[6] eval(::Expr) at .\client.jl:389
[7] top-level scope at .\none:3
in expression starting at C:\Users\romain\.julia\packages\FITSIO\WueGk\src\FITSIO.jl:54
ERROR: Failed to precompile FITSIO [525bcba6-941b-5504-bd06-fd0dc1a4d2eb] to C:\Users\romain\.julia\compiled\v1.0\FITSIO\mbga9.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] macro expansion at .\logging.jl:313 [inlined]
[3] compilecache(::Base.PkgId, ::String) at .\loading.jl:1184
[4] macro expansion at .\logging.jl:311 [inlined]
[5] _require(::Base.PkgId) at .\loading.jl:941
[6] require(::Base.PkgId) at .\loading.jl:852
[7] macro expansion at .\logging.jl:311 [inlined]
[8] require(::Module, ::Symbol) at .\loading.jl:834
I tried to remove and add again the FITSIO package, but I always get the same error. The stacktrace seems to go to line 54 of FITSIO.jl So here is the content of this file from line 46 to 57
import .Libcfitsio: libcfitsio,
fits_assert_ok,
fits_assert_isascii,
TYPE_FROM_BITPIX
# HDU Types
#compat abstract type HDU end
type ImageHDU <: HDU
fitsfile::FITSFile
ext::Int
end
Do you know how to make this package work?
Thanks :)
Here is the answer from the FITSIO developers:
The latest stable version of this package isn't compatible with Julia
1.0. This has been already fixed in the development version, but we haven't tagged a new version since then.
Remove FITSIO.jl with
pkg> rm FITSIO
pkg> update
pkg> add FITSIO
pkg> dev FITSIO
After the rm, make sure you don't have any FITSIO.jl leftover, then
you can reinstall and switch to the development version within the
package manager, without installing another package
It appears that Julia automatically fetched the wrong package with
add FITSIO
I solved the problem by forcing the download URL to be
add https://github.com/JuliaAstro/FITSIO.jl
Related
I am adding package "DataFrameMacros". This results in error:
ERROR: Unsatisfiable requirements detected for package Compat [34da2185]:
Compat [34da2185] log:
├─possible versions are: 1.0.0-4.4.0 or uninstalled
├─restricted by compatibility requirements with DataFrames [a93c6f00] to versions: 3.17.0-4.4.0
│ └─DataFrames [a93c6f00] log:
│ ├─possible versions are: 0.11.7-1.4.3 or uninstalled
│ ├─restricted to versions * by an explicit requirement, leaving only versions 0.11.7-1.4.3
│ └─restricted by compatibility requirements with DataFrameMacros [75880514] to versions: 1.0.0-1.4.3
│ └─DataFrameMacros [75880514] log:
│ ├─possible versions are: 0.1.0-0.4.0 or uninstalled
│ └─restricted to versions * by an explicit requirement, leaving only versions 0.1.0-0.4.0
└─restricted by compatibility requirements with Format [1fa38f19] to versions: 1.0.0-2.2.1 — no versions left
└─Format [1fa38f19] log:
├─possible versions are: 0.7.0-1.3.2 or uninstalled
└─restricted by compatibility requirements with BioStructures [de9282ab] to versions: 0.7.0-0.8.0
└─BioStructures [de9282ab] log:
├─possible versions are: 0.3.0-1.2.1 or uninstalled
└─restricted by compatibility requirements with Bio [3637df68] to versions: 0.3.0-0.4.0
└─Bio [3637df68] log:
├─possible versions are: 1.0.0-1.0.1 or uninstalled
└─restricted to versions * by an explicit requirement, leaving only versions 1.0.0-1.0.1
Stacktrace:
[1] propagate_constraints!(graph::Pkg.Resolve.Graph, sources::Set{Int64}; log_events::Bool)
# Pkg.Resolve ~/julia-1.7.0/share/julia/stdlib/v1.7/Pkg/src/Resolve/graphtype.jl:1063
[2] propagate_constraints! (repeats 2 times)
# ~/julia-1.7.0/share/julia/stdlib/v1.7/Pkg/src/Resolve/graphtype.jl:1000 [inlined]
[3] simplify_graph!(graph::Pkg.Resolve.Graph, sources::Set{Int64}; clean_graph::Bool)
# Pkg.Resolve ~/julia-1.7.0/share/julia/stdlib/v1.7/Pkg/src/Resolve/graphtype.jl:1519
[4] simplify_graph! (repeats 2 times)
# ~/julia-1.7.0/share/julia/stdlib/v1.7/Pkg/src/Resolve/graphtype.jl:1519 [inlined]
[5] resolve_versions!(env::Pkg.Types.EnvCache, registries::Vector{Pkg.Registry.RegistryInstance}, pkgs::Vector{Pkg.Types.PackageSpec}, julia_version::VersionNumber)
# Pkg.Operations ~/julia-1.7.0/share/julia/stdlib/v1.7/Pkg/src/Operations.jl:335
[6] targeted_resolve(env::Pkg.Types.EnvCache, registries::Vector{Pkg.Registry.RegistryInstance}, pkgs::Vector{Pkg.Types.PackageSpec}, preserve::Pkg.Types.PreserveLevel, julia_version::VersionNumber)
# Pkg.Operations ~/julia-1.7.0/share/julia/stdlib/v1.7/Pkg/src/Operations.jl:1154
[7] tiered_resolve(env::Pkg.Types.EnvCache, registries::Vector{Pkg.Registry.RegistryInstance}, pkgs::Vector{Pkg.Types.PackageSpec}, julia_version::VersionNumber)
# Pkg.Operations ~/julia-1.7.0/share/julia/stdlib/v1.7/Pkg/src/Operations.jl:1139
[8] _resolve(io::Base.TTY, env::Pkg.Types.EnvCache, registries::Vector{Pkg.Registry.RegistryInstance}, pkgs::Vector{Pkg.Types.PackageSpec}, preserve::Pkg.Types.PreserveLevel, julia_version::VersionNumber)
# Pkg.Operations ~/julia-1.7.0/share/julia/stdlib/v1.7/Pkg/src/Operations.jl:1160
[9] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}, new_git::Set{Base.UUID}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform)
# Pkg.Operations ~/julia-1.7.0/share/julia/stdlib/v1.7/Pkg/src/Operations.jl:1176
[10] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::Base.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})
# Pkg.API ~/julia-1.7.0/share/julia/stdlib/v1.7/Pkg/src/API.jl:268
[11] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
# Pkg.API ~/julia-1.7.0/share/julia/stdlib/v1.7/Pkg/src/API.jl:149
[12] add(pkgs::Vector{Pkg.Types.PackageSpec})
# Pkg.API ~/julia-1.7.0/share/julia/stdlib/v1.7/Pkg/src/API.jl:144
[13] #add#27
# ~/julia-1.7.0/share/julia/stdlib/v1.7/Pkg/src/API.jl:142 [inlined]
[14] add
# ~/julia-1.7.0/share/julia/stdlib/v1.7/Pkg/src/API.jl:142 [inlined]
[15] #add#26
# ~/julia-1.7.0/share/julia/stdlib/v1.7/Pkg/src/API.jl:141 [inlined]
[16] add(pkg::String)
# Pkg.API ~/julia-1.7.0/share/julia/stdlib/v1.7/Pkg/src/API.jl:141
[17] top-level scope
# REPL[1]:1
My packages status:
(#v1.7) pkg> status
Status `~/.julia/environments/v1.7/Project.toml`
[3637df68] Bio v1.0.1
[336ed68f] CSV v0.8.5
[159f3aea] Cairo v1.0.5
[8be319e6] Chain v0.5.0
[a93c6f00] DataFrames v0.21.8
[31c24e10] Distributions v0.25.45
[186bb1d3] Fontconfig v0.4.0
[c91e804a] Gadfly v1.3.4
[7073ff75] IJulia v1.23.2
[429524aa] Optim v0.15.3
[438e738f] PyCall v1.93.0
[d330b81b] PyPlot v2.10.0
[2913bbd2] StatsBase v0.33.14
[88034a9c] StringDistances v0.11.2
[10745b16] Statistics
I have read here Julia "Unsatisfiable requirements detected for package" error when installing multiple packages on how to read the status conflict error. It seems that Compat requires a newer DataFrame version than DataFrameMacros I am trying to install.
So Campat and DataFrameMacros seem to be incompatible.
However, I don't know where Compat came into play as I only try to install DataFrameMacros.
The packages I actually need for the code I am running are:
using PyPlot
using CSV
using DataFrames
using StatsBase
using PyCall
using Cairo
using Fontconfig
using Distributions
using DataFrameMacros, Chain
using Optim
Does anyone have a suggestion of how I can solve the error and install DataFrameMacros?
The problem is ultimately due to Bio.jl - note that Bio.jl is deprecated, and the Github page archived. There's a blog post that unambiguously says:
It is not longer recommended that you use Bio.jl.
and gives the list of packages which have the functionality Bio.jl used to have. You can choose which of those to install based on what features of it you needed. Or if your list of "packages I actually need" is complete, it seems you don't need Bio.jl at all. In that case, you can just rm Bio and add DataFrameMacros instead.
This sort of issue is likely to arise again if you install everything in the default Julia environment #v1.7. I'd recommend that you instead do ] activate /your/project/folder (in the Julia REPL) to create a new environment there, and add the just packages you need for this project there. That will keep your projects from stepping on each other's toes and make conflicts like this less likely.
Beginning with a fresh install of Julia 1.7.2, I install the NetCDF package using using Pkg; Pkg.add("NetCDF"). Checking the installation status, I get:
julia> Pkg.status()
Status `C:\Users\apung\.julia\environments\v1.7\Project.toml`
[30363a11] NetCDF v0.11.4
I have a NetCDF file on my desktop named "dummy.nc", which includes fields like "power" and "frequency"; this is verified in Panoply:
In Julia, I'm trying to read the file using
using NetCDF; ncread("dummy.nc","frequency")
At this point, the Julia terminal crashes and closes automatically. If I run the same command in Atom, the error vomit is:
Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0xa3556550 -- nc4_open_file at
C:\Users\apung\.julia\artifacts\2b6e2ce84250e36811c3019c1ad253c1739c888f\bin\libnetcdf-18.dll
(unknown line) in expression starting at none:1 nc4_open_file at C:\Users\apung\.julia\artifacts\2b6e2ce84250e36811c3019c1ad253c1739c888f\bin\libnetcdf-18.dll (unknown line)
NC4_open at C:\Users\apung\.julia\artifacts\2b6e2ce84250e36811c3019c1ad253c1739c888f\bin\libnetcdf-18.dll (unknown line)
NC_open at C:\Users\apung\.julia\artifacts\2b6e2ce84250e36811c3019c1ad253c1739c888f\bin\libnetcdf-18.dll (unknown line)
nc_open at C:\Users\apung\.julia\artifacts\2b6e2ce84250e36811c3019c1ad253c1739c888f\bin\libnetcdf-18.dll (unknown line)
nc_open at C:\Users\apung\.julia\packages\NetCDF\CS38M\src\netcdf_c.jl:55 [inlined]
nc_open at C:\Users\apung\.julia\packages\NetCDF\CS38M\src\netcdf_helpers.jl:103
#open#51 at C:\Users\apung\.julia\packages\NetCDF\CS38M\src\NetCDF.jl:913
open##kw at C:\Users\apung\.julia\packages\NetCDF\CS38M\src\NetCDF.jl:913 [inlined]
#open#52 at C:\Users\apung\.julia\packages\NetCDF\CS38M\src\NetCDF.jl:999
open at C:\Users\apung\.julia\packages\NetCDF\CS38M\src\NetCDF.jl:999 [inlined]
#ncread#54 at C:\Users\apung\.julia\packages\NetCDF\CS38M\src\NetCDF.jl:1052 [inlined]
ncread at C:\Users\apung\.julia\packages\NetCDF\CS38M\src\NetCDF.jl:1052
jl_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\julia.h:1788 [inlined]
do_call at /cygdrive/c/buildbot/worker/package_win64/build/src\interpreter.c:126
eval_value at /cygdrive/c/buildbot/worker/package_win64/build/src\interpreter.c:215
eval_stmt_value at /cygdrive/c/buildbot/worker/package_win64/build/src\interpreter.c:166 [inlined]
eval_body at /cygdrive/c/buildbot/worker/package_win64/build/src\interpreter.c:583
jl_interpret_toplevel_thunk at /cygdrive/c/buildbot/worker/package_win64/build/src\interpreter.c:731
jl_toplevel_eval_flex at /cygdrive/c/buildbot/worker/package_win64/build/src\toplevel.c:885
jl_toplevel_eval at /cygdrive/c/buildbot/worker/package_win64/build/src\toplevel.c:894 [inlined]
jl_toplevel_eval_in at /cygdrive/c/buildbot/worker/package_win64/build/src\toplevel.c:944
eval at .\boot.jl:373 [inlined]
repleval at C:\Users\apung\.julia\packages\Atom\BUIFZ\src\repl.jl:198
#258 at C:\Users\apung\.julia\packages\Atom\BUIFZ\src\repl.jl:228
unknown function (ip: 00000000642ce9b3)
with_logstate at .\logging.jl:511
with_logger at .\logging.jl:623 [inlined]
evalrepl at C:\Users\apung\.julia\packages\Atom\BUIFZ\src\repl.jl:216
jl_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\julia.h:1788 [inlined]
do_call at /cygdrive/c/buildbot/worker/package_win64/build/src\interpreter.c:126
eval_value at /cygdrive/c/buildbot/worker/package_win64/build/src\interpreter.c:215
eval_stmt_value at /cygdrive/c/buildbot/worker/package_win64/build/src\interpreter.c:166 [inlined]
eval_body at /cygdrive/c/buildbot/worker/package_win64/build/src\interpreter.c:583
jl_interpret_toplevel_thunk at /cygdrive/c/buildbot/worker/package_win64/build/src\interpreter.c:731
jl_toplevel_eval_flex at /cygdrive/c/buildbot/worker/package_win64/build/src\toplevel.c:885
jl_toplevel_eval at /cygdrive/c/buildbot/worker/package_win64/build/src\toplevel.c:894 [inlined]
jl_toplevel_eval_in at /cygdrive/c/buildbot/worker/package_win64/build/src\toplevel.c:944
eval at .\boot.jl:373 [inlined]
eval_user_input at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.7\REPL\src\REPL.jl:150
repl_backend_loop at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.7\REPL\src\REPL.jl:246
start_repl_backend at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.7\REPL\src\REPL.jl:231
#run_repl#47 at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.7\REPL\src\REPL.jl:364
run_repl at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.7\REPL\src\REPL.jl:351
#930 at .\client.jl:394
jfptr_YY.930_36349.clone_1 at C:\Users\apung\AppData\Local\Programs\Julia-1.7.2\lib\julia\sys.dll (unknown line)
jl_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\julia.h:1788 [inlined]
jl_f__call_latest at /cygdrive/c/buildbot/worker/package_win64/build/src\builtins.c:757
#invokelatest#2 at .\essentials.jl:716 [inlined]
invokelatest at .\essentials.jl:714 [inlined]
run_main_repl at .\client.jl:379
exec_options at .\client.jl:309
_start at .\client.jl:495
jfptr__start_21275.clone_1 at C:\Users\apung\AppData\Local\Programs\Julia-1.7.2\lib\julia\sys.dll (unknown line)
jl_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\julia.h:1788 [inlined]
true_main at /cygdrive/c/buildbot/worker/package_win64/build/src\jlapi.c:559
jl_repl_entrypoint at /cygdrive/c/buildbot/worker/package_win64/build/src\jlapi.c:701
mainCRTStartup at /cygdrive/c/buildbot/worker/package_win64/build/cli\loader_exe.c:42
BaseThreadInitThunk at C:\WINDOWS\System32\KERNEL32.DLL (unknown line)
RtlUserThreadStart at C:\WINDOWS\SYSTEM32\ntdll.dll (unknown line)
Allocations: 101204148 (Pool: 101156006; Big: 48142); GC: 63
What can I do to fix this? I'll continue to try previous NetCDF package versions in the meantime.
Edit:
There's no issue with ver. 0.7.3, 0.8.2, 0.9.0, 0.10.3.
Version 0.11.4 gives an HDF error:
ERROR: NetCDF error code -101:
NetCDF: HDF error
Stacktrace:
[1] check
# C:\Users\apung\.julia\packages\NetCDF\CS38M\src\netcdf_helpers.jl:22 [inlined]
[2] nc_open
# C:\Users\apung\.julia\packages\NetCDF\CS38M\src\netcdf_c.jl:55 [inlined]
[3] nc_open(fname::String, omode::UInt16)
# NetCDF C:\Users\apung\.julia\packages\NetCDF\CS38M\src\netcdf_helpers.jl:103
[4] open(fil::String; mode::UInt16, readdimvar::Bool, add_finalizer::Bool)
# NetCDF C:\Users\apung\.julia\packages\NetCDF\CS38M\src\NetCDF.jl:913
[5] open(f::NetCDF.var"#55#56"{String}, args::String; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
# NetCDF C:\Users\apung\.julia\packages\NetCDF\CS38M\src\NetCDF.jl:999
[6] open
# C:\Users\apung\.julia\packages\NetCDF\CS38M\src\NetCDF.jl:999 [inlined]
[7] #ncread#54
# C:\Users\apung\.julia\packages\NetCDF\CS38M\src\NetCDF.jl:1052 [inlined]
[8] ncread(fil::String, vname::String)
# NetCDF C:\Users\apung\.julia\packages\NetCDF\CS38M\src\NetCDF.jl:1052
[9] top-level scope
# REPL[4]:1
This appears to be a known issue introduced recently on Windows. The workaround suggested there is to either do
using Pkg
Pkg.add("NetCDF_jll#400.702.400")
or edit the Project.toml file to include
[compat]
NetCDF_jll = "=400.702.400"
This should be a temporary workaround, and once that issue is mentioned to be fixed, you can reverse the add with Pkg.rm, or remove the above two lines if you added those instead. In either case, you should follow that with a Pkg.update().
I recently went from Julia 1.6.3 to 1.7.0. I copied the Manifest and the Project.toml files to the new environments folder and updated the Manifest file to the newer version according to instructions. Everything worked fine. However, when I later tried to add DifferentialEquations.jl I got this error:
(#v1.7) pkg> precompile
Precompiling project...
✗ DiffEqNoiseProcess
✗ DiffEqFinancial
✗ StochasticDiffEq
✗ MultiScaleArrays
✗ DifferentialEquations
0 dependencies successfully precompiled in 30 seconds (252 already precompiled)
ERROR: The following 2 direct dependencies failed to precompile:
DiffEqNoiseProcess [77a26b50-5914-5dd7-bc55-306e6241c503]
Failed to precompile DiffEqNoiseProcess [77a26b50-5914-5dd7-bc55-306e6241c503] to C:\Users\*user*\.julia\compiled\v1.7\DiffEqNoiseProcess\jl_F949.tmp.
WARNING: Method definition Type##kw(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:fourinvπ}) in module StatsFuns at irrationals.jl:182 overwritten in module IrrationalConstants on the same line (check for duplicate calls to `include`).
** incremental compilation may be fatally broken for this module **
WARNING: Method definition Type##kw(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:twoinvπ}) in module StatsFuns at irrationals.jl:182 overwritten in module IrrationalConstants on the same line (check for duplicate calls to `include`).
** incremental compilation may be fatally broken for this module **
...
It continues with similar warnings for a while and finally I get this:
ERROR: LoadError: UndefVarError: SciMLBase not defined
Stacktrace:
[1] top-level scope
# C:\Users\manfr\.julia\packages\DiffEqNoiseProcess\9NzQP\src\solve.jl:1
[2] include(mod::Module, _path::String)
# Base .\Base.jl:418
[3] include(x::String)
# DiffEqNoiseProcess C:\Users\manfr\.julia\packages\DiffEqNoiseProcess\9NzQP\src\DiffEqNoiseProcess.jl:1
[4] top-level scope
# C:\Users\manfr\.julia\packages\DiffEqNoiseProcess\9NzQP\src\DiffEqNoiseProcess.jl:23
[5] include
# .\Base.jl:418 [inlined]
[6] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String},
dl_load_path::Vector{String}, load_path::Vector{String},
concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
# Base .\loading.jl:1318
[7] top-level scope
# none:1
[8] eval
# .\boot.jl:373 [inlined]
[9] eval(x::Expr)
# Base.MainInclude .\client.jl:453
[10] top-level scope
# none:1
in expression starting at
C:\Users\manfr\.julia\packages\DiffEqNoiseProcess\9NzQP\src\solve.jl:1
in expression starting at C:\Users\manfr\.julia\packages\DiffEqNoiseProcess\9NzQP\src\DiffEqNoiseProcess.jl:1
ERROR: LoadError: Failed to precompile DiffEqNoiseProcess [77a26b50-5914-5dd7-bc55-
306e6241c503] to C:\Users\manfr\.julia\compiled\v1.7\DiffEqNoiseProcess\jl_5956.tmp.
Stacktrace:
[1] error(s::String)
# Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO,
ignore_loaded_modules::Bool)
# Base .\loading.jl:1466
[3] compilecache(pkg::Base.PkgId, path::String)
# Base .\loading.jl:1410
[4] _require(pkg::Base.PkgId)
# Base .\loading.jl:1120
[5] require(uuidkey::Base.PkgId)
# Base .\loading.jl:1013
[6] require(into::Module, mod::Symbol)
# Base .\loading.jl:997
[7] include
# .\Base.jl:418 [inlined]
[8] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String},
dl_load_path::Vector{String}, load_path::Vector{String},
concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
# Base .\loading.jl:1318
[9] top-level scope
# none:1
[10] eval
# .\boot.jl:373 [inlined]
[11] eval(x::Expr)
# Base.MainInclude .\client.jl:453
[12] top-level scope
# none:1
in expression starting at
C:\Users\manfr\.julia\packages\DifferentialEquations\el96s\src\DifferentialEquations.jl:1
I've tried to build, precompile, delete the package folder and add it again, but nothing seems to work. I also tried to add the package to my Julia 1.6.3 installation, and that works fine. Does anyone know what the problem could be?
Manifests are version specific (since package versions can be Julia version specific). Re-resolve your packages without the manifest.
I tried to use the (very highly recommended) Eirine package in Julia. Adding it seems to work fine, but using Eirine blows up in my face as below. This happens on both Windows and Linux, and the Julia version 1.1, just as in the Eirine documentation. Any suggestions will be welcome.
julia> using Eirene
[ Info: Precompiling Eirene [9c0f25c4-2ca1-5870-89f6-52640788da1d]
┌ Warning: Package Eirene does not have Pkg in its dependencies:
│ - If you have Eirene checked out for development and have
│ added Pkg as a dependency but haven't updated your primary
│ environment's manifest file, try `Pkg.resolve()`.
│ - Otherwise you may need to report an issue with Eirene
└ Loading Pkg into Eirene from project dependency, future warnings for
Eirene ar e suppressed.
ERROR: LoadError: LoadError: KeyError: key "Plotly" not found
Stacktrace:
[1] getindex(::Dict{String,Union{Nothing, VersionNumber}}, ::String) at
./dict. jl:478
[2] top-level scope at none:0
[3] include at ./boot.jl:326 [inlined]
[4] include_relative(::Module, ::String) at ./loading.jl:1038
[5] include at ./sysimg.jl:29 [inlined]
[6] include(::String) at
/home/rivin/.julia/packages/Plotly/C5oqo/src/Plotly.jl
:1
[7] top-level scope at none:0
[8] include at ./boot.jl:326 [inlined]
[9] include_relative(::Module, ::String) at ./loading.jl:1038
[10] include(::Module, ::String) at ./sysimg.jl:29
[11] top-level scope at none:2
[12] eval at ./boot.jl:328 [inlined]
[13] eval(::Expr) at ./client.jl:404
[14] top-level scope at ./none:3
in expression starting at
/home/rivin/.julia/packages/Plotly/C5oqo/src/v2.jl:6
in expression starting at
/home/rivin/.julia/packages/Plotly/C5oqo/src/Plotly.jl
:19
ERROR: LoadError: Failed to precompile Plotly [58dd65bb-95f3-509e-9936-
c39a10fde ae7] to
/home/rivin/.julia/compiled/v1.1/Plotly/M5iCk.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1197
[3] _require(::Base.PkgId) at ./loading.jl:960
[4] require(::Base.PkgId) at ./loading.jl:858
[5] require(::Module, ::Symbol) at ./loading.jl:853
[6] include at ./boot.jl:326 [inlined]
[7] include_relative(::Module, ::String) at ./loading.jl:1038
[8] include(::Module, ::String) at ./sysimg.jl:29
[9] top-level scope at none:2
[10] eval at ./boot.jl:328 [inlined]
[11] eval(::Expr) at ./client.jl:404
[12] top-level scope at ./none:3
in expression starting at
/home/rivin/.julia/packages/Eirene/QIFsh/src/Eirene.jl
:42
ERROR: Failed to precompile Eirene [9c0f25c4-2ca1-5870-89f6-52640788da1d] to
/ho me/rivin/.julia/compiled/v1.1/Eirene/mCiG1.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1197
[3] _require(::Base.PkgId) at ./loading.jl:960
[4] require(::Base.PkgId) at ./loading.jl:858
[5] require(::Module, ::Symbol) at ./loading.jl:853
julia>
For some reason, it seems plotly which this depends upon was not installed correctly. Manually installing should fix it.
Adding and building KNITRO.jl on 1.0 seems to work, but when running using I get an error.
(v1.0) pkg> add KNITRO
Resolving package versions...
Updating `~/.julia/environments/v1.0/Project.toml`
[no changes]
Updating `~/.julia/environments/v1.0/Manifest.toml`
[no changes]
(v1.0) pkg> build KNITRO
julia> using KNITRO
[ Info: Precompiling KNITRO [67920dd8-b58e-52a8-8622-53c4cffbe346]
ERROR: LoadError: syntax: extra token "KnitroProblem" after end of expression
Stacktrace:
[1] include at ./boot.jl:317 [inlined]
[2] include_relative(::Module, ::String) at ./loading.jl:1038
[3] include(::Module, ::String) at ./sysimg.jl:29
[4] top-level scope at none:2
[5] eval at ./boot.jl:319 [inlined]
[6] eval(::Expr) at ./client.jl:389
[7] top-level scope at ./none:3
in expression starting at
/home/svcarpacomp/.julia/packages/KNITRO/Zou9S/src/KNITRO.jl:37
ERROR: Failed to precompile KNITRO [67920dd8-b58e-52a8-8622-53c4cffbe346] to /home/svcarpacomp/.julia/compiled/v1.0/KNITRO/9GHjY.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] macro expansion at ./logging.jl:313 [inlined]
[3] compilecache(::Base.PkgId, ::String) at ./loading.jl:1184
[4] _require(::Base.PkgId) at ./logging.jl:311
[5] require(::Base.PkgId) at ./loading.jl:852
[6] macro expansion at ./logging.jl:311 [inlined]
[7] require(::Module, ::Symbol) at ./loading.jl:834
Assuming you're grabbing the copy on github and reading your error message, it fails at line 37 of KNITRO.jl:
type KnitroProblem
type is deprecated. It is [mutable] struct.
The current version is for v0.6 apparently. If you try with v0.7 it should toss several deprecation warnings.