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

Issue when building an app inside a CI container and using Folds #57

Open
mashu opened this issue Oct 5, 2022 · 0 comments
Open

Issue when building an app inside a CI container and using Folds #57

mashu opened this issue Oct 5, 2022 · 0 comments

Comments

@mashu
Copy link

mashu commented Oct 5, 2022

Hi,

It appears that when I include Folds in a package that is build to produce a binary with PackageCompiler, app throws lots of errors.
For some reason binary is not relocable anymore. Docker contains builds a release binary inside gitlab CI using standard julia:1.8 image, but when I start app I get these errors.

 Warning: Error requiring `DataFrames` from `BangBang`
│   exception =
│    IOError: stat("/root/.julia/packages/BangBang/90Cfb/src/dataframes.jl"): permission denied (EACCES)
│    Stacktrace:
│      [1] uv_error
│        @ ./libuv.jl:97 [inlined]
│      [2] stat(path::String)
│        @ Base.Filesystem ./stat.jl:152
│      [3] isfile(path::String)
│        @ Base.Filesystem ./stat.jl:456
│      [4] macro expansion
│        @ /root/.julia/packages/Requires/Z8rfN/src/Requires.jl:37 [inlined]
│      [5] top-level scope
│        @ /root/.julia/packages/BangBang/90Cfb/src/BangBang.jl:89
│      [6] eval
│        @ ./boot.jl:368 [inlined]
│      [7] eval
│        @ /root/.julia/packages/BangBang/90Cfb/src/BangBang.jl:1 [inlined]
│      [8] (::BangBang.var"#34#46")()
│        @ BangBang /root/.julia/packages/Requires/Z8rfN/src/require.jl:101
│      [9] macro expansion
│        @ ./timing.jl:382 [inlined]
│     [10] err(f::Any, listener::Module, modname::String, file::String, line::Any)
│        @ Requires /root/.julia/packages/Requires/Z8rfN/src/require.jl:47
│     [11] (::BangBang.var"#33#45")()
│        @ BangBang /root/.julia/packages/Requires/Z8rfN/src/require.jl:100
│     [12] withpath(f::Any, path::String)
│        @ Requires /root/.julia/packages/Requires/Z8rfN/src/require.jl:37
│     [13] (::BangBang.var"#32#44")()
│        @ BangBang /root/.julia/packages/Requires/Z8rfN/src/require.jl:99
│     [14] listenpkg
│        @ /root/.julia/packages/Requires/Z8rfN/src/require.jl:20 [inlined]
│     [15] macro expansion
│        @ /root/.julia/packages/Requires/Z8rfN/src/require.jl:98 [inlined]
│     [16] __init__()
│        @ BangBang /root/.julia/packages/BangBang/90Cfb/src/BangBang.jl:88
└ @ Requires /root/.julia/packages/Requires/Z8rfN/src/require.jl:51
┌ Warning: Error requiring `DataFrames` from `Transducers`
│   exception =
│    IOError: stat("/root/.julia/packages/Transducers/HBMTc/src/interop/dataframes.jl"): permission denied (EACCES)
│    Stacktrace:
│      [1] uv_error
│        @ ./libuv.jl:97 [inlined]
│      [2] stat(path::String)
│        @ Base.Filesystem ./stat.jl:152
│      [3] isfile(path::String)
│        @ Base.Filesystem ./stat.jl:456
│      [4] macro expansion
│        @ /root/.julia/packages/Requires/Z8rfN/src/Requires.jl:37 [inlined]
│      [5] top-level scope
│        @ /root/.julia/packages/Transducers/HBMTc/src/Transducers.jl:189
│      [6] eval
│        @ ./boot.jl:368 [inlined]
│      [7] eval
│        @ /root/.julia/packages/Transducers/HBMTc/src/Transducers.jl:1 [inlined]
│      [8] (::Transducers.var"#288#303")()
│        @ Transducers /root/.julia/packages/Requires/Z8rfN/src/require.jl:101
│      [9] macro expansion
│        @ ./timing.jl:382 [inlined]
│     [10] err(f::Any, listener::Module, modname::String, file::String, line::Any)
│        @ Requires /root/.julia/packages/Requires/Z8rfN/src/require.jl:47
│     [11] (::Transducers.var"#287#302")()
│        @ Transducers /root/.julia/packages/Requires/Z8rfN/src/require.jl:100
│     [12] withpath(f::Any, path::String)
│        @ Requires /root/.julia/packages/Requires/Z8rfN/src/require.jl:37
│     [13] (::Transducers.var"#286#301")()
│        @ Transducers /root/.julia/packages/Requires/Z8rfN/src/require.jl:99
│     [14] listenpkg
│        @ /root/.julia/packages/Requires/Z8rfN/src/require.jl:20 [inlined]
│     [15] macro expansion
│        @ /root/.julia/packages/Requires/Z8rfN/src/require.jl:98 [inlined]
│     [16] __init__()
│        @ Transducers /root/.julia/packages/Transducers/HBMTc/src/Transducers.jl:188
└ @ Requires /root/.julia/packages/Requires/Z8rfN/src/require.jl:51
┌ Warning: Error requiring `Referenceables` from `Transducers`
│   exception =
│    IOError: stat("/root/.julia/packages/Transducers/HBMTc/src/interop/referenceables.jl"): permission denied (EACCES)
│    Stacktrace:
│      [1] uv_error
│        @ ./libuv.jl:97 [inlined]
│      [2] stat(path::String)
│        @ Base.Filesystem ./stat.jl:152
│      [3] isfile(path::String)
│        @ Base.Filesystem ./stat.jl:456
│      [4] macro expansion
│        @ /root/.julia/packages/Requires/Z8rfN/src/Requires.jl:37 [inlined]
│      [5] top-level scope
│        @ /root/.julia/packages/Transducers/HBMTc/src/Transducers.jl:192
│      [6] eval
│        @ ./boot.jl:368 [inlined]
│      [7] eval
│        @ /root/.julia/packages/Transducers/HBMTc/src/Transducers.jl:1 [inlined]
│      [8] (::Transducers.var"#291#306")()
│        @ Transducers /root/.julia/packages/Requires/Z8rfN/src/require.jl:101
│      [9] macro expansion
│        @ ./timing.jl:382 [inlined]
│     [10] err(f::Any, listener::Module, modname::String, file::String, line::Any)
│        @ Requires /root/.julia/packages/Requires/Z8rfN/src/require.jl:47
│     [11] (::Transducers.var"#290#305")()
│        @ Transducers /root/.julia/packages/Requires/Z8rfN/src/require.jl:100
│     [12] withpath(f::Any, path::String)
│        @ Requires /root/.julia/packages/Requires/Z8rfN/src/require.jl:37
│     [13] (::Transducers.var"#289#304")()
│        @ Transducers /root/.julia/packages/Requires/Z8rfN/src/require.jl:99
│     [14] listenpkg
│        @ /root/.julia/packages/Requires/Z8rfN/src/require.jl:20 [inlined]
│     [15] macro expansion
│        @ /root/.julia/packages/Requires/Z8rfN/src/require.jl:98 [inlined]
│     [16] __init__()
│        @ Transducers /root/.julia/packages/Transducers/HBMTc/src/Transducers.jl:191
└ @ Requires /root/.julia/packages/Requires/Z8rfN/src/require.jl:51

Of course a question is how to silence or fix those? Can I use Folds package at all in a binary app?
To me it looks like Requires.jl is called to require some packages that might be the cause of this?

Thanks

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

1 participant