-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Error loading module on remote workers #19960
Comments
Nice detailed report. Good detective work on tracking down the changes causing it. Code loading is currently being revamped in 0.6 by Stefan. |
I assume by your comment that there won't be a fix in say 0.5.1? Although Julia internals and code loading is way beyond my understanding, I have been trying to find a fix so that I can upgrade to v0.5. I have managed to make a change that I think fixes the problem for me, but I'm not sure what the full implications might be. I was hoping someone could comment on whether this change is reasonable or will likely cause me issues: It seems that when loading a module, the code in So maybe:
OR
Here's the full function from v0.5.0
|
Just tried on Are there any plans for remote code loading to be reintroduced? cc @amitmurthy |
This is the error I receive on Julia v0.6.0:
|
fixed by #21695 |
Originally reported on Discourse discussion https://discourse.julialang.org/t/error-loading-module-on-remote-workers/1049
On Julia v0.4.5 everything works as expected:
On Julia v0.4.7 (and v0.5.0) error occurs:
I'm using Windows (errors on Windows 7 and Windows 10)
Everything works OK on Julia v0.4.5. Error occurs on v0.4.7 and similar error on v0.5.0.
Error occurs only when loading module on workers on remote machines (everything is OK when workers are local on same machine as master process)
If
Compat
is installed and precompiled on the remote worker then everything works. Interestingly:Compat.ji
)Pkg.dir()
) on remote worker. I'm guessing it might be using the same path asPkg.dir()
on master process.Formatting
package does not need to be installed on remote machine (only its dependencyCompat
)Another user on Discourse (thanks Patrick) tested this example on Linux using Julia v0.5.0 but could not reproduce the error.
Because everything works on v0.4.5 and errors on v0.4.7, I tried to look at which files in the error backtrace have changed between these versions.
multi.jl
andiostream.jl
did not change, butloading.jl
had some changes.#18230 changes
loading.jl
in v0.4.7 (apparently a backport of PR #18150)The text was updated successfully, but these errors were encountered: