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

Errors with non-English homedir #40694

Open
altophohe opened this issue May 3, 2021 · 5 comments
Open

Errors with non-English homedir #40694

altophohe opened this issue May 3, 2021 · 5 comments

Comments

@altophohe
Copy link

Hello, I am a newbie to Julia. I am trying to practice Julia step by step with Quantecon lecture notes.

Indeed, I noted that the recent Julia version of v1.6 yields lots of bugs (or errors) when loading the package that Quantecon lecture provides. Hence, I downgrade the Julia version to v1.5 and it seemed work. However, I stumbled upon that it still does not load the packages such as Plots or Expectations. For instance, when I typed "Pkg.add("Expectations") I can see

julia> Pkg.add("Expectations")
Resolving package versions...
No Changes to C:\Users\myname\.julia\environments\v1.5\Project.toml
No Changes to C:\Users\myname\.julia\environments\v1.5\Manifest.toml

After that when I try to load

julia> using Expectations

I got these errors.


[ Info: Precompiling Expectations [2fe49d83-0758-5602-8f54-1f90ad0d522b]
Cannot open cache file "C:\Users?�의??.julia\compiled\v1.5\Compat\jl_385E.tmp" for writing.
ERROR: LoadError: Failed to precompile Compat [34da2185-b29b-5c13-b0c7-acf172513d20] to C:\Users\myname.julia\compiled\v1.5\Compat\GSFWK_q8XAd.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1305
[3] _require(::Base.PkgId) at .\loading.jl:1030
[4] require(::Base.PkgId) at .\loading.jl:928
[5] require(::Module, ::Symbol) at .\loading.jl:923
[6] include(::Function, ::Module, ::String) at .\Base.jl:380
[7] include(::Module, ::String) at .\Base.jl:368
[8] top-level scope at none:2
[9] eval at .\boot.jl:347 [inlined]
[10] eval(::Expr) at .\client.jl:467
[11] top-level scope at .\none:3
in expression starting at C:\Users\myname.julia\packages\Expectations\KqWVw\src\Expectations.jl:6
ERROR: Failed to precompile Expectations [2fe49d83-0758-5602-8f54-1f90ad0d522b] to C:\Users\myname.julia\compiled\v1.5\Expectations\r1e2K_q8XAd.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1305
[3] _require(::Base.PkgId) at .\loading.jl:1030
[4] require(::Base.PkgId) at .\loading.jl:928
[5] require(::Module, ::Symbol) at .\loading.jl:923


Similarly, when I try the package Plots, the following error shows up...

julia> using Plots
[ Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
Cannot open cache file "C:\Users?�의??.julia\compiled\v1.5\Reexport\jl_F5.tmp" for writing.
ERROR: LoadError: Failed to precompile Reexport [189a3867-3050-52da-a836-e630ba90ab69] to C:\Users\myname.julia\compiled\v1.5\Reexport\bTpYr_q8XAd.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1305
[3] _require(::Base.PkgId) at .\loading.jl:1030
[4] require(::Base.PkgId) at .\loading.jl:928
[5] require(::Module, ::Symbol) at .\loading.jl:923
[6] include(::Function, ::Module, ::String) at .\Base.jl:380
[7] include(::Module, ::String) at .\Base.jl:368
[8] top-level scope at none:2
[9] eval at .\boot.jl:347 [inlined]
[10] eval(::Expr) at .\client.jl:467
[11] top-level scope at .\none:3
in expression starting at C:\Users\myname.julia\packages\Plots\lzHOt\src\Plots.jl:9
ERROR: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to C:\Users\myname.julia\compiled\v1.5\Plots\ld3vC_q8XAd.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1305
[3] _require(::Base.PkgId) at .\loading.jl:1030
[4] require(::Base.PkgId) at .\loading.jl:928
[5] require(::Module, ::Symbol) at .\loading.jl:923


I tried all suggestions I can try... Using Atom with Juno, Downgrade Julia version, Delete compile folder and reinstall everything etc. Does anybody know why these issues continuously bring about?

Thank you in advance!

@fredrikekre
Copy link
Member

Looks like #38411. Perhaps you can try to upgrade to Julia 1.6.1 which is the latest release?

@fredrikekre fredrikekre changed the title Julia "Expectations" bug Errors when precompiling packages May 3, 2021
@altophohe
Copy link
Author

Hi, Fredrikekre, thanks for the answer.

Indeed, I tried with Julia 1.6.1 as well and similar problems pop up. I am afraid that the latest version does not seem very compatible with most packages like Plots, Expectations etc. Is it the case?

@altophohe
Copy link
Author

Hi, again.

I upgraded the Julia version (1.6.1) on my computer. Again, I got a similar problem.


julia> using Plots
[ Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
Cannot open cache file "C:\Users?�의??.julia\compiled\v1.6\Reexport\jl_CEF3.tmp" for writing.
ERROR: LoadError: Failed to precompile Reexport [189a3867-3050-52da-a836-e630ba90ab69] to C:\Users\정의영.julia\compiled\v1.6\Reexport\jl_CEF3.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY)
@ Base .\loading.jl:1360
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1306
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1021
[5] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:914
[6] require(into::Module, mod::Symbol)
@ Base .\loading.jl:901
[7] include
@ .\Base.jl:386 [inlined]
[8] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
@ Base .\loading.jl:1213
[9] top-level scope
@ none:1
[10] eval
@ .\boot.jl:360 [inlined]
[11] eval(x::Expr)
@ Base.MainInclude .\client.jl:446
[12] top-level scope
@ none:1
in expression starting at C:\Users\정의영.julia\packages\Plots\lzHOt\src\Plots.jl:1
ERROR: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to C:\Users\정의영.julia\compiled\v1.6\Plots\jl_CCD2.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY)
@ Base .\loading.jl:1360
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1306
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1021
[5] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:914
[6] require(into::Module, mod::Symbol)
@ Base .\loading.jl:901

________________________________________________________________________________________--

Actually, for most of the necessary packages, I come across this kind of issue every time. I am not sure if I might have committed a mistake in installing Julia or VS studio. I am stuck up with the installation and the very beginning process for 4 days...anybody can help me?

@vtjnash
Copy link
Member

vtjnash commented May 3, 2021

It seems like something is mangling \정의영\ into ?�의?? and/or sometimes dropping the \ (getting only the middle codepoint correct), though it doesn't appear to have anything too unusual:

julia> transcode(UInt16, a)
3-element Vector{UInt16}:
 0xc815
 0xc758
 0xc601
``

@altophohe
Copy link
Author

Thanks. You are right. It works after changing the system user name to English. Thanks a lot!

@vtjnash vtjnash reopened this May 3, 2021
@vtjnash vtjnash changed the title Errors when precompiling packages Errors with non-English homedir May 3, 2021
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

3 participants