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

Cannot create custom image in Julia 1.10: Method overwriting is not permitted during Module precompilation #555

Open
denizyuret opened this issue Feb 4, 2024 · 6 comments

Comments

@denizyuret
Copy link

denizyuret commented Feb 4, 2024

Following the instructions at https://pyjulia.readthedocs.io/en/latest/sysimage.html with Julia 1.10.0 I get the error given in the subject. Here is the full output: https://gist.github.com/denizyuret/dcf47516b0379ce1f7fce8069610d039.

The instructions seem to work with Julia 1.9.4. However when trying to start julia with the new sys.so we get a different error: https://gist.github.com/denizyuret/62bac89ea0ac1f27e8bc0077d282c497.

@mkitti
Copy link
Member

mkitti commented Feb 4, 2024

Do you have __precompile__(false) somewhere in your source files?

@denizyuret
Copy link
Author

I have no source files, just trying to create a plain sys.so that works with conda.

@mkitti
Copy link
Member

mkitti commented Feb 4, 2024

I'm not sure I understand. If you have no new source code, there should not be a reason to create a new system image. What are your objectives? Do you encounter a problem otherwise?

Also have you considered using juliacall? I just deployed a package to here:
https://anaconda.org/julialang/pyjuliacall

conda install julialang::pyjuliacall

@denizyuret
Copy link
Author

denizyuret commented Feb 4, 2024 via email

@mkitti
Copy link
Member

mkitti commented Feb 4, 2024

I think most settle for the following when using pyjulia.

from julia.api import Julia
jl = Julia(compiled_modules=False)

However, I think pyjuliacall probably works better in this situation. Let me know if that's not the case.

@mkitti
Copy link
Member

mkitti commented Feb 4, 2024

If pyjuliacall does work better, I would appreciate your feedback on conda-forge/staged-recipes#25097

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