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

Source file not found in appbundle jobs #37

Closed
jvaverka opened this issue Oct 12, 2023 · 2 comments · Fixed by #53
Closed

Source file not found in appbundle jobs #37

jvaverka opened this issue Oct 12, 2023 · 2 comments · Fixed by #53
Labels
bug Something isn't working

Comments

@jvaverka
Copy link

Description

I followed the instructions for submitting batch jobs via an appbundle. My main codefile includes a single julia file with function definitions and then executes function calls. The job fails when calling include because the julia file with function definitions cannot be found. Since the job was submitted as an appbundle, I am expecting the codefile to be able to include other source files within the appbundle directory.

To Reproduce

Clone the MWE repo and run submit.jl. The job will fail with the following message:

LoadError: SystemError: opening file "/opt/juliahub/common.jl": No such file or directory

Full job lob: Log for jr-awf3mbo64g.json

Environment

  • Where: This happening in a JuliaHub IDE when submitting a JuliaHub batch job?
  • JuliaHub.jl version: v0.1.4
  • Relevant JuliaHub instance: juliahub.com
  • Julia version: v1.9.2
  • Operating system: Linux
@jvaverka jvaverka added the bug Something isn't working label Oct 12, 2023
@jvaverka jvaverka changed the title Codefile not found for Appbundle jobs Source file not found in appbundle jobs Oct 12, 2023
@jvaverka
Copy link
Author

I have also tested locally with the most recent version of JuliaHub.jl. Same source code and same error, but slightly different environment:

Environment

  • Where: This is happening on my local machine
  • JuliaHub.jl version: v0.1.5
  • Relevant JuliaHub instance: <juliahub.com> v6.3.1
  • Julia version: v1.9.3
  • Operating system: Ubuntu 22.04.3 LTS

@mortenpi
Copy link
Member

mortenpi commented May 27, 2024

I'd say that this is working as expected. Conceptually, the appbundle gets unpacked as:

main.jl
appbundle/common.jl

so you need to do include("appbundle/common.jl") in the main.jl script. #53 will clarify the docs around this a bit.

Edit: actually, after discussing this with @pfitzseb, the include call (with a relative path) is currently somewhat undefined. So the plan is to make this work as expected, i.e. that you should be able to just include the code as you'd expect (i.e. the includes can stay relative to the script file you are submitting).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants