Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iconv not installed properly (Windows 10) #43

Closed
gizmaa opened this issue Aug 25, 2020 · 3 comments
Closed

iconv not installed properly (Windows 10) #43

gizmaa opened this issue Aug 25, 2020 · 3 comments

Comments

@gizmaa
Copy link

gizmaa commented Aug 25, 2020

julia> using StringEncodings
[ Info: Precompiling StringEncodings [69024149-9ee7-55f6-a4c4-859efe599b68]
ERROR: LoadError: iconv not installed properly, run Pkg.build("StringEncodings"), restart Julia and try again
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] top-level scope at C:\Users\JohnDoe\.julia\packages\StringEncodings\B9gIH\src\StringEncodings.jl:10
 [3] include(::Function, ::Module, ::String) at .\Base.jl:380
 [4] include(::Module, ::String) at .\Base.jl:368
 [5] top-level scope at none:2
 [6] eval at .\boot.jl:331 [inlined]
 [7] eval(::Expr) at .\client.jl:467
 [8] top-level scope at .\none:3
in expression starting at C:\Users\JohnDoe\.julia\packages\StringEncodings\B9gIH\src\StringEncodings.jl:9
ERROR: Failed to precompile StringEncodings [69024149-9ee7-55f6-a4c4-859efe599b68] to C:\Users\JohnDoe\.julia\compiled\v1.5\StringEncodings\ACjY3_cqGsg.ji.
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1290
 [3] _require(::Base.PkgId) at .\loading.jl:1030
 [4] require(::Base.PkgId) at .\loading.jl:928
 [5] require(::Module, ::Symbol) at .\loading.jl:923

Pkg.build("StringEncodings") didn't help. Julia versions prior to Julia 1.5.0 on this machine did successfully install and use StringEncodings. Removing and reinstalling StringEncodings didn't work either.

julia> versioninfo()
Julia Version 1.5.0
Commit 96786e22cc (2020-08-01 23:44 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, skylake)
Environment:
  JULIA_NUM_THREADS = 7
@nalimilan
Copy link
Member

Could you post the contents of C:\Users\JohnDoe.julia\packages\StringEncodings\B9gIH\deps\build.log? (If it doesn't exist, please run Pkg.build("StringEncodings", verbose=true).) What files exist in the C:\Users\JohnDoe.julia\packages\StringEncodings\B9gIH\deps directory?

@gizmaa
Copy link
Author

gizmaa commented Aug 28, 2020

ERROR: LoadError: iconv not installed properly, run Pkg.build("StringEncodings"), restart Julia and try again
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] top-level scope at C:\Users\JohnDoe\.julia\packages\StringEncodings\B9gIH\src\StringEncodings.jl:10
 [3] include(::Function, ::Module, ::String) at .\Base.jl:380
 [4] include(::Module, ::String) at .\Base.jl:368
 [5] top-level scope at none:2
 [6] eval at .\boot.jl:331 [inlined]
 [7] eval(::Expr) at .\client.jl:467
 [8] top-level scope at .\none:3
in expression starting at C:\Users\JohnDoe\.julia\packages\StringEncodings\B9gIH\src\StringEncodings.jl:9
ERROR: LoadError: LoadError: UndefVarError: DateTime not defined
Stacktrace:
 [1] top-level scope at K:\Code\Julia\JohnDoe\plot_basic.jl:15
 [2] include(::String) at .\client.jl:457
 [3] top-level scope at C:\Users\JohnDoe\.julia\config\startup.jl:119
 [4] include(::Function, ::Module, ::String) at .\Base.jl:380
 [5] include at .\Base.jl:368 [inlined]
 [6] include_ifexists at .\client.jl:213 [inlined]
 [7] load_julia_startup() at .\client.jl:328
 [8] exec_options(::Base.JLOptions) at .\client.jl:267
 [9] _start() at .\client.jl:506
in expression starting at K:\Code\Julia\JohnDoe\plot_basic.jl:15
in expression starting at C:\Users\JohnDoe\.julia\config\startup.jl:119

After seeing that I removed StringEncodings, disabled my startup.jl file, and reinstalled StringEncodings without problems. My startup file does include using Dates.

plot_basic.jl:115 is the start of the documentation of a function.

I didn't look in the deps directory before reinstalling.

@nalimilan
Copy link
Member

Probably your startup.jl file triggered a failure when running the build script. Hopefully we'll move to a more robust build system at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants