szcf-weiya / DegreesOfFreedom.jl

Julia package for "Degrees of Freedom: Search Cost and Self-consistency"
https://hohoweiya.xyz/DegreesOfFreedom.jl/
MIT License
2 stars 0 forks source link

ERROR: LoadError: RParseError: unicode script is not supported #2

Closed szcf-weiya closed 1 year ago

szcf-weiya commented 1 year ago

https://github.com/JuliaRegistries/General/actions/runs/5633439297/job/15262320474?pr=88105

  ✓ MonotoneSplines
  ✗ DegreesOfFreedom
  292 dependencies successfully precompiled in 701 seconds

ERROR: The following 1 direct dependency failed to precompile:

DegreesOfFreedom [6bcd71f4-f95e-48eb-8a7d-f882b90fc629]

Failed to precompile DegreesOfFreedom [6bcd71f4-f95e-48eb-8a7d-f882b90fc629] to "/tmp/jl_vfzKAU/compiled/v1.9/DegreesOfFreedom/jl_fdlA1d".
ERROR: LoadError: RParseError: unicode script is not supported
in expression starting at /tmp/jl_vfzKAU/packages/DegreesOfFreedom/jzxKo/src/splines.jl:59
in expression starting at /tmp/jl_vfzKAU/packages/DegreesOfFreedom/jzxKo/src/splines.jl:31
in expression starting at /tmp/jl_vfzKAU/packages/DegreesOfFreedom/jzxKo/src/DegreesOfFreedom.jl:1
in expression starting at stdin:3
Stacktrace:
 [1] pkgerror(msg::String)
   @ Pkg.Types /opt/hostedtoolcache/julia/1.9.2/x64/share/julia/stdlib/v1.9/Pkg/src/Types.jl:69
 [2] precompile(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; internal_call::Bool, strict::Bool, warn_loaded::Bool, already_instantiated::Bool, timing::Bool, kwargs::Base.Pairs{Symbol, IOContext{Base.PipeEndpoint}, Tuple{Symbol}, NamedTuple{(:io,), Tuple{IOContext{Base.PipeEndpoint}}}})
   @ Pkg.API /opt/hostedtoolcache/julia/1.9.2/x64/share/julia/stdlib/v1.9/Pkg/src/API.jl:1581
 [3] precompile(pkgs::Vector{Pkg.Types.PackageSpec}; io::IOContext{Base.PipeEndpoint}, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ Pkg.API /opt/hostedtoolcache/julia/1.9.2/x64/share/julia/stdlib/v1.9/Pkg/src/API.jl:156
 [4] precompile(pkgs::Vector{Pkg.Types.PackageSpec})
   @ Pkg.API /opt/hostedtoolcache/julia/1.9.2/x64/share/julia/stdlib/v1.9/Pkg/src/API.jl:145
 [5] precompile(; name::Nothing, uuid::Nothing, version::Nothing, url::Nothing, rev::Nothing, path::Nothing, mode::Pkg.Types.PackageMode, subdir::Nothing, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ Pkg.API /opt/hostedtoolcache/julia/1.9.2/x64/share/julia/stdlib/v1.9/Pkg/src/API.jl:171
 [6] precompile()
   @ Pkg.API /opt/hostedtoolcache/julia/1.9.2/x64/share/julia/stdlib/v1.9/Pkg/src/API.jl:162
 [7] top-level scope
   @ none:17
┌ Error: Was not able to successfully `import` the package
└ @ RegistryCI.AutoMerge ~/.julia/packages/RegistryCI/EHMHj/src/AutoMerge/guidelines.jl:856
┌ Info: Version can be `import`ed
│   meets_this_guideline = false
└   message = "I was not able to load the package (i.e. `import DegreesOfFreedom` failed). See the CI logs for details."
szcf-weiya commented 1 year ago

https://github.com/JuliaInterop/RCall.jl/blob/7f59101218fb2e15b70a427bd97860e902e6b124/src/render.jl#L12-L16

image

julia> isascii("x")
true

julia> isascii("λ")
false

on my computer

> l10n_info()
$MBCS
[1] TRUE

$`UTF-8`
[1] TRUE

$`Latin-1`
[1] FALSE

but it might be FALSE in the automerge env. (although my own github action passed)

szcf-weiya commented 1 year ago

also note that R in the automerge action is in conda, so probably it does not support UTF-8.

szcf-weiya commented 7 months ago

same issue in MD.jl

image