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

SystemError opening cert.pem with PackageCompiler-generated binary #218

Closed
kmsquire opened this issue Feb 27, 2020 · 2 comments · Fixed by #219
Closed

SystemError opening cert.pem with PackageCompiler-generated binary #218

kmsquire opened this issue Feb 27, 2020 · 2 comments · Fixed by #219

Comments

@kmsquire
Copy link
Member

kmsquire commented Feb 27, 2020

In this line:

f459031#diff-3f2c05e28eda33cb95585f4259519af5R758

the absolute path to cert.pem is recorded.

When compiling under PackageCompiler, that points to <MyPackageCompiled>/share/julia/cert.pem, which doesn't exist.

(I got around it for now by copying the cert.pem file to the expected location...)

Cc: @JackDunnNZ @KristofferC

@kmsquire kmsquire changed the title SystemError opening cert.pem under PackageCompiler SystemError opening cert.pem with PackageCompiler-generated binary Feb 27, 2020
@kmsquire kmsquire changed the title SystemError opening cert.pem with PackageCompiler-generated binary SystemError opening cert.pem with PackageCompiler-generated binary Feb 27, 2020
@KristofferC
Copy link
Member

What is this file used for in Base? I guess it could be bundled in PackageCompiler but it will always be a bit problematic to non-declaratively depend on "random" files that Julia ships with. From PackageCompiler's p.o.v, best would be to either ship it as an Artifact, or just read the content of it into the source during precompile time.

@KwatMDPhD
Copy link

KwatMDPhD commented Aug 5, 2022

I still have this error. I'm on macOS.

~/craft/GSEA.jl/build/gsea ./bin/gsea                                                     23:55:50
fatal: error thrown and no exception handler available.
InitError(mod=:MbedTLS, error=Base.SystemError(prefix="opening file "/Users/kwat/craft/GSEA.jl/build/gsea/share/julia/cert.pem"", errnum=2, extrainfo=nothing))
YY.systemerrorYY.69_24432.clone at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/sys.dylib (unknown line)
systemerrorYY.YY.kw_39627.clone at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/sys.dylib (unknown line)
systemerrorYY.YY.kw_39637.clone at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/sys.dylib (unknown line)
YY.openYY.639_32472.clone at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/sys.dylib (unknown line)
YY.openYY.355_38261.clone at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/sys.dylib (unknown line)
open at ./io.jl:328 [inlined]
read at ./io.jl:436
jl_apply_generic at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/libjulia-internal.1.7.dylib (unknown line)
__sslinit___23013.clone at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/sys.dylib (unknown line)
__init___23025.clone at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/sys.dylib (unknown line)
jfptr___init___23026.clone_1 at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/sys.dylib (unknown line)
jl_apply_generic at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/libjulia-internal.1.7.dylib (unknown line)
jl_module_run_initializer at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/libjulia-internal.1.7.dylib (unknown line)
_finish_julia_init at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/libjulia-internal.1.7.dylib (unknown line)
julia_init at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/libjulia-internal.1.7.dylib (unknown line)
jl_init at /Users/kwat/craft/GSEA.jl/build/gsea/lib/julia/libjulia-internal.1.7.dylib (unknown line)
main at /Users/kwat/craft/GSEA.jl/build/gsea/bin/gsea (unknown line)

GSEA-MSigDB/GSEA2.jl#59

How can I fix this?

Thanks in advance.

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

Successfully merging a pull request may close this issue.

3 participants