Julia 1.0 add JLD Error


#1
           _

_ _ ()_ | Documentation: https://docs.julialang.org
() | () () |
_ _ | | __ _ | Type “?” for help, “]?” for Pkg help.
| | | | | | |/ ` | |
| | |
| | | | (
| | | Version 1.0.0 (2018-08-08)
/ |_|||_’_| | Official https://julialang.org/ release
|__/ |

(v1.0) pkg> add JLD
Resolving package versions…
Installed WinRPM ────────── v0.4.0
Installed CMakeWrapper ──── v0.2.2
Installed HTTPClient ────── v0.2.1
Installed LegacyStrings ─── v0.3.0
Installed Libz ──────────── v1.0.0
Installed Homebrew ──────── v0.7.0
Installed LibExpat ──────── v0.4.2
Installed JLD ───────────── v0.8.3
Installed CMake ─────────── v1.0.1
Installed Blosc ─────────── v0.5.1
Installed BufferedStreams ─ v1.0.0
Installed LibCURL ───────── v0.3.1
Installed HDF5 ──────────── v0.9.4
Installed FileIO ────────── v1.0.1
Updating C:\Users\PC\.julia\environments\v1.0\Project.toml
[4138dd39] + JLD v0.8.3
Updating C:\Users\PC\.julia\environments\v1.0\Manifest.toml
[9e28174c] + BinDeps v0.8.10
[b99e7846] + BinaryProvider v0.4.1
[a74b3585] + Blosc v0.5.1
[e1450e63] + BufferedStreams v1.0.0
[631607c0] + CMake v1.0.1
[d5fb7624] + CMakeWrapper v0.2.2
[5789e2e9] + FileIO v1.0.1
[f67ccb44] + HDF5 v0.9.4
[0862f596] + HTTPClient v0.2.1
[d9be37ee] + Homebrew v0.7.0
[4138dd39] + JLD v0.8.3
[1b4a561d] + LegacyStrings v0.3.0
[b27032c2] + LibCURL v0.3.1
[522f3ed2] + LibExpat v0.4.2
[2ec943e9] + Libz v1.0.0
[d96e819e] + Parameters v0.9.2
[30578b45] + URIParser v0.4.0
[c17dfb99] + WinRPM v0.4.0
Building LibCURL ─→ C:\Users\PC\.julia\packages\LibCURL\Qs5og\deps\build.log
Building WinRPM ──→ C:\Users\PC\.julia\packages\WinRPM\rDDZz\deps\build.log
┌ Error: Error building WinRPM:
│ ERROR: LoadError: LoadError: UndefVarError: Void not defined
│ Stacktrace:
│ [1] top-level scope at C:\Users\PC.julia\packages\LibExpat\FAade\src\lX_common_h.jl:10
│ [2] include at .\boot.jl:317 [inlined]
│ [3] include_relative(::Module, ::String) at .\loading.jl:1038
│ [4] include at .\sysimg.jl:29 [inlined]
│ [5] include(::String) at C:\Users\PC.julia\packages\LibExpat\FAade\src\LibExpat.jl:3
│ [6] top-level scope at none:0
│ [7] include at .\boot.jl:317 [inlined]
│ [8] include_relative(::Module, ::String) at .\loading.jl:1038
│ [9] include(::Module, ::String) at .\sysimg.jl:29
│ [10] top-level scope at none:2
│ [11] eval at .\boot.jl:319 [inlined]
│ [12] eval(::Expr) at .\client.jl:389
│ [13] top-level scope at .\none:3
│ in expression starting at C:\Users\PC.julia\packages\LibExpat\FAade\src\lX_common_h.jl:18
│ in expression starting at C:\Users\PC.julia\packages\LibExpat\FAade\src\LibExpat.jl:16
│ ERROR: LoadError: Failed to precompile LibExpat [522f3ed2-3f36-55e3-b6df-e94fee9b0c07] to C:\Users\PC.julia\c
ompiled\v1.0\LibExpat\MYp8o.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
│ [8] include at .\boot.jl:317 [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:319 [inlined]
│ [13] eval(::Expr) at .\client.jl:389
│ [14] top-level scope at .\none:3
│ in expression starting at C:\Users\PC.julia\packages\WinRPM\rDDZz\src\WinRPM.jl:12
│ ERROR: LoadError: Failed to precompile WinRPM [c17dfb99-b4f7-5aad-8812-456da1ad7187] to C:\Users\PC.julia\com
piled\v1.0\WinRPM\ko3j0.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
│ [8] top-level scope at C:\Users\PC.julia\packages\WinRPM\rDDZz\deps\build.jl:2
│ [9] include at .\boot.jl:317 [inlined]
│ [10] include_relative(::Module, ::String) at .\loading.jl:1038
│ [11] include(::Module, ::String) at .\sysimg.jl:29
│ [12] include(::String) at .\client.jl:388
│ [13] top-level scope at none:0
│ in expression starting at C:\Users\PC.julia\packages\WinRPM\rDDZz\deps\build.jl:1
└ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0
Pkg\src\Operations.jl:1068
Building Homebrew → C:\Users\PC\.julia\packages\Homebrew\l8kUw\deps\build.log
Building CMake ───→ C:\Users\PC\.julia\packages\CMake\GhlEs\deps\build.log
Building Blosc ───→ C:\Users\PC\.julia\packages\Blosc\lzFr0\deps\build.log
Building HDF5 ────→ C:\Users\PC\.julia\packages\HDF5\jDzcD\deps\build.log
┌ Error: Error building HDF5:
│ ERROR: LoadError: LoadError: UndefVarError: Void not defined
│ Stacktrace:
│ [1] top-level scope at C:\Users\PC.julia\packages\LibExpat\FAade\src\lX_common_h.jl:10
│ [2] include at .\boot.jl:317 [inlined]
│ [3] include_relative(::Module, ::String) at .\loading.jl:1038
│ [4] include at .\sysimg.jl:29 [inlined]
│ [5] include(::String) at C:\Users\PC.julia\packages\LibExpat\FAade\src\LibExpat.jl:3
│ [6] top-level scope at none:0
│ [7] include at .\boot.jl:317 [inlined]
│ [8] include_relative(::Module, ::String) at .\loading.jl:1038
│ [9] include(::Module, ::String) at .\sysimg.jl:29
│ [10] top-level scope at none:2
│ [11] eval at .\boot.jl:319 [inlined]
│ [12] eval(::Expr) at .\client.jl:389
│ [13] top-level scope at .\none:3
│ in expression starting at C:\Users\PC.julia\packages\LibExpat\FAade\src\lX_common_h.jl:18
│ in expression starting at C:\Users\PC.julia\packages\LibExpat\FAade\src\LibExpat.jl:16
│ ERROR: LoadError: Failed to precompile LibExpat [522f3ed2-3f36-55e3-b6df-e94fee9b0c07] to C:\Users\PC.julia\c
ompiled\v1.0\LibExpat\MYp8o.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
│ [8] include at .\boot.jl:317 [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:319 [inlined]
│ [13] eval(::Expr) at .\client.jl:389
│ [14] top-level scope at .\none:3
│ in expression starting at C:\Users\PC.julia\packages\WinRPM\rDDZz\src\WinRPM.jl:12
│ ERROR: LoadError: Failed to precompile WinRPM [c17dfb99-b4f7-5aad-8812-456da1ad7187] to C:\Users\PC.julia\com
piled\v1.0\WinRPM\ko3j0.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
│ [8] top-level scope at C:\Users\PC.julia\packages\HDF5\jDzcD\deps\build.jl:29
│ [9] include at .\boot.jl:317 [inlined]
│ [10] include_relative(::Module, ::String) at .\loading.jl:1038
│ [11] include(::Module, ::String) at .\sysimg.jl:29
│ [12] include(::String) at .\client.jl:388
│ [13] top-level scope at none:0
│ in expression starting at C:\Users\PC.julia\packages\HDF5\jDzcD\deps\build.jl:28
└ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0
Pkg\src\Operations.jl:1068

(v1.0) pkg> build WinRPM
Building LibCURL → C:\Users\PC\.julia\packages\LibCURL\Qs5og\deps\build.log
Building WinRPM ─→ C:\Users\PC\.julia\packages\WinRPM\rDDZz\deps\build.log
┌ Error: Error building WinRPM:
│ ERROR: LoadError: LoadError: UndefVarError: Void not defined
│ Stacktrace:
│ [1] top-level scope at C:\Users\PC.julia\packages\LibExpat\FAade\src\lX_common_h.jl:10
│ [2] include at .\boot.jl:317 [inlined]
│ [3] include_relative(::Module, ::String) at .\loading.jl:1038
│ [4] include at .\sysimg.jl:29 [inlined]
│ [5] include(::String) at C:\Users\PC.julia\packages\LibExpat\FAade\src\LibExpat.jl:3
│ [6] top-level scope at none:0
│ [7] include at .\boot.jl:317 [inlined]
│ [8] include_relative(::Module, ::String) at .\loading.jl:1038
│ [9] include(::Module, ::String) at .\sysimg.jl:29
│ [10] top-level scope at none:2
│ [11] eval at .\boot.jl:319 [inlined]
│ [12] eval(::Expr) at .\client.jl:389
│ [13] top-level scope at .\none:3
│ in expression starting at C:\Users\PC.julia\packages\LibExpat\FAade\src\lX_common_h.jl:18
│ in expression starting at C:\Users\PC.julia\packages\LibExpat\FAade\src\LibExpat.jl:16
│ ERROR: LoadError: Failed to precompile LibExpat [522f3ed2-3f36-55e3-b6df-e94fee9b0c07] to C:\Users\PC.julia\c
ompiled\v1.0\LibExpat\MYp8o.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
│ [8] include at .\boot.jl:317 [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:319 [inlined]
│ [13] eval(::Expr) at .\client.jl:389
│ [14] top-level scope at .\none:3
│ in expression starting at C:\Users\PC.julia\packages\WinRPM\rDDZz\src\WinRPM.jl:12
│ ERROR: LoadError: Failed to precompile WinRPM [c17dfb99-b4f7-5aad-8812-456da1ad7187] to C:\Users\PC.julia\com
piled\v1.0\WinRPM\ko3j0.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
│ [8] top-level scope at C:\Users\PC.julia\packages\WinRPM\rDDZz\deps\build.jl:2
│ [9] include at .\boot.jl:317 [inlined]
│ [10] include_relative(::Module, ::String) at .\loading.jl:1038
│ [11] include(::Module, ::String) at .\sysimg.jl:29
│ [12] include(::String) at .\client.jl:388
│ [13] top-level scope at none:0
│ in expression starting at C:\Users\PC.julia\packages\WinRPM\rDDZz\deps\build.jl:1
└ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0
Pkg\src\Operations.jl:1068

(v1.0) pkg> build HDF5
Building LibCURL ─→ C:\Users\PC\.julia\packages\LibCURL\Qs5og\deps\build.log
Building WinRPM ──→ C:\Users\PC\.julia\packages\WinRPM\rDDZz\deps\build.log
┌ Error: Error building WinRPM:
│ ERROR: LoadError: LoadError: UndefVarError: Void not defined
│ Stacktrace:
│ [1] top-level scope at C:\Users\PC.julia\packages\LibExpat\FAade\src\lX_common_h.jl:10
│ [2] include at .\boot.jl:317 [inlined]
│ [3] include_relative(::Module, ::String) at .\loading.jl:1038
│ [4] include at .\sysimg.jl:29 [inlined]
│ [5] include(::String) at C:\Users\PC.julia\packages\LibExpat\FAade\src\LibExpat.jl:3
│ [6] top-level scope at none:0
│ [7] include at .\boot.jl:317 [inlined]
│ [8] include_relative(::Module, ::String) at .\loading.jl:1038
│ [9] include(::Module, ::String) at .\sysimg.jl:29
│ [10] top-level scope at none:2
│ [11] eval at .\boot.jl:319 [inlined]
│ [12] eval(::Expr) at .\client.jl:389
│ [13] top-level scope at .\none:3
│ in expression starting at C:\Users\PC.julia\packages\LibExpat\FAade\src\lX_common_h.jl:18
│ in expression starting at C:\Users\PC.julia\packages\LibExpat\FAade\src\LibExpat.jl:16
│ ERROR: LoadError: Failed to precompile LibExpat [522f3ed2-3f36-55e3-b6df-e94fee9b0c07] to C:\Users\PC.julia\c
ompiled\v1.0\LibExpat\MYp8o.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
│ [8] include at .\boot.jl:317 [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:319 [inlined]
│ [13] eval(::Expr) at .\client.jl:389
│ [14] top-level scope at .\none:3
│ in expression starting at C:\Users\PC.julia\packages\WinRPM\rDDZz\src\WinRPM.jl:12
│ ERROR: LoadError: Failed to precompile WinRPM [c17dfb99-b4f7-5aad-8812-456da1ad7187] to C:\Users\PC.julia\com
piled\v1.0\WinRPM\ko3j0.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
│ [8] top-level scope at C:\Users\PC.julia\packages\WinRPM\rDDZz\deps\build.jl:2
│ [9] include at .\boot.jl:317 [inlined]
│ [10] include_relative(::Module, ::String) at .\loading.jl:1038
│ [11] include(::Module, ::String) at .\sysimg.jl:29
│ [12] include(::String) at .\client.jl:388
│ [13] top-level scope at none:0
│ in expression starting at C:\Users\PC.julia\packages\WinRPM\rDDZz\deps\build.jl:1
└ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0
Pkg\src\Operations.jl:1068
Building Homebrew → C:\Users\PC\.julia\packages\Homebrew\l8kUw\deps\build.log
Building CMake ───→ C:\Users\PC\.julia\packages\CMake\GhlEs\deps\build.log
Building Blosc ───→ C:\Users\PC\.julia\packages\Blosc\lzFr0\deps\build.log
Building HDF5 ────→ C:\Users\PC\.julia\packages\HDF5\jDzcD\deps\build.log
┌ Error: Error building HDF5:
│ ERROR: LoadError: LoadError: UndefVarError: Void not defined
│ Stacktrace:
│ [1] top-level scope at C:\Users\PC.julia\packages\LibExpat\FAade\src\lX_common_h.jl:10
│ [2] include at .\boot.jl:317 [inlined]
│ [3] include_relative(::Module, ::String) at .\loading.jl:1038
│ [4] include at .\sysimg.jl:29 [inlined]
│ [5] include(::String) at C:\Users\PC.julia\packages\LibExpat\FAade\src\LibExpat.jl:3
│ [6] top-level scope at none:0
│ [7] include at .\boot.jl:317 [inlined]
│ [8] include_relative(::Module, ::String) at .\loading.jl:1038
│ [9] include(::Module, ::String) at .\sysimg.jl:29
│ [10] top-level scope at none:2
│ [11] eval at .\boot.jl:319 [inlined]
│ [12] eval(::Expr) at .\client.jl:389
│ [13] top-level scope at .\none:3
│ in expression starting at C:\Users\PC.julia\packages\LibExpat\FAade\src\lX_common_h.jl:18
│ in expression starting at C:\Users\PC.julia\packages\LibExpat\FAade\src\LibExpat.jl:16
│ ERROR: LoadError: Failed to precompile LibExpat [522f3ed2-3f36-55e3-b6df-e94fee9b0c07] to C:\Users\PC.julia\c
ompiled\v1.0\LibExpat\MYp8o.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
│ [8] include at .\boot.jl:317 [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:319 [inlined]
│ [13] eval(::Expr) at .\client.jl:389
│ [14] top-level scope at .\none:3
│ in expression starting at C:\Users\PC.julia\packages\WinRPM\rDDZz\src\WinRPM.jl:12
│ ERROR: LoadError: Failed to precompile WinRPM [c17dfb99-b4f7-5aad-8812-456da1ad7187] to C:\Users\PC.julia\com
piled\v1.0\WinRPM\ko3j0.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
│ [8] top-level scope at C:\Users\PC.julia\packages\HDF5\jDzcD\deps\build.jl:29
│ [9] include at .\boot.jl:317 [inlined]
│ [10] include_relative(::Module, ::String) at .\loading.jl:1038
│ [11] include(::Module, ::String) at .\sysimg.jl:29
│ [12] include(::String) at .\client.jl:388
│ [13] top-level scope at none:0
│ in expression starting at C:\Users\PC.julia\packages\HDF5\jDzcD\deps\build.jl:28
└ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0
Pkg\src\Operations.jl:1068

(v1.0) pkg>


#2

JLD is not yet upgraded to 1.0.


#3

I believe JLD does not work on 0.7 yet either.

JLD looks far more difficult to fix than most other packages (since backwards compatibility is so important), and I too am eagerly awaiting it to work with julia 0.7 and 1.0. There is a heroic pull request in progress at https://github.com/JuliaIO/JLD.jl/pull/215 – and I am hoping that some additional progress is made soon…


#4

BTW, there is JLD2 if backwards compatibility does not matter to you.


#5

It hasn’t been announced but I get the impression the long term plan is to deprecate JLD.jl in favor of JLD2.jl. Unless you have serialized a huge amount of data it might be worth converting your data to the JLD2 format through 0.6 (on which both packages work). If you need to serialize a large quantity of absolutely crucial data, I’d personally recommend using a conventional HDF5 format until the situation stabilizes somewhat.


#6

Pkg.build(“WinRPM”) has also a lot of errors, it is so sad .


#7

Nice!
Paul
W dniu 2018-08-18 o 00:15, Jim Garrison pisze:


#8

W dniu 2018-08-18 o 06:07, wowotuo pisze:

Pkg.build(“WinRPM”) has also a lot of errors, it is so sad

Is very bad that Julia 0.7 ask :

Do 'Pkg.build(“WinRPM”) ’ in real must be: ‘build WinRPM’

Sombody can change it ?

Paul


#9

Is nice buti I cant to save simple array ‘a’ :/, can You help me ?

using JLD2

a=rand(5);

@save(“file.jl2”,“A”,a)

@load(“file.jl2”,“A”)
┌ Warning: convert(::Type{Symbol}, s::AbstractString) is deprecated,
use Symbol(s) instead.
│ caller = setindex!(::Array{Symbol,1}, ::String, ::Int64) at array.jl:769
└ @ Base .\array.jl:769
ERROR: syntax: invalid assignment location ““A””

@load(“file.jl2”,Symbol(A))
ERROR: LoadError: MethodError: Cannot convert an object of type Expr
to an object of type Symbol
Closest candidates are:
convert(::Type{Symbol}, ::AbstractString) at deprecated.jl:53
convert(::Type{T}, ::T) where T at essentials.jl:154
Symbol(::Any…) at sysimg.jl:132
Stacktrace:
[1] setindex!(::Array{Symbol,1}, ::Expr, ::Int64) at .\array.jl:769
[2] @load(::LineNumberNode, ::Module, ::Any, ::Vararg{Any,N} where N)
at C:\Users\PC.julia\packages\JLD2\I
\src\loadsave.jl:75
in expression starting at REPL[5]:1

W dniu 2018-08-18 o 00:15, Jim Garrison pisze:


#10

You are confusing the macros @load and @save with the functions load and save. If you do the same thing using the functions, it will work. Or if you use @save("filename.jld2", a) and @load("filename.jld2", a), it will work as well (but the variable in the file will be called a instead of A).

Also, your quotes do not appear to be standard double quotes (i.e. if I copy and paste your examples, they do not work). I am not sure how this is happening…


#11

Big thanks, @ is important ! @@@ :wink: thanaks

Hot to change :x to var x
I must us “list” as list of vars

julia> using JLD2

julia> @load “example.jld2”
2-element Array{Symbol,1}:
:x
:y

julia> list=@load “example.jld2”
2-element Array{Symbol,1}:
:x
:y
julia> list
2-element Array{Symbol,1}:
:x
:y
julia> :x
:x
julia> x
5-element Array{Float64,1}:
0.17925187269796017
0.6323361622958081
0.9316250017319527
0.18755269206420455
0.7327996343920105


#12

In JLD2 is something like names(f) in old JLD ? Where f=jldopen(“file.jld”)
Paul

W dniu 2018-08-18 o 14:30, Jim Garrison pisze:


#13

This problem is on 0.7 too. Package JLD nor works, it is very hot point for old projkect based on JLD.