JuliaText / CorpusLoaders.jl

A variety of loaders for various NLP corpora.
Other
32 stars 13 forks source link

How to install CorpusLoaders, in Julia 1.0 #19

Closed davidbp closed 5 years ago

davidbp commented 5 years ago

Hello,

I just installed CorpusLoaders with

]add https://github.com/JuliaText/CorpusLoaders.jl

Are there any other dependencies I should install? I got the following error message when I tried to import it.

[ Info: Precompiling CorpusLoaders [8f4694b6-a17a-549f-a57e-76e1fca3f017]
ERROR: LoadError: LoadError: UndefVarError: iteratoreltype not defined
Stacktrace:
 [1] getproperty(::Module, ::Symbol) at ./sysimg.jl:13
 [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/david/.julia/packages/CorpusLoaders/AZpxD/src/CorpusLoaders.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/david/.julia/packages/CorpusLoaders/AZpxD/src/types.jl:5
in expression starting at /home/david/.julia/packages/CorpusLoaders/AZpxD/src/CorpusLoaders.jl:23
ERROR: Failed to precompile CorpusLoaders [8f4694b6-a17a-549f-a57e-76e1fca3f017] to /home/david/.julia/compiled/v1.1/CorpusLoaders/jEgYN.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

Thank you for your work!

oxinabox commented 5 years ago

Ah yes, I need to tag a release with 1.0 support. That requires creating a Project.toml

Right now do ] add CorpusLoaders#master

davidbp commented 5 years ago

I tried what you mention,

is this what you meant?

(v1.1) pkg>  add CorpusLoaders#master
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
ERROR: The following package names could not be resolved:
 * CorpusLoaders (8f4694b6-a17a-549f-a57e-76e1fca3f017 in manifest but not in project)
Please specify by known `name=uuid`.
oxinabox commented 5 years ago

Hmm, That should work.

davidbp commented 5 years ago

I just tried again (removed the package installed it with ]add https://github.com/JuliaText/CorpusLoaders.jl and I can import it. Thank you for your time @oxinabox.