invenia / SyntheticGrids.jl

Julia package for building synthetic power grids
MIT License
28 stars 10 forks source link

Package not working on Windows and linux #24

Open FrancoisFEM opened 1 year ago

FrancoisFEM commented 1 year ago

Hi, I have installed SyntheticGrids both on linux system and Windows, When I try to run a test (Pkg.test("SyntheticGrids")) I get an error which seems related to CSV.

(@v1.9) pkg> test SyntheticGrids Testing SyntheticGrids Status /tmp/jl_Vg54Sg/Project.toml [15f4f7f2] AutoHashEquals v0.2.0 ⌅ [336ed68f] CSV v0.5.26 [8f4d0f93] Conda v1.9.0 ⌅ [0ef565a4] Geodesy v0.5.0 ⌃ [682c06a0] JSON v0.21.1 [438e738f] PyCall v1.96.1 [34f115b4] SyntheticGrids v0.1.0 [37e2e46d] LinearAlgebra @stdlib/LinearAlgebra [9a3f8284] Random @stdlib/Random [2f01184e] SparseArrays @stdlib/SparseArrays [10745b16] Statistics v1.9.0 @stdlib/Statistics [8dfed614] Test @stdlib/Test Status /tmp/jl_Vg54Sg/Manifest.toml [15f4f7f2] AutoHashEquals v0.2.0 ⌅ [336ed68f] CSV v0.5.26 ⌅ [324d7699] CategoricalArrays v0.7.7 ⌅ [34da2185] Compat v3.46.2 [8f4d0f93] Conda v1.9.0 [150eb455] CoordinateTransformations v0.6.3 [9a962f9c] DataAPI v1.15.0 ⌅ [a93c6f00] DataFrames v0.20.2 [864edb3b] DataStructures v0.18.14 [e2d170a0] DataValueInterfaces v1.0.0 [8bb1440f] DelimitedFiles v1.9.1 ⌅ [48062228] FilePathsBase v0.7.0 ⌅ [0ef565a4] Geodesy v0.5.0 [41ab1584] InvertedIndices v1.3.0 [82899510] IteratorInterfaceExtensions v1.0.0 ⌃ [682c06a0] JSON v0.21.1 [1914dd2f] MacroTools v0.5.10 ⌅ [e1d29d7a] Missings v0.4.5 [bac558e1] OrderedCollections v1.6.0 ⌅ [69de0a69] Parsers v0.3.12 ⌅ [2dfb63ee] PooledArrays v0.5.3 [438e738f] PyCall v1.96.1 ⌅ [189a3867] Reexport v0.2.0 ⌅ [a2af1166] SortingAlgorithms v0.3.2 ⌅ [90137ffa] StaticArrays v0.12.6 [34f115b4] SyntheticGrids v0.1.0 [3783bdb8] TableTraits v1.0.1 [bd369af6] Tables v1.10.1 [81def892] VersionParsing v1.3.0 ⌅ [ea10d353] WeakRefStrings v0.6.2 [0dad84c5] ArgTools v1.1.1 @stdlib/ArgTools [56f22d72] Artifacts @stdlib/Artifacts [2a0f44e3] Base64 @stdlib/Base64 [ade2ca70] Dates @stdlib/Dates [8ba89e20] Distributed @stdlib/Distributed [f43a241f] Downloads v1.6.0 @stdlib/Downloads [7b1f6079] FileWatching @stdlib/FileWatching [9fa8497b] Future @stdlib/Future [b77e0a4c] InteractiveUtils @stdlib/InteractiveUtils [b27032c2] LibCURL v0.6.3 @stdlib/LibCURL [76f85450] LibGit2 @stdlib/LibGit2 [8f399da3] Libdl @stdlib/Libdl [37e2e46d] LinearAlgebra @stdlib/LinearAlgebra [56ddb016] Logging @stdlib/Logging [d6f4376e] Markdown @stdlib/Markdown [a63ad114] Mmap @stdlib/Mmap [ca575930] NetworkOptions v1.2.0 @stdlib/NetworkOptions [44cfe95a] Pkg v1.9.2 @stdlib/Pkg [de0858da] Printf @stdlib/Printf [3fa0cd96] REPL @stdlib/REPL [9a3f8284] Random @stdlib/Random [ea8e919c] SHA v0.7.0 @stdlib/SHA [9e88b42a] Serialization @stdlib/Serialization [1a1011a3] SharedArrays @stdlib/SharedArrays [6462fe0b] Sockets @stdlib/Sockets [2f01184e] SparseArrays @stdlib/SparseArrays [10745b16] Statistics v1.9.0 @stdlib/Statistics [fa267f1f] TOML v1.0.3 @stdlib/TOML [a4e569a6] Tar v1.10.0 @stdlib/Tar [8dfed614] Test @stdlib/Test [cf7118a7] UUIDs @stdlib/UUIDs [4ec0a83e] Unicode @stdlib/Unicode [e66e0078] CompilerSupportLibraries_jll v1.0.5+0 @stdlib/CompilerSupportLibraries_jll [deac9b47] LibCURL_jll v7.84.0+0 @stdlib/LibCURL_jll [29816b5a] LibSSH2_jll v1.10.2+0 @stdlib/LibSSH2_jll [c8ffd9c3] MbedTLS_jll v2.28.2+0 @stdlib/MbedTLS_jll [14a3606d] MozillaCACerts_jll v2022.10.11 @stdlib/MozillaCACerts_jll [4536629a] OpenBLAS_jll v0.3.21+4 @stdlib/OpenBLAS_jll [bea87d4a] SuiteSparse_jll v5.10.1+6 @stdlib/SuiteSparse_jll [83775a58] Zlib_jll v1.2.13+0 @stdlib/Zlib_jll [8e850b90] libblastrampoline_jll v5.8.0+0 @stdlib/libblastrampoline_jll [8e850ede] nghttp2_jll v1.48.0+0 @stdlib/nghttp2_jll [3f19e933] p7zip_jll v17.4.0+0 @stdlib/p7zip_jll Info Packages marked with ⌃ and ⌅ have new versions available, but those with ⌅ are restricted by compatibility constraints from upgrading. Precompiling project... ✗ CSV ✗ SyntheticGrids 0 dependencies successfully precompiled in 5 seconds. 34 already precompiled.

ERROR: The following 2 direct dependencies failed to precompile:

CSV [336ed68f-0bac-5ca0-87d4-7b16caf5d00b]

Failed to precompile CSV [336ed68f-0bac-5ca0-87d4-7b16caf5d00b] to "/home/Hugo/.julia/compiled/v1.9/CSV/jl_zcuTYK". ERROR: LoadError: ccall method definition: argument 1 type doesn't correspond to a C type Stacktrace: [1] top-level scope @ ~/.julia/packages/CSV/DOr2V/src/utils.jl:382 [2] include(mod::Module, _path::String) @ Base ./Base.jl:457 [3] include(x::String) @ CSV ~/.julia/packages/CSV/DOr2V/src/CSV.jl:1 [4] top-level scope @ ~/.julia/packages/CSV/DOr2V/src/CSV.jl:14 [5] include @ ./Base.jl:457 [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, UInt128}}, source::Nothing) @ Base ./loading.jl:2049 [7] top-level scope @ stdin:3 in expression starting at /home/Hugo/.julia/packages/CSV/DOr2V/src/utils.jl:382 in expression starting at /home/Hugo/.julia/packages/CSV/DOr2V/src/CSV.jl:1 in expression starting at stdin:3

SyntheticGrids [34f115b4-9156-5266-a33d-ca359e631fb8]

Failed to precompile SyntheticGrids [34f115b4-9156-5266-a33d-ca359e631fb8] to "/home/Hugo/.julia/compiled/v1.9/SyntheticGrids/jl_bYtz0N". ERROR: LoadError: ccall method definition: argument 1 type doesn't correspond to a C type Stacktrace: [1] top-level scope @ ~/.julia/packages/CSV/DOr2V/src/utils.jl:382 [2] include(mod::Module, _path::String) @ Base ./Base.jl:457 [3] include(x::String) @ CSV ~/.julia/packages/CSV/DOr2V/src/CSV.jl:1 [4] top-level scope @ ~/.julia/packages/CSV/DOr2V/src/CSV.jl:14 [5] include @ ./Base.jl:457 [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, UInt128}}, source::String) @ Base ./loading.jl:2049 [7] top-level scope @ stdin:3 in expression starting at /home/Hugo/.julia/packages/CSV/DOr2V/src/utils.jl:382 in expression starting at /home/Hugo/.julia/packages/CSV/DOr2V/src/CSV.jl:1 in expression starting at stdin:3 ERROR: LoadError: Failed to precompile CSV [336ed68f-0bac-5ca0-87d4-7b16caf5d00b] to "/home/Hugo/.julia/compiled/v1.9/CSV/jl_K7SGKm". Stacktrace: [1] error(s::String) @ Base ./error.jl:35 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool) @ Base ./loading.jl:2300 [3] compilecache @ ./loading.jl:2167 [inlined] [4] _require(pkg::Base.PkgId, env::String) @ Base ./loading.jl:1805 [5] _require_prelocked(uuidkey::Base.PkgId, env::String) @ Base ./loading.jl:1660 [6] macro expansion @ ./loading.jl:1648 [inlined] [7] macro expansion @ ./lock.jl:267 [inlined] [8] require(into::Module, mod::Symbol) @ Base ./loading.jl:1611 [9] include @ ./Base.jl:457 [inlined] [10] 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, UInt128}}, source::Nothing) @ Base ./loading.jl:2049 [11] top-level scope @ stdin:3 in expression starting at /home/Hugo/.julia/packages/SyntheticGrids/WgelH/src/SyntheticGrids.jl:1 in expression starting at stdin:3

Stacktrace: [1] pkgerror(msg::String) @ Pkg.Types /var/lib/snapd/snap/julia/83/share/julia/stdlib/v1.9/Pkg/src/Types.jl:69 [2] precompile(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; internal_call::Bool, strict::Bool, warn_loaded::Bool, already_instantiated::Bool, timing::Bool, kwargs::Base.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}}) @ Pkg.API /var/lib/snapd/snap/julia/83/share/julia/stdlib/v1.9/Pkg/src/API.jl:1581 [3] precompile(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Bool, Tuple{Symbol}, NamedTuple{(:warn_loaded,), Tuple{Bool}}}) @ Pkg.API /var/lib/snapd/snap/julia/83/share/julia/stdlib/v1.9/Pkg/src/API.jl:156 [4] precompile(; name::Nothing, uuid::Nothing, version::Nothing, url::Nothing, rev::Nothing, path::Nothing, mode::Pkg.Types.PackageMode, subdir::Nothing, kwargs::Base.Pairs{Symbol, Bool, Tuple{Symbol}, NamedTuple{(:warn_loaded,), Tuple{Bool}}}) @ Pkg.API /var/lib/snapd/snap/julia/83/share/julia/stdlib/v1.9/Pkg/src/API.jl:171 [5] top-level scope @ none:6 Testing Precompilation of test environment failed. Continuing to tests Testing Running tests... ERROR: LoadError: ccall method definition: argument 1 type doesn't correspond to a C type Stacktrace: [1] top-level scope @ ~/.julia/packages/CSV/DOr2V/src/utils.jl:382 [2] include(mod::Module, _path::String) @ Base ./Base.jl:457 [3] include(x::String) @ CSV ~/.julia/packages/CSV/DOr2V/src/CSV.jl:1 [4] top-level scope @ ~/.julia/packages/CSV/DOr2V/src/CSV.jl:14 [5] include @ ./Base.jl:457 [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, UInt128}}, source::String) @ Base ./loading.jl:2049 [7] top-level scope @ stdin:3 in expression starting at /home/Hugo/.julia/packages/CSV/DOr2V/src/utils.jl:382 in expression starting at /home/Hugo/.julia/packages/CSV/DOr2V/src/CSV.jl:1 in expression starting at stdin:3 ERROR: LoadError: Failed to precompile CSV [336ed68f-0bac-5ca0-87d4-7b16caf5d00b] to "/home/Hugo/.julia/compiled/v1.9/CSV/jl_DPiMkD". Stacktrace: [1] error(s::String) @ Base ./error.jl:35 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool) @ Base ./loading.jl:2300 [3] compilecache @ ./loading.jl:2167 [inlined] [4] _require(pkg::Base.PkgId, env::String) @ Base ./loading.jl:1805 [5] _require_prelocked(uuidkey::Base.PkgId, env::String) @ Base ./loading.jl:1660 [6] macro expansion @ ./loading.jl:1648 [inlined] [7] macro expansion @ ./lock.jl:267 [inlined] [8] require(into::Module, mod::Symbol) @ Base ./loading.jl:1611 [9] include @ ./Base.jl:457 [inlined] [10] 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, UInt128}}, source::String) @ Base ./loading.jl:2049 [11] top-level scope @ stdin:3 in expression starting at /home/Hugo/.julia/packages/SyntheticGrids/WgelH/src/SyntheticGrids.jl:1 in expression starting at stdin:3 ERROR: LoadError: Failed to precompile SyntheticGrids [34f115b4-9156-5266-a33d-ca359e631fb8] to "/home/Hugo/.julia/compiled/v1.9/SyntheticGrids/jl_vjho2d". Stacktrace: [1] error(s::String) @ Base ./error.jl:35 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool) @ Base ./loading.jl:2300 [3] compilecache @ ./loading.jl:2167 [inlined] [4] _require(pkg::Base.PkgId, env::String) @ Base ./loading.jl:1805 [5] _require_prelocked(uuidkey::Base.PkgId, env::String) @ Base ./loading.jl:1660 [6] macro expansion @ ./loading.jl:1648 [inlined] [7] macro expansion @ ./lock.jl:267 [inlined] [8] require(into::Module, mod::Symbol) @ Base ./loading.jl:1611 [9] include(fname::String) @ Base.MainInclude ./client.jl:478 [10] top-level scope @ none:6 in expression starting at /home/Hugo/.julia/packages/SyntheticGrids/WgelH/test/runtests.jl:1 ERROR: Package SyntheticGrids errored during testing

I don't know what to do to make this package working ;( BR François