TimeModels.jl icon indicating copy to clipboard operation
TimeModels.jl copied to clipboard

Dependency on Dates and DateTime

Open BenjaminBorn opened this issue 8 years ago • 1 comments

While running Pkg.add("TimeModels") I got the following error message:

INFO: Building Datetime ==============================[ ERROR: Datetime ]===============================

LoadError: UndefVarError: int64 not defined while loading /Users/bborn/.julia/v0.5/Datetime/deps/build.jl, in expression starting on line 17

================================================================================ INFO: Building Tk

================================[ BUILD ERRORS ]================================

WARNING: Datetime had build errors.

  • packages with build errors remain installed in /Users/bborn/.julia/v0.5
  • build the package(s) and all dependencies with Pkg.build("Datetime")
  • build a single package by running its deps/build.jl script

================================================================================

It seems that the functionality of Datetime (as well as Dates) has been merged into Base: https://github.com/quinnj/Datetime.jl .

using TimeModels then resulted in

WARNING: Base.ASCIIString is deprecated, use String instead. likely near /Users/bborn/.julia/v0.5/Datetime/src/Timezone.jl:23

LoadError: LoadError: LoadError: MethodError: no method matching getindex(::Pair{DataType,DataType}, ::Pair{String,DataType}, ::Pair{String,DataType}, ...

My configuration:

Julia Version 0.5.2-pre+1 Commit a6c55c5* (2017-03-06 03:59 UTC) Platform Info: OS: macOS (x86_64-apple-darwin16.4.0) CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell) LAPACK: libopenblas64_ LIBM: libopenlibm LLVM: libLLVM-3.7.1 (ORCJIT, broadwell)

BenjaminBorn avatar Mar 13 '17 09:03 BenjaminBorn

As it stands, this package is set up to work strictly on Julia 0.4 only. If you're interested in helping to get the package working on Julia 0.5 and 0.6, a pull request would be more than welcome. 🙂

ararslan avatar Mar 13 '17 23:03 ararslan