JuliaDSP / MFCC.jl

Mel Frequency Cepstral Coefficients calculation for Julia
BSD 2-Clause "Simplified" License
33 stars 18 forks source link

Package no longer usable in Julia v0.7 #11

Closed FelipeLema closed 1 year ago

FelipeLema commented 6 years ago

There are many issues in JLD already fixed in JLD2 (there's a tag for it).

I just realized this package is not usable in julia v0.7 because of JLD (see https://github.com/JuliaIO/JLD.jl/issues/211).

I suggest we move from JLD to JLD2

JeffBezanson commented 6 years ago

JLD has been updated. Please check whether if works.

FelipeLema commented 6 years ago

I wrote (and recycled) a small script called "requireme.jl" in which I install and then (in the second include) tried to run the unit tests, but the package wouldn't compile.

           _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.0.1 (2018-09-29)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> include("/home/felipel/MFCC.jl/requireme.jl")
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
 Resolving package versions...
 Installed Conda ──────────── v1.1.1
 Installed FFTW ───────────── v0.2.4
 Installed SpecialFunctions ─ v0.7.1
 Installed BinDeps ────────── v0.8.10
 Installed Polynomials ────── v0.5.1
 Installed BinaryProvider ─── v0.5.2
 Installed VersionParsing ─── v1.1.3
 Installed DSP ────────────── v0.5.1
  Updating `~/.julia/environments/v1.0/Project.toml`
  [717857b8] + DSP v0.5.1
  Updating `~/.julia/environments/v1.0/Manifest.toml`
  [621f4979] + AbstractFFTs v0.3.2
  [9e28174c] + BinDeps v0.8.10
  [b99e7846] + BinaryProvider v0.5.2
  [8f4d0f93] + Conda v1.1.1
  [717857b8] + DSP v0.5.1
  [7a1cc6ca] + FFTW v0.2.4
  [f27b6e38] + Polynomials v0.5.1
  [189a3867] + Reexport v0.2.0
  [276daf66] + SpecialFunctions v0.7.1
  [30578b45] + URIParser v0.4.0
  [81def892] + VersionParsing v1.1.3
  Building Conda ───────────→ `~/.julia/packages/Conda/uQitS/deps/build.log`
  Building FFTW ────────────→ `~/.julia/packages/FFTW/p7sLQ/deps/build.log`
  Building SpecialFunctions → `~/.julia/packages/SpecialFunctions/sXbz6/deps/build.log`
 Resolving package versions...
 Installed CMake ─────────── v1.1.0
 Installed WinRPM ────────── v0.4.2
 Installed Blosc ─────────── v0.5.1
 Installed CMakeWrapper ──── v0.2.2
 Installed Parameters ────── v0.10.1
 Installed BufferedStreams ─ v1.0.0
 Installed LibExpat ──────── v0.5.0
 Installed HDF5 ──────────── v0.10.2
 Installed Homebrew ──────── v0.7.0
 Installed LibCURL ───────── v0.4.1
 Installed Libz ──────────── v1.0.0
  Updating `~/.julia/environments/v1.0/Project.toml`
  [f67ccb44] + HDF5 v0.10.2
  Updating `~/.julia/environments/v1.0/Manifest.toml`
  [a74b3585] + Blosc v0.5.1
  [e1450e63] + BufferedStreams v1.0.0
  [631607c0] + CMake v1.1.0
  [d5fb7624] + CMakeWrapper v0.2.2
  [f67ccb44] + HDF5 v0.10.2
  [0862f596] + HTTPClient v0.2.1
  [d9be37ee] + Homebrew v0.7.0
  [b27032c2] + LibCURL v0.4.1
  [522f3ed2] + LibExpat v0.5.0
  [2ec943e9] + Libz v1.0.0
  [d96e819e] + Parameters v0.10.1
  [c17dfb99] + WinRPM v0.4.2
  Building LibCURL ─→ `~/.julia/packages/LibCURL/OoXMv/deps/build.log`
  Building WinRPM ──→ `~/.julia/packages/WinRPM/Y9QdZ/deps/build.log`
  Building Homebrew → `~/.julia/packages/Homebrew/l8kUw/deps/build.log`
  Building CMake ───→ `~/.julia/packages/CMake/xNoo8/deps/build.log`
  Building Blosc ───→ `~/.julia/packages/Blosc/lzFr0/deps/build.log`
  Building HDF5 ────→ `~/.julia/packages/HDF5/b6QoH/deps/build.log`
 Resolving package versions...
 Installed LegacyStrings ─ v0.4.0
 Installed JLD ─────────── v0.9.0
 Installed FileIO ──────── v1.0.2
  Updating `~/.julia/environments/v1.0/Project.toml`
  [4138dd39] + JLD v0.9.0
  Updating `~/.julia/environments/v1.0/Manifest.toml`
  [5789e2e9] + FileIO v1.0.2
  [4138dd39] + JLD v0.9.0
  [1b4a561d] + LegacyStrings v0.4.0
  [9abbd945] + Profile 
 Resolving package versions...
 Installed WAV ─ v1.0.0
  Updating `~/.julia/environments/v1.0/Project.toml`
  [8149f6b0] + WAV v1.0.0
  Updating `~/.julia/environments/v1.0/Manifest.toml`
  [8149f6b0] + WAV v1.0.0
 Resolving package versions...
  Updating `~/.julia/environments/v1.0/Project.toml`
  [5789e2e9] + FileIO v1.0.2
  Updating `~/.julia/environments/v1.0/Manifest.toml`
 [no changes]
 Resolving package versions...
  Updating `~/.julia/environments/v1.0/Project.toml`
  [276daf66] + SpecialFunctions v0.7.1
  Updating `~/.julia/environments/v1.0/Manifest.toml`
 [no changes]

julia> include("/home/felipel/MFCC.jl/requireme.jl")
[ Info: Precompiling WAV [8149f6b0-98f6-5db9-b78f-408fbbb8ef88]
[ Info: Precompiling MFCC [top-level]
ERROR: LoadError: LoadError: UndefVarError: T not defined
Stacktrace:
 [1] top-level scope at none:0
 [2] include at ./boot.jl:317 [inlined]
 [3] include_relative(::Module, ::String) at ./loading.jl:1041
 [4] include at ./sysimg.jl:29 [inlined]
 [5] include(::String) at /home/felipel/MFCC.jl/src/MFCC.jl:6
 [6] top-level scope at none:0
 [7] include at ./boot.jl:317 [inlined]
 [8] include_relative(::Module, ::String) at ./loading.jl:1041
 [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 /home/felipel/MFCC.jl/src/rasta.jl:10
in expression starting at /home/felipel/MFCC.jl/src/MFCC.jl:18
ERROR: LoadError: LoadError: Failed to precompile MFCC [top-level] to /home/felipel/.julia/compiled/v1.0/MFCC.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:1187
 [4] _require(::Base.PkgId) at ./logging.jl:311
 [5] require(::Base.PkgId) at ./loading.jl:855
 [6] macro expansion at ./logging.jl:311 [inlined]
 [7] require(::Module, ::Symbol) at ./loading.jl:837
 [8] include at ./boot.jl:317 [inlined]
 [9] include_relative(::Module, ::String) at ./loading.jl:1041
 [10] include(::Module, ::String) at ./sysimg.jl:29
 [11] include(::String) at ./client.jl:388
 [12] top-level scope at none:0
 [13] include at ./boot.jl:317 [inlined]
 [14] include_relative(::Module, ::String) at ./loading.jl:1041
 [15] include(::Module, ::String) at ./sysimg.jl:29
 [16] include(::String) at ./client.jl:388
 [17] top-level scope at none:0
in expression starting at /home/felipel/MFCC.jl/test/runtests.jl:7
in expression starting at /home/felipel/MFCC.jl/requireme.jl:2

julia> 
davidavdav commented 1 year ago

Closing this, because we now operate in julia v1.8