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

Dependency analyzer seems to skip packages that are import .PKGNAME #933

Open
biona001 opened this issue Mar 26, 2024 · 3 comments
Open

Comments

@biona001
Copy link

biona001 commented Mar 26, 2024

I think I am running into troubles with create_app whenever a dependency puts import .PKGNAME or using .PKGNAME statements in one of their package sub-files, for example:

This seems to cause the following warning in the final app:

┌ Warning: Error requiring `UnPack` from `JLD2`
│   exception =
│    IOError: stat("/home/users/kilian/.julia/packages/JLD2/ryhNR/ext/UnPackExt.jl"): permission denied (EACCES)
│    Stacktrace:
│      [1] uv_error
│        @ Base ./libuv.jl:100 [inlined]
│      [2] stat(path::String)
│        @ Base.Filesystem ./stat.jl:152
│      [3] isfile(path::String)
│        @ Base.Filesystem ./stat.jl:461
│      [4] macro expansion
│        @ /home/users/kilian/.julia/packages/Requires/Z8rfN/src/Requires.jl:37 [inlined]
│      [5] top-level scope
│        @ /home/users/kilian/.julia/packages/JLD2/ryhNR/src/JLD2.jl:607
│      [6] eval
│        @ Core ./boot.jl:385 [inlined]
│      [7] eval
│        @ JLD2 /home/users/kilian/.julia/packages/JLD2/ryhNR/src/JLD2.jl:1 [inlined]
│      [8] (::JLD2.var"#131#134")()
│        @ JLD2 /home/users/kilian/.julia/packages/Requires/Z8rfN/src/require.jl:101
│      [9] macro expansion
│        @ Requires ./timing.jl:395 [inlined]
│     [10] err(f::Any, listener::Module, modname::String, file::String, line::Any)
│        @ Requires /home/users/kilian/.julia/packages/Requires/Z8rfN/src/require.jl:47
│     [11] (::JLD2.var"#130#133")()
│        @ JLD2 /home/users/kilian/.julia/packages/Requires/Z8rfN/src/require.jl:100
│     [12] withpath(f::Any, path::String)
│        @ Requires /home/users/kilian/.julia/packages/Requires/Z8rfN/src/require.jl:37
│     [13] (::JLD2.var"#129#132")()
│        @ JLD2 /home/users/kilian/.julia/packages/Requires/Z8rfN/src/require.jl:99
│     [14] listenpkg(f::Any, pkg::Base.PkgId)
│        @ Requires /home/users/kilian/.julia/packages/Requires/Z8rfN/src/require.jl:20
│     [15] macro expansion
│        @ JLD2 /home/users/kilian/.julia/packages/Requires/Z8rfN/src/require.jl:98 [inlined]
│     [16] __init__()
│        @ JLD2 /home/users/kilian/.julia/packages/JLD2/ryhNR/src/JLD2.jl:606
└ @ Requires /home/users/kilian/.julia/packages/Requires/Z8rfN/src/require.jl:51
┌ Warning: Error requiring `FileIO` from `HDF5`
│   exception =
│    IOError: stat("/home/users/kilian/.julia/packages/HDF5/HtnQZ/src/fileio.jl"): permission denied (EACCES)
│    Stacktrace:
│      [1] uv_error
│        @ Base ./libuv.jl:100 [inlined]
│      [2] stat(path::String)
│        @ Base.Filesystem ./stat.jl:152
│      [3] isfile(path::String)
│        @ Base.Filesystem ./stat.jl:461
│      [4] top-level scope
│        @ /home/users/kilian/.julia/packages/Requires/Z8rfN/src/Requires.jl:37
│      [5] eval
│        @ Core ./boot.jl:385 [inlined]
│      [6] eval
│        @ HDF5 /home/users/kilian/.julia/packages/HDF5/HtnQZ/src/HDF5.jl:1 [inlined]
│      [7] (::HDF5.var"#115#121")()
│        @ HDF5 /home/users/kilian/.julia/packages/Requires/Z8rfN/src/require.jl:101
│      [8] macro expansion
│        @ Requires ./timing.jl:395 [inlined]
│      [9] err(f::Any, listener::Module, modname::String, file::String, line::Any)
│        @ Requires /home/users/kilian/.julia/packages/Requires/Z8rfN/src/require.jl:47
│     [10] (::HDF5.var"#114#120")()
│        @ HDF5 /home/users/kilian/.julia/packages/Requires/Z8rfN/src/require.jl:100
│     [11] withpath(f::Any, path::String)
│        @ Requires /home/users/kilian/.julia/packages/Requires/Z8rfN/src/require.jl:37
│     [12] (::HDF5.var"#113#119")()
│        @ HDF5 /home/users/kilian/.julia/packages/Requires/Z8rfN/src/require.jl:99
│     [13] listenpkg(f::Any, pkg::Base.PkgId)
│        @ Requires /home/users/kilian/.julia/packages/Requires/Z8rfN/src/require.jl:20
│     [14] macro expansion
│        @ HDF5 /home/users/kilian/.julia/packages/Requires/Z8rfN/src/require.jl:98 [inlined]
│     [15] __init__()
│        @ HDF5 /home/users/kilian/.julia/packages/HDF5/HtnQZ/src/HDF5.jl:119
└ @ Requires /home/users/kilian/.julia/packages/Requires/Z8rfN/src/require.jl:51

Is there any way to get around this?

@biona001
Copy link
Author

Issue resolved by creating a personal fork of those packages and commenting out all Requires.@require in them, see this post

@ufechner7
Copy link
Contributor

Creating a personal fork is NOT a valid solution, only a workaround.

@biona001 biona001 reopened this Mar 29, 2024
@biona001
Copy link
Author

@ufechner7 I agree, reopening this issue.

But I don't think this is an issue with HDF5.jl or JLD2.jl, so I won't create issue there.

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